Forensic Deepdive
概要
作者による説明(英語の原文)
Persistent code knowledge graph + 9 composite MCP tools for AI coding agents.
できること
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
- 接続方法: パソコンで動く
- トランスポート: stdio
- カテゴリ: 開発者ツール
インストール
使っているAIアプリを選んで、設定をコピーしてください。
チェック 3/3 合格 · あなたのパソコンで動きます
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
Claude につなげますが、先に準備が必要です
先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
パソコン版 Claude アプリの設定ファイルを開く
SettingsDeveloperEdit Config
この設定を貼り付けて保存
{ "mcpServers": { "forensic-deepdive": { "command": "uvx", "args": [ "forensic-deepdive", "serve", "--repo", "." ] } } }Claude を終了してもう一度開く
試してみる
Forensic Deepdive を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が Forensic Deepdive を使っていると言うか、回答に Forensic Deepdive のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ Forensic Deepdive につなげません
Forensic Deepdive はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
代わりにできること
A · Forensic Deepdive につなげるアプリを使う
- 先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
- 先にパソコンへ Python (uv) を入れてください(1 回だけ)
- 先にパソコンへ Python (uv) を入れてください(1 回だけ)
- 先にパソコンへ Python (uv) を入れてください(1 回だけ)
B · 開発者ツール の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
- Sentry✓ ChatGPT
- Front-End Checklist✓ ChatGPT
- Compiler Explorer✓ ChatGPT
Claude Code につなげますが、先に準備が必要です
先にパソコンへ Python (uv) を入れてください(1 回だけ)
ターミナルを開く
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
このコマンドを貼り付けて Enter
claude mcp add forensic-deepdive -- uvx forensic-deepdive serve --repo .Claude Code で /mcp と入力
Forensic Deepdive が一覧にあり、接続済みと表示されれば OK です
試してみる
Forensic Deepdive を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が Forensic Deepdive を使っていると言うか、回答に Forensic Deepdive のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
先にパソコンへ Python (uv) を入れてください(1 回だけ)
Cursor の AI チャットを Agent モードで開く
試してみる
Forensic Deepdive を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が Forensic Deepdive を使っていると言うか、回答に Forensic Deepdive のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
先にパソコンへ Python (uv) を入れてください(1 回だけ)
VS Code の AI チャットを Agent モードで開く
試してみる
Forensic Deepdive を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が Forensic Deepdive を使っていると言うか、回答に Forensic Deepdive のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
開発者向け:ターミナルのコマンドと JSON 設定
パソコンにインストール
Claude Code
claude mcp add forensic-deepdive -- uvx forensic-deepdive serve --repo .Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"forensic-deepdive": {
"command": "uvx",
"args": [
"forensic-deepdive",
"serve",
"--repo",
"."
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"forensic-deepdive": {
"command": "uvx",
"args": [
"forensic-deepdive",
"serve",
"--repo",
"."
]
}
}
}VS Code (mcp.json)
{
"servers": {
"forensic-deepdive": {
"type": "stdio",
"command": "uvx",
"args": [
"forensic-deepdive",
"serve",
"--repo",
"."
]
}
}
}この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
ひと目でわかる
使えるアプリ
このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
できること
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
基本チェックi
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月11日にチェック
- ✓ 合格
作者とリポジトリが一致
レジストリ名は、リポジトリを所有するGitHubアカウント Dhevenddra で確認済みです
- ✓ 合格
今もメンテナンスされている
コードの最終更新:3 か月前
- ✓ 合格
ライセンスがある
Apache-2.0を使用
- – 対象外
エンドポイントが応答する
これはパソコンで動くため、インターネット上のエンドポイントはありません
- – 対象外
OAuthでサインイン
パソコンで動き、代わりにローカルの設定を使います
- … 未チェック
ツールの説明に隠れた指示がない
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
話し合い
質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
ユーザーレビュー
まだレビューはありません
開発者ツールのほかのサーバーとの比較i
- このカテゴリのほかの5759件のうち77%よりスターが多い
- このカテゴリのほかの5759件のうち25%より最近レジストリに公開
- 基本チェックの結果が、このカテゴリのほかの5759件のうち100%と同じかそれ以上
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
よくある質問
Forensic Deepdiveは安全ですか?
当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
どんなキーやコードが必要ですか?
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
パソコンで動きますか、それともクラウドですか?
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
今もメンテナンスされていますか?
GitHubリポジトリの最終更新は3 か月前、最新バージョン(0.10.0)がレジストリに届いたのは3 か月前です。
どのアプリで使えますか?
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。
代わりに使えるものは?
同じカテゴリには:REA, Netdata, Front-End Checklist
代わりの候補
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Front-End Checklist
Review frontend code and live pages against 386 quality-gated web development rules.
作者のREADME
READMEを開く
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
forensic-deepdive
`forensic-deepdive` gives an AI coding agent forensic understanding of an unfamiliar codebase — a persistent knowledge graph, an MCP server, and five durable markdown artifacts, so your agent stops re-discovering the same architecture from scratch every session.
uv tool install forensic-deepdive && forensic extract /path/to/repo
Why this is different: every edge and every emitted claim carries a confidence tag — EXTRACTED (deterministic fact) / INFERRED (a heuristic resolved cleanly) / AMBIGUOUS (multiple candidates, shown, not guessed) — so your agent knows what to trust *before* it acts on it. Nothing else in this category tags confidence at all.
Why not GitNexus / CodeGraphContext / DeepWiki / Sourcegraph
| forensic-deepdive | GitNexus | CodeGraphContext | DeepWiki | Sourcegraph | |
|---|---|---|---|---|---|
| License | Apache-2.0 | PolyForm Noncommercial | MIT | proprietary (open variant: MIT) | partial |
| Persistent code knowledge graph | ✅ LadybugDB | ✅ LadybugDB | partial | ❌ | partial |
| MCP server | ✅ 9 composite tools | ✅ 16 tools | partial | ❌ | ❌ |
| Per-edge confidence taxonomy | ✅ EXTRACTED / INFERRED / AMBIGUOUS | ❌ | ❌ | ❌ | ❌ |
| Git archaeology as a first-class layer | ✅ | ❌ | ❌ | ❌ | partial |
| Durable committed markdown artifacts | ✅ 5 files | partial | partial | ✅ (wiki) | ❌ |
Agent-insight layer (record_insight / recall_insights) | ✅ | ❌ | ❌ | ❌ | ❌ |
| Multi-platform skill emission | ✅ 10 shims | partial | partial | ❌ | ❌ |
| Local-only (no cloud required) | ✅ co-equal | ✅ | ✅ | ❌ | ❌ |
GitNexus is the runaway leader in this category — but its PolyForm Noncommercial license locks every commercial user out. forensic-deepdive is the Apache-2.0 alternative: same persistent-graph-plus-MCP shape, plus honest confidence tags, git archaeology, persistent agent memory, and the 5 markdown artifacts as a fallback for any agent that doesn't speak MCP — with a license your employer's legal team will actually sign off on.
What it produces
forensic-deepdive analyzes any codebase (9 languages, polyglot) and produces:
- A persistent embedded graph at
/.deepdive/graph.lbug— File, Symbol, Module, Commit, Author, Endpoint, and DbTable nodes plus DEFINES, MEMBER_OF, IMPORTS, CALLS, EXTENDS, IMPLEMENTS, TOUCHED_BY_COMMIT, AUTHORED_BY, CO_CHANGES_WITH, and the cross-boundary HANDLES / CALLS_ENDPOINT / ROUTES_TO / INJECTS / PERSISTS_TO edges. Every edge carries a confidence tag (EXTRACTED/INFERRED/AMBIGUOUS) — no hidden heuristics. The singleEndpointjoin node unifies five cross-boundary protocols (HTTP, MCP tools, registry-dispatch, gRPC, messaging/AMQP), so a frontend call resolves to its backend handler across the stack as oneROUTES_TOedge. - An MCP server (
forensic serve) exposing 9 composite tools (impact,context,archaeology,flow,query,record_insight,recall_insights,visualize,trace) consumable by Claude Code, Cursor, Codex, Continue, Cline, Windsurf — and any other MCP-aware agent. - Five durable markdown artifacts under
/docs/codebase/, regenerated from the graph on every extract:
- `MAP.md` — what's where, ranked by centrality.
- `HOTPATHS.md` — the dependency hot spots, with a per-row confidence-mix column so you see exactly how cleanly each symbol resolves.
- `ARCHAEOLOGY.md` — why the code looks the way it does (git history, top authors with %, bus factor, co-change clusters, defect proximity).
- `MENTAL_MODEL.md` — the doc the original author *would* write to onboard a new hire.
- `AGENT_BRIEF.md` — ≤5 KB of assertive Never/Always rules with per-rule confidence tags. Drop-in
CLAUDE.mdfor any project.
- Ten shims into the target repo — 4 editor rule files (
CLAUDE.md,AGENTS.md,.cursor/rules/codebase.mdc,.continue/rules/codebase.md), 5 single-intent Claude skills under.claude/skills/codebase-{exploring,debugging,impact-analysis,refactoring,onboarding}/, and a.claude-plugin/plugin.jsonmanifest. All write-if-absent — hand-edited files are never overwritten. - An agent-insight layer —
record_insight/recall_insightsMCP tools backed by/.deepdive/insights.jsonlby default (zero dependencies, human-readable, git-friendly). The optional[graphiti]extra upgrades to a temporal knowledge graph backend above a 2-of-5 repo-size threshold.
Extract also regenerates `ARCHITECTURE.md` — a system-level Mermaid view of the cross-boundary graph (ROUTES_TO / INJECTS / PERSISTS_TO, confidence-styled), a *separate human-validation surface* (not one of the five contract artifacts, exactly like forensic visualize and serve --ui). Regenerate it on its own with forensic diagram --repo . Use it to sanity-check the graph — a wrong edge there is a wrong edge everywhere.
Add `--emit-vault` to also write an Obsidian-friendly vault under /vault/ — every artifact gets summary:/tags: frontmatter, cross-references become [[wikilinks]], and an INDEX.md MOC ties them together (with a .obsidian/ config). A local-first second brain for humans (graph view, backlinks) and agents (triage by summary: without opening files, a traversable index). Opt-in; off by default.
Status
v0.10.0 "The Upgrade Path" — an integrity release. v0.9 shipped correct, and then its findings run caught --refresh-shims being structurally unable to refresh half its targets, with 909 tests green over it. The cause wasn't the fix — it was that **every test in the suite wrote into an empty directory, so only the *first* run had ever been tested.** Everyone who isn't a new user lives on the untested path.
So 0.10 adds almost no surface. It makes the guarantees already made real: running Deepdive over a repo that already carries a previous release's output now provably converges (and provably leaves your hand-edited files alone), extract tells you when generated shims are stale instead of waiting for you to know the flag exists, and a stale examples/ fails CI rather than being caught by eye mid-release. New: forensic extract --timings, per-phase wall clock.
It also contains a cancelled feature, which is the more useful story. The planned performance work targeted PageRank. The profile required before touching it measured PageRank at 0.04 % of a large extract, and the *already-batched* store writes at 79–87 %. The optimization was disproven before it was written — see docs/findings/v0.10/PROFILE.md. Confirming a known technique had been applied had been mistaken for confirming it was fast.
The engine, the graph, the contract layer and the 5-artifact + 9-MCP-tool contract are unchanged from 0.9, and emitted content is byte-identical but for the version footer.
⚠ If you installed 0.8.0 or 0.9.0 and `forensic serve` stopped working — this is why. Those
releases declare
mcp>=1.27.1with no upper bound.mcp2.0.0 removedmcp.server.fastmcp,
which the MCP server imports, so a fresh install of 0.8.0 or 0.9.0 today resolves to
mcp
2.0.0 and fails on import. Our development lockfile pinned 1.27.1, so every local check stayed
green and only the clean-environment wheel smoke in CI could see it. Fix: upgrade to 0.10.0
(which caps
mcp<2), or pinmcp<2yourself. Nothing else about those releases is affected.
What's proven, and what isn't — the honest-framing section moved to docs/findings/HONEST.md (unchanged content, DEC-119). Short version: proven usable with real agent auto-discovery; not proven to make autonomous issue resolution measurably faster end-to-end (hardware-gated). This is an assisted-analysis tool, and it is not overclaimed as more.
Quick start
# install from PyPI (puts `forensic` on PATH); or run ephemerally with uvx
uv tool install forensic-deepdive forensic info # banner + capability panel forensic extract /path/to/repo
…or from source for development:
git clone https://github.com/Dhevenddra/forensic-deepdive && cd forensic-deepdive uv sync --all-extras
what can it do? (banner + capability panel: artifacts, protocols, MCP tools, confidence legend)
uv run forensic info
guided setup: analyze a repo, then wire it up as an MCP server
(--yes takes every default: scriptable, and the one mode that needs no extra)
uv run forensic onboard --repo /path/to/repo
run on any repo
uv run forensic extract /path/to/repo
graph lands at /.deepdive/graph.lbug
5 markdown artifacts at /docs/codebase/
10 shims at /.claude/, .cursor/, .continue/, root
trace a cross-stack feature slice (frontend call -> endpoint -> handler -> tail)
uv run forensic trace --repo /path/to/repo
interactive query REPL over one held-open store (needs the [interactive] extra)
bare text = natural-language query (no LLM) · :cypher = raw Cypher · :help · Ctrl-D exits
uv run forensic repl --repo /path/to/repo
full-screen terminal graph browser — the loopback-free sibling of serve --ui
1/2/3 = Symbols/Files/Endpoints · type to filter · c/e/l = confidence/edge/language · Enter = context · i/f = impact/flow
uv run forensic browse --repo /path/to/repo
the session shell: all of the above over ONE held-open graph, with history
in-session: extract · query · trace · impact · flow · diagram · browse · onboard · serve
uv run deepdive --repo /path/to/repo
query the graph as an MCP server (point it at the analyzed repo)
uv run forensic serve --repo /path/to/repo
inspect every repo you've analyzed
uv run forensic list
Install from PyPI
Published as [`forensic-deepdive`](https://pypi.org/project/forensic-deepdive/) — no clone needed:
uv tool install forensic-deepdive # puts `forensic` on PATH
forensic extract /path/to/repo
…or run ephemerally, no install:
uvx forensic-deepdive extract /path/to/repo
Optional extras: uv tool install "forensic-deepdive[semantic]" (offline ONNX NL query), [interactive] (the forensic repl query console, the forensic browse TUI graph browser, and the deepdive session shell), [openapi] (YAML spec parsing), [graphiti] (temporal insight backend).
Upgrading from 0.8
Re-run extract with --refresh-shims once. The generated shims and skills under .claude/, .cursor/ and .continue/ are written only if absent, so a plain re-extract leaves your 0.8-era copies in place, and two of the skill files still cite internal decision IDs that 0.9 removed:
forensic extract /path/to/repo --force --refresh-shims
Only files Deepdive generated are rewritten. A shim you have hand-edited is never touched. pip install forensic-deepdive works too if you're not on uv.
Use it as an MCP server
forensic serve is a stdio MCP server exposing the 9 composite tools to any MCP-aware agent (Claude Code, Cursor, VS Code/Copilot, Codex, Continue, Cline, Windsurf). First build the graph once (forensic extract ), then wire the server. Three ways, easiest first:
1. Claude Code plugin (self-hosted marketplace — no PyPI step):
/plugin marketplace add Dhevenddra/forensic-deepdive
/plugin install forensic-deepdive@dhevenddra
2. From the [MCP Registry](https://registry.modelcontextprotocol.io) — indexed as io.github.Dhevenddra/forensic-deepdive, so registry-aware clients and discovery hubs (PulseMCP, MCPJungle, the VS Code @mcp index) can find and install it directly.
**3. Ma