Skip to main content
Glama

Exhume

Every codebase is a graveyard of decisions. Exhume digs them up and lets your AI ask the dead why.

Exhume reads a repo's git history and answers the question nobody can answer once the author has left: why is this here?

It is three things that share one engine:

MCP server

Kiro (or any MCP client) calls why_exists, hotspots, ghosts, bus_factor, time_travel, last_words and resurrect_bundle while it works on your code.

Spirit board

A map of a repo where every file is tinted by decay. Click a file to summon its story: birth, last touch, the people who wrote it and whether they are still around, turning points, linked issues.

Resurrect

Pick a dead module and Exhume writes a Kiro spec (requirements, design, tasks) and a steering note from its history, each requirement citing the commit it came from.

No model is called at runtime and nothing is uploaded. All analysis is deterministic and runs on git history alone. Kiro's own model does the reasoning inside Kiro.

Try it

The viewer ships with the history of a few well-known abandoned projects (request, bower, grunt, backbone, brackets). Deep links work:

?repo=request/request&file=request.js
?repo=adobe/brackets&dir=src/editor&resurrect=1

Related MCP server: mcp-server-git-history

Use the MCP server in Kiro

This repo already contains .kiro/settings/mcp.json. To use it on another project, add to that project's .kiro/settings/mcp.json:

{
  "mcpServers": {
    "exhume": {
      "command": "npx",
      "args": ["-y", "tsx", "/path/to/exhume/src/mcp/index.ts"],
      "env": { "EXHUME_REPO": "." }
    }
  }
}

Then ask Kiro: "Why does src/billing/retry.ts exist, and is it safe to delete?"

Tool

Answers

ghosts

Who has gone quiet, and which files were deleted

why_exists

Who created a file, when, which turning points reshaped it, which issues and PRs it links to

hotspots

Haunted files: rewritten often, writers gone. Check before editing

bus_factor

How few people wrote half of a file or folder

time_travel

What existed under a path on a given date

last_words

A contributor's first and last commits, favourite files, final messages

resurrect_bundle

A Kiro spec and steering note for reviving a module

Run it

npm install
npm test                 # unit + property-based tests
npm run build            # builds the MCP server to dist/
npm run snapshot         # rebuild the packed histories in web/public/data
npm run web:dev          # the spirit board on localhost
npm run web:build        # static site in web/dist

Requires Node 20+ and git.

How it works

  • src/core is pure TypeScript with no I/O. It parses git log --name-status, replays history oldest to newest (so renames are followed), and scores each file.

  • Ghost: an author with no commit in 365 days. Decay: 0.6 * (1 - exp(-days/540)) + 0.4 * share of commits by ghosts, always in [0,1]. Bus factor: fewest authors covering half the commits. Haunted: rewritten at least twice as often as the median file, with decay of 0.55 or more.

  • src/mcp is the only code that shells out to git, with an argument array.

  • web is Vite and vanilla TypeScript. It runs the same core in the browser against packed JSON snapshots, so hosting is static and free.

The .kiro folder

  • steering/: product rules, tech rules, the visual language, and a note telling Kiro to consult Exhume before rewriting a file.

  • specs/: requirements, design and tasks for the history engine, MCP server, spirit board and resurrect bundle.

  • hooks/: a haunted-file guard (asks Exhume about a file as you save it), a purity check for src/core, and a manual snapshot refresh.

  • settings/mcp.json: wires Exhume into Kiro for this repo.

Limits

Only repos in the crypt open in the viewer today. Live GitHub mode is the next task (.kiro/specs/history-engine/tasks.md). Squash-merge repos hide who really wrote what, and linked-issue detection reads commit subjects only.

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides AI coding agents with Git repository history analysis, including churn hotspot detection, semantic file coupling, and recent context summaries through MCP tools.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI coding agents to retrieve cited git-history explanations for files and tickets, compile a Team Engineering Contract from repository artifacts, and follow guided Understand/Build workflows over MCP stdio. It lets clients such as Grok, Claude Code, Codex, Kiro, and Cursor share the same tools for evidence-backed repository understanding.
      1
      7 npm
      Apache 2.0