Skip to content

For agents

Catch it where links are written

Agents write docs, READMEs and reference lists all day, and they happily paste a link to a domain that was sold to a casino last year. Revenant gives them a way to check first.

MCP server

Five read-only tools: examine_link, scan_document, scan_source, raise_patch (returns the fixed document and a diff; writes nothing) and census_category (up to 50 articles of a Wikipedia category: the possessed citations nobody has tagged).

Remote (Streamable HTTP): .kiro/settings/mcp.json or any MCP client
{
  "mcpServers": {
    "revenant": { "url": "https://revenant-links.vercel.app/api/mcp" }
  }
}
Local (stdio), from a clone of the repo
{
  "mcpServers": {
    "revenant": { "command": "npx", "args": ["tsx", "bin/revenant-mcp.ts"] }
  }
}

Kiro Power

In Kiro, open the Powers panel, choose Add Custom Power → Import power from GitHub and point it at https://github.com/ZNLong2203/revenant/tree/main/powers/revenant. It wires up the remote MCP server and two skills (link hygiene and Wikipedia citations) that activate when a conversation mentions dead links, citations or link rot.

Agent hook

When the agent saves Markdown, Revenant reads the hook payload on stdin, scans the saved files and reports every possessed, ghost, buried or changeling link with an archived copy. It never blocks the agent.

.kiro/hooks/docs-link-check.json
{
  "version": "v1",
  "hooks": [{
    "name": "Revenant checks the links it just wrote",
    "trigger": "PostFileSave",
    "matcher": "\\.(md|mdx)$",
    "action": { "type": "command", "command": "npx tsx bin/revenant.ts hook" },
    "timeout": 120
  }]
}

CLI

scan files, URLs or wiki:Title; exit 1 when a --fail-on verdict is found
npx tsx bin/revenant.ts scan README.md docs/*.md --fail-on possessed,ghost
npx tsx bin/revenant.ts scan wiki:PHP --diff
npx tsx bin/revenant.ts scan docs/guide.md --fix          # rewrites the local file
npx tsx bin/revenant.ts check https://example.com/page --access-date 2014-03-06

GitHub Action

.github/workflows/revenant.yml scans the Markdown a pull request changes and fails the check when it adds a possessed link.