code-review-graph
CLAUDE.md32k starsChanged 6 months agoMITView on GitHub
code-review-graph is a local-first knowledge graph for code review. It parses a repository with Tree-sitter (plus targeted fallbacks), stores nodes and edges in SQLite, updates the graph incrementally from Git changes, and serves compact context over MCP and the CLI to AI coding tools. Supported platforms are the entries in PLATFORMS in skills.py: Claude Code, Codex, Cursor, Windsurf, Zed, Continue, OpenCode, Antigravity, Gemini CLI, Qwen Code, Kiro, Qoder, GitHub Copilot, GitHub Copilot CLI, Hermes Agent and CodeBuddy Code. When using…
- Commits and pushes
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about tirth8205/code-review-graph
- A Hacker News story“Code-review-graph: persistent code graph that cuts Claude Code token usage”Hacker News · Mar 9, 2026 · 12 points
- @camilleroux.com“`code-review-graph` construit un graphe de votre codebase pour que Claude ne lise que les fichiers …”Bluesky · Apr 6, 2026 · 10 likes
- @qdrddr.bsky.social“Helper for #Agents for token efficiency. #MCP or #CLI: Builds #Code #Graph: #AST & Tree-sitter. Continuous …”Bluesky · Apr 7, 2026 · 7 likes
- @dailygithubtrends.bsky.social“今日のGitHubトレンド tirth8205/code-review-graph AIコーディングツールがレビュー時にコードベースを過剰に読み込み、トークンを浪費する問題を解決するためのツールです。…”Bluesky · Jul 21, 2026 · 4 likes
- @github-trending.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 tirth8205 / code-review-graph ⭐ 28,816 (+232) 🗒 Python Local-first …”Bluesky · Aug 6, 2026 · 3 likes
The biggest 5 of 72 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 72
Talked about on GitHub, Bluesky and Hacker News (72 times).
On GitHub · 50
- Nov 20, 2026Bump tirth8205/code-review-graph from 2.3.9 to 2.4.0 — StBritto/Zion-Calvary0 reactions
- Nov 20, 2026Bump tirth8205/code-review-graph from 2.3.9 to 2.4.0 — StBritto/St-brittos-school0 reactions
- Nov 20, 2026Bump tirth8205/code-review-graph from 2.3.9 to 2.4.0 — StBritto/shri-saibaba-ordering-app0 reactions
- Nov 20, 2026Bump tirth8205/code-review-graph from 2.3.9 to 2.4.0 — StBritto/RJ-Digital-Solutions0 reactions
- Nov 20, 2026Bump tirth8205/code-review-graph from 2.3.9 to 2.4.0 — StBritto/shri-saibaba-associates0 reactions
45 more on GitHub
- Nov 20, 2026Bump tirth8205/code-review-graph from 2.3.9 to 2.4.0 — StBritto/spice-courtyard0 reactions
- Nov 15, 2026ci(deps): bump the github-actions group across 1 directory with 2 updates — im47cn/etf-radar0 reactions · 3 comments
- Nov 11, 2026agent-skills.github.tirth8205.code-review-graph: 2.3.9 → 2.4.0 — sudosubin/agents.nix0 reactions
- Nov 9, 2026chore(deps)(deps): bump the actions-patch-minor group across 1 directory with 16 updates — setiyadijoko/template-ai-native-profile-starter-pilot0 reactions · 2 comments
- Nov 9, 2026chore(deps)(deps): bump the actions-patch-minor group across 1 directory with 16 updates — setiyadijoko/template-ai-native-profile-standard-pilot0 reactions · 2 comments
- Nov 9, 2026chore(deps)(deps): bump the actions-patch-minor group across 1 directory with 16 updates — setiyadijoko/rinjani0 reactions · 2 comments
- Nov 9, 2026chore(deps)(deps): bump the actions-patch-minor group across 1 directory with 16 updates — setiyadijoko/template-ai-native-profile-enterprise-pilot0 reactions · 2 comments
- Nov 2, 2026chore(deps)(deps): bump the actions-patch-minor group across 1 directory with 14 updates — setiyadinamikaintegrasi/service-desk-triage-pilot0 reactions · 2 comments
- Oct 26, 2026chore(deps)(deps): bump the actions-patch-minor group across 1 directory with 14 updates — setiyadijoko/template-ai-native0 reactions · 3 comments
- Oct 26, 2026chore(deps)(deps): bump the actions-patch-minor group across 1 directory with 14 updates — setiyadinamikaintegrasi/template-java-pilot0 reactions · 2 comments
- Oct 26, 2026chore(deps)(deps): bump the actions-patch-minor group across 1 directory with 14 updates — setiyadijoko/template-ai-native-python-coverage-pilot0 reactions · 2 comments
- Oct 26, 2026chore(deps)(deps): bump the actions-patch-minor group across 1 directory with 14 updates — setiyadijoko/template-ai-native-profile-starter-pilot0 reactions · 3 comments
- Oct 26, 2026chore(deps)(deps): bump the actions-patch-minor group across 1 directory with 14 updates — setiyadinamikaintegrasi/mangahub0 reactions · 2 comments
- Oct 26, 2026chore(deps)(deps): bump the actions-patch-minor group across 1 directory with 14 updates — setiyadijoko/template-ai-native-profile-standard-pilot0 reactions · 3 comments
- Oct 26, 2026chore(deps)(deps): Bump the actions-patch-minor group across 1 directory with 16 updates — setiyadinamikaintegrasi/ev-charge-tracker0 reactions · 2 comments
- Oct 26, 2026chore(deps)(deps): bump the actions-patch-minor group across 1 directory with 14 updates — setiyadinamikaintegrasi/media-belajar-anak0 reactions · 2 comments
- Oct 26, 2026chore(deps)(deps): bump the actions-patch-minor group across 1 directory with 14 updates — setiyadijoko/rinjani0 reactions · 3 comments
- Oct 26, 2026chore(deps)(deps): bump the actions-patch-minor group across 1 directory with 14 updates — setiyadijoko/template-ai-native-profile-enterprise-pilot0 reactions · 3 comments
- Oct 26, 2026chore(deps)(deps): bump the actions-patch-minor group across 1 directory with 14 updates — setiyadinamikaintegrasi/template-dotnet-pilot0 reactions · 2 comments
- Oct 19, 2026chore(deps)(deps): bump the actions-patch-minor group across 1 directory with 13 updates — setiyadijoko/template-ai-native-python-coverage-pilot0 reactions · 3 comments
- Oct 19, 2026chore(deps)(deps): bump the actions-patch-minor group across 1 directory with 13 updates — setiyadinamikaintegrasi/mangahub0 reactions · 3 comments
- Oct 19, 2026chore(deps)(deps): bump the actions-patch-minor group across 1 directory with 13 updates — setiyadinamikaintegrasi/media-belajar-anak0 reactions · 3 comments
- Oct 19, 2026chore(deps)(deps): bump the actions-patch-minor group across 1 directory with 13 updates — setiyadijoko/rinjani0 reactions · 3 comments
- Oct 6, 2026Waiting on the owner: one list of pending decisions — uehaj/sys1grep0 reactions
- Oct 5, 2026chore(deps): bump the python-dependencies group with 22 updates — paulnsorensen/milknado0 reactions · 6 comments
- Oct 3, 2026agent-skills.github.tirth8205.code-review-graph: init at 2.3.9 — sudosubin/agents.nix0 reactions
- Oct 1, 2026chore(deps): bump tirth8205/code-review-graph from 2.3.8 to 2.3.9 — neomatrix369/AgentVetter0 reactions · 1 comment
- Oct 1, 2026build(deps): bump tirth8205/code-review-graph from 2.3.8 to 2.3.9 — neomatrix369/rag-params-finder0 reactions
- Oct 1, 2026chore(deps): bump tirth8205/code-review-graph from 2.3.7 to 2.3.9 — matematicsolutions/patron0 reactions
- Sep 27, 2026ci(deps): bump the github-actions group across 1 directory with 2 updates — im47cn/etf-radar0 reactions · 3 comments
- Sep 21, 2026chore(deps): bump tirth8205/code-review-graph from 2.3.8 to 2.3.9 — zenonlab/ctxroute-blueprint0 reactions · 2 comments
- Sep 20, 2026Freshness: code-review-graph v2.3.8 -> v2.3.9 — thoroc/context-radar0 reactions
- Sep 14, 2026chore(deps-dev): update code-review-graph requirement from >=2.3.7 to >=2.3.8 — mrnicholasbcarter-code/verdict-core0 reactions · 5 comments
- Sep 8, 2026Configure Git Hooks and Claude Code tooling with code-review-graph and graphify — pluto-atom-4/balancing-robot-controller0 reactions
- Sep 8, 2026Configure Git Hooks and Claude Code Tooling with Graphify and code-review-graph — pluto-atom-4/IntVue0 reactions · 1 comment
- Sep 6, 2026Configure Claude Code with code-review-graph, better-code-review-graph, and graphify tooling — pluto-atom-4/ats-showcase0 reactions · 1 comment
- Sep 6, 2026Configure Claude Code with code-review-graph, better-code-review-graph, and Graphify for enhanced architecture planning — pluto-atom-4/ng-graphql-showcase0 reactions · 2 comments
- Sep 2, 2026[staging] watch: an emitter that dies before the first liveness tick is never reported — loonister1/code-review-graph0 reactions · 1 comment
- Sep 1, 2026Bump tirth8205/code-review-graph from 2.3.7 to 2.3.8 in the github-actions group — RaySmalley/aurelia-falling0 reactions
- Sep 1, 2026chore(deps): bump tirth8205/code-review-graph from 2.3.7 to 2.3.8 — matematicsolutions/patron0 reactions · 2 comments
- Aug 31, 2026[Feature]: Expose runtime coverage and static test support through get_test_health — Luqueee/kivgraph0 reactions
- Aug 30, 2026ci(deps): bump the github-actions group across 1 directory with 2 updates — im47cn/etf-radar0 reactions · 3 comments
- Aug 29, 2026chore(deps): bump the python-dependencies group with 6 updates — duxvfeng/entrix0 reactions
- Aug 25, 2026chore(deps-dev): bump code-review-graph from 2.3.6 to 2.3.8 — flext-sh/flext0 reactions · 3 comments
- Aug 24, 2026chore(deps-dev): bump code-review-graph from 2.3.6 to 2.3.7 — flext-sh/flext0 reactions · 3 comments
On Bluesky · 20
- Apr 6, 2026`code-review-graph` construit un graphe de votre codebase pour que Claude ne lise que les fichiers réellement impactés par un changement —… — @camilleroux.com10 likes and reposts · 2 replies
- Apr 7, 2026Helper for #Agents for token efficiency. #MCP or #CLI: Builds #Code #Graph: #AST & Tree-sitter. Continuous updates with changes. 19… — @qdrddr.bsky.social7 likes and reposts
- Jul 21, 2026今日のGitHubトレンド tirth8205/code-review-graph AIコーディングツールがレビュー時にコードベースを過剰に読み込み、トークンを浪費する問題を解決するためのツールです。… — @dailygithubtrends.bsky.social4 likes and reposts
- Aug 6, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 tirth8205 / code-review-graph ⭐ 28,816 (+232) 🗒 Python Local-first code intelligence graph for MCP… — @github-trending.bsky.social3 likes and reposts · 1 reply
- Jul 27, 2026コードベースの構造をグラフ化してAIツールのトークン消費を抑えるツールっぽい 大規模リポジトリでのコードレビューや開発効率化に使えそう yug1224 starred tirth8205/code-review-graph… — @yug1224.com2 likes and reposts · 1 reply
15 more on Bluesky
- Jul 27, 2026コードベースを構造化してAIのトークン消費を抑えるコード解析ツールらしい 大規模なリポジトリでのAI開発が快適になりそうかも yug1224 starred tirth8205/code-review-graph… — @yug1224.com2 likes and reposts
- Jul 27, 2026github.com/tirth8205/code-... GitHub - tirth8205/code-review-graph: Local-first code intelligence graph for MCP and CLI. Build... — @technews4869.bsky.social2 likes and reposts
- Jul 22, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 tirth8205 / code-review-graph ⭐ 24,263 (+1,921) 🗒 Python Local-first code intelligence graph for… — @github-trending.bsky.social2 likes and reposts · 1 reply
- Jul 19, 2026今日のGitHubトレンド tirth8205/code-review-graph AIコーディングツールがレビュー時に広範囲なコードを再読み込みし、トークンを浪費する問題を解決するためのツールです。… — @dailygithubtrends.bsky.social2 likes and reposts
- Jul 17, 2026📦 tirth8205 / code-review-graph ⭐ 19,601 (+57) 🗒 Python Local-first code intelligence graph for MCP and CLI. Builds a persistent map of… — @github-trending.bsky.social2 likes and reposts
- Jul 4, 2026code-review-graph maps your whole codebase into a local-first graph, so your ai coding tools read only what matters. plugs into mcp + cli,… — @epicvibecoder.bsky.social2 likes and reposts · 1 reply
- May 2, 2026This looks like a nice tool - an MCP server to build a knowledge graph of your code, claims several times less tokens spent.… — @ayourtch.bsky.social2 likes and reposts · 1 reply
- Apr 15, 2026code-review-graph Local knowledge graph for Claude Code. Builds a persistent map of your codebase so Claude reads only what matters - 6.8×… — @pythonhub.dev2 likes and reposts · 1 reply
- Apr 11, 2026code-review-graph : graphe de code local pour réduire les tokens avec Claude Code — @news.humancoders.com2 likes and reposts
- Nov 10, 2026https://github.com/tirth8205/code-review-graph — @sigmanor.net1 likes and repost
- Jul 27, 2026コードベースの構造をグラフ化してAIのトークン消費量を劇的に減らすツールっぽい 大規模なプロジェクトでのAIコードレビューにすごく使えそう yug1224 starred tirth8205/code-review-graph… — @yug1224.com1 likes and repost
- Jul 20, 2026📈 Today's GitHub Trending: 1. https://github.com/tirth8205/code-review-graph - Python, 1876 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy1 likes and repost · 1 reply
- Aug 18, 2026公式READMEを読むと、現在の数値は中央値約65倍、最大376倍。しかも比較は「リポジトリ全ファイルを読む」対「グラフの検索結果」です。 公式自身が、熟練したエージェントのgrep+必要なファイル読みに対する比較ではない、と明記しています。… — @mint-echosphere.bsky.social0 likes and reposts · 1 reply
- Jul 19, 2026📈 Today's GitHub Trending: 1. https://github.com/tirth8205/code-review-graph - Python, 551 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy0 likes and reposts · 1 reply
- Apr 22, 2026Claude only reads the necessary parts, achieving 49x reduction for large monorepos. https://github.com/tirth8205/code-review-graph 4. Token… — @adityamitra.bsky.social0 likes and reposts · 1 reply
On Hacker News · 2
- Mar 9, 2026Code-review-graph: persistent code graph that cuts Claude Code token usage12 points · 2 comments
- Apr 3, 2026Code-review-graphv 2.1.0, 8× fewer tokens for code reviews via structural graph1 point
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- build-graphSkill
- debug-issueSkill
- explore-codebaseSkill
- refactor-safelySkill
- review-changesSkill
- review-deltaSkill
- review-prSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
20 rules. About 0 are common, 8 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
When using code-review-graph MCP tools:
- Very specific: line 11
Call get_minimal_context_tool(task="<description>") first.
- Very specific: line 12
Use detail_level="minimal" on every later call unless that is not enough.
- Very specific: line 13
Prefer query_graph_tool with a specific target over broad list_* calls.
- Very specific: line 14
Follow the next_tool_suggestions field in each response.
- Very specific: line 17
All registered tool names end in _tool.
- Distinctive: line 106
test: pytest on Python 3.10, 3.11, 3.12 and 3.13.
- Very specific: line 126
Use bd for ALL task tracking — do NOT use TodoWrite, TaskCreate, or markdown TODO lists
- Very specific: line 127
Run bd prime for detailed command reference and session close protocol
- Very specific: line 128
Use bd remember for persistent knowledge — do NOT use MEMORY.md files
- Distinctive: line 151
File issues for remaining work: - Create issues for anything that needs follow-up
- Distinctive: line 162
Verify: - All changes committed AND pushed
- Distinctive: line 167
NEVER stop before pushing - that leaves work stranded locally
- Distinctive: line 168
NEVER say "ready to push when you are" - YOU must push
- Distinctive: line 169
If push fails, resolve and retry until it succeeds <!-- END BEADS INTEGRATION -->
- Distinctive: line 191
Verify the exact source when touching behavior, database logic, migrations, retries, fallbacks, recovery, or compatibility code.
- Distinctive: line 193
When the graph and the source disagree, the source wins.
- Very specific: line 213
Use detect_changes_tool for code review.
- Very specific: line 214
Use get_affected_flows_tool to understand impact.
- Very specific: line 215
Use query_graph_tool pattern="tests_for" to check coverage.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md - Project Context for Claude Code
Project Overview
code-review-graph is a local-first knowledge graph for code review. It parses a repository with Tree-sitter (plus targeted fallbacks), stores nodes and edges in SQLite, updates the graph incrementally from Git changes, and serves compact context over MCP and the CLI to AI coding tools. Supported platforms are the entries in PLATFORMS in skills.py: Claude Code, Codex, Cursor, Windsurf, Zed, Continue, OpenCode, Antigravity, Gemini CLI, Qwen Code, Kiro, Qoder, GitHub Copilot, GitHub Copilot CLI, Hermes Agent and CodeBuddy Code.
Graph Tool Usage (Token-Efficient)
When using code-review-graph MCP tools:
- Call
get_minimal_context_tool(task="<description>")first. It costs about 100 tokens and gives the overview. - Use
detail_level="minimal"on every later call unless that is not enough. - Prefer
query_graph_toolwith a specific target over broadlist_*calls. - Follow the
next_tool_suggestionsfield in each response. - Target: at most 5 tool calls and 800 tokens of graph context per task.
All registered tool names end in _tool. The 30 tools are defined in main.py.
Architecture
Core package code_review_graph/ (Python 3.10+):
main.py: FastMCP server entry point. Registers 30 tools and 5 prompts.tools/: tool implementations by domain:build.py,query.py,review.py,context.py,flows_tools.py,community_tools.py,refactor_tools.py,docs.py,registry_tools.py,analysis_tools.py; shared helpers in_common.py.prompts.py: 5 MCP prompts (review_changes, architecture_map, debug_issue, onboard_developer, pre_merge_check).cli.py: thecode-review-graphcommand.daemon.pyanddaemon_cli.py: thecrg-daemonmulti-repo watch daemon.parser.py: Tree-sitter multi-language parser with fallbacks for notebooks and other formats.custom_languages.py: languages defined in.code-review-graph/languages.toml(see docs/CUSTOM_LANGUAGES.md).graph.py: SQLite graph store (nodes, edges, impact analysis).migrations.py: schema migrations; the current schema version is 13 and must equalSUPPORTED_SCHEMA_VERSIONin the VS Code extension (CI checks this).incremental.py: full build, Git/SVN change detection, incremental update, stale-file reconciliation, watch mode.postprocessing.py: shared post-build pipeline (signatures, flows, communities, FTS).- Post-build resolvers:
python_resolver.py,jedi_resolver.py(optionalenrichmentextra),spring_resolver.py,event_resolver.py,temporal_resolver.py,config_keys.py,scoped_resolver.py(PHP, Rust, C#),rescript_resolver.py,hcl_resolver.py,tsconfig_resolver.py(tsconfig and jsconfig path aliases). flows.py: execution flows and criticality.communities.py: Leiden via igraph (optional) or file-based grouping, plus the architecture overview.analysis.py: hub and bridge nodes, knowledge gaps, surprise scoring, suggested questions.search.py: FTS5 keyword search combined with optional vector search.embeddings.py: providers for local sentence-transformers, OpenAI-compatible endpoints, Google Gemini, MiniMax and Voyage AI.changes.py: risk-scored change analysis.refactor.py: rename preview, dead code, suggestions.hints.py:next_tool_suggestions.uncertainty.py:confidencenotes on empty results.context_savings.py: estimated context-savings metadata.visualization.py: D3.js HTML graph (D3 is bundled inassets/).exports.py: JSON, GraphML, Neo4j Cypher, Obsidian, SVG.wiki.py: Markdown wiki.graph_diff.py: snapshot diffing.memory.py: stored Q&A feedback.skills.py:install(platform MCP configs, hooks, skills, instruction blocks)._legacy_instructions.py: instruction blocks shipped by earlier releases.jsonc.py: comment-preserving JSONC tokenising and splices, shared by install and uninstall so neither flattens a commented config.uninstall.py: reversesinstall.enrich.py: PreToolUse hook enrichment.forget.py: drops files from the graph.registry.py: multi-repo registry.http_origin_guard.py: Host/Origin checks forserve --http.token_benchmark.pyandeval/: benchmarks.constants.py: shared constants.docs/LLM-OPTIMIZED-REFERENCE.md: the reference served byget_docs_section_tool.
VS Code extension: code-review-graph-vscode/ (TypeScript, separate package.json and tsconfig.json). Reads .code-review-graph/graph.db directly.
Database: .code-review-graph/graph.db (SQLite, WAL mode).
Key Commands
# Development
uv run pytest tests/ --tb=short -q
uv run ruff check code_review_graph/
uv run mypy code_review_graph/ --ignore-missing-imports --no-strict-optional
# Graph
uv run code-review-graph build # full build
uv run code-review-graph update # incremental update
uv run code-review-graph status # graph statistics
uv run code-review-graph detect-changes # risk-scored change analysis (read-only)
uv run code-review-graph forget PATH # drop files from the graph
uv run code-review-graph serve # MCP server (stdio; --http for localhost)
uv run code-review-graph wiki # Markdown wiki
uv run code-review-graph register <path> # add a repo to the multi-repo registry
uv run code-review-graph eval # benchmarks
uv run code-review-graph --help # full command listCode Conventions
- Line length 100 (ruff). Python 3.10+.
- SQL: parameterised queries with
?placeholders. Never format values into SQL strings. - Errors: catch specific exceptions and log with
logger.warningorlogger.error. - Threads:
threading.Lockaround shared caches; SQLite opened withcheck_same_thread=False. - Node names: pass through
_sanitize_name()before returning them to MCP clients. - File reads: read the bytes once, hash them, then parse the same bytes.
Security Invariants
- No
eval(),exec(),pickleoryaml.unsafe_load(). - No
shell=Truein subprocess calls. _validate_repo_root()requires an existing directory containing.git,.svnor.code-review-graph, which blocks path traversal throughrepo_root._sanitize_name()strips control characters and caps names at 256 characters.escH()invisualization.pyescapes HTML entities including quotes and backticks;</script>is escaped inside embedded JSON.- D3.js is bundled and loaded with an SRI hash; the CDN fallback carries the same hash.
http_origin_guard.pyvalidates Host and Origin forserve --http.- API keys come from environment variables only.
Test Structure
tests/ holds over 100 pytest modules. The main groups:
- Core:
test_parser.py,test_graph.py,test_incremental.py,test_tools.py,test_main.py,test_cli*.py. - Features:
test_flows.py,test_communities.py,test_changes.py,test_refactor.py,test_search.py,test_hints.py,test_prompts.py,test_wiki.py,test_embeddings.py,test_eval.py,test_registry.py,test_migrations.py,test_uncertainty.py,test_context_savings.py,test_token_budget.py(per-tool token budgets). - Languages:
test_multilang.py,test_custom_languages.py,test_notebook.py, plus per-language files such astest_php_*.py,test_spring_*.py,test_kotlin_imports.py,test_go_embeddings.py,test_cpp_*.py,test_typescript_node_extensions.py,test_tsconfig_resolver.py,test_hcl_parser.py,test_dbt_parser.py,test_ansible_parser.py. - Regression modules are named after the behaviour they pin, not the PR that produced them. The originating PR number goes in the module docstring.
- Watch and daemon:
test_watch_*.py,test_daemon*.py. - Install and platforms:
test_skills.py,test_cli_install.py,test_uninstall.py,test_git_hook_worktree.py,test_hermes_install.py,test_qoder_bundled_skills.py,test_installer_ownership.py(what install may rewrite and what belongs to the user),test_released_shapes.py(reads the hooks and MCP entries every released tag wrote and requires them to still be recognised; needs tags, skips without them),test_platform_lifecycle.py(opt-in markerplatform_lifecycle). - Windows:
test_windows_compat.py,test_windows_path_identity.py. - Docs and GitHub Action:
test_documentation.py,test_action_render.py. - Distribution gate:
test_packaging.py, markedpackagingand skipped by default. Builds a wheel and an sdist withpython -m build, installs each into its own virtual environment, and drives the installed program with the checkout out of reach. Needs network and takes a couple of minutes. Run it before a release withuv run --python 3.13 python -m pytest tests/test_packaging.py -m packaging. tests/fixtures/: sample files per supported language.
CI Pipeline
.github/workflows/ci.yml:
- lint: ruff on Python 3.10.
- type-check: mypy.
- security: bandit with the exemptions in
pyproject.toml. - schema-sync:
LATEST_VERSIONinmigrations.pymust equalSUPPORTED_SCHEMA_VERSIONin the VS Code extension. - test: pytest on Python 3.10, 3.11, 3.12 and 3.13; coverage must be at least 65%.
- google-embeddings: constructs the Google provider with the
google-embeddingsandallextras. - windows-native: a subset of the suite on windows-latest.
<!-- BEGIN BEADS INTEGRATION v:1 profile:minimal hash:ca08a54f -->Beads Issue Tracker
This project uses bd (beads) for issue tracking. Run bd prime to see full workflow context and commands.
Quick Reference
bd ready # Find available work
bd show <id> # View issue details
bd update <id> --claim # Claim work
bd close <id> # Complete workRules
- Use
bdfor ALL task tracking — do NOT use TodoWrite, TaskCreate, or markdown TODO lists - Run
bd primefor detailed command reference and session close protocol - Use
bd rememberfor persistent knowledge — do NOT use MEMORY.md files
Branching Model
Three long-lived branches, one direction: feature PR → staging (default) → testing → main → tag → PyPI.
Open every PR against staging. Never push to or open PRs against testing or main; those only
receive promotion PRs, always merged with a merge commit.
staging → testing is automatic: .github/workflows/auto-promote.yml runs once a day and merges
the promotion PR when staging is ahead, every required check is green, and the promotion gate has
not failed on testing. The decision lives in scripts/auto_promote.py. It merges only a PR it
opened itself — same repository, correctly aimed, labelled auto-promotion, pinned to the commit
whose checks were read — so a promotion PR you open by hand is left alone. It needs Settings →
Actions → General → Workflow permissions → Allow GitHub Actions to create and approve pull
requests. Promotion to main is never automatic — the maintainer opens and merges that PR by
hand. Full rules in CONTRIBUTING.md "Branching and promotion".
Session Completion
When ending a work session, you MUST complete ALL steps below. Work is NOT complete until git push succeeds.
MANDATORY WORKFLOW:
- File issues for remaining work - Create issues for anything that needs follow-up
- Run quality gates (if code changed) - Tests, linters, builds
- Update issue status - Close finished work, update in-progress items
- PUSH TO REMOTE - This is MANDATORY:
git pull --rebase bd dolt push git push git status # MUST show "up to date with origin" - Clean up - Clear stashes, prune remote branches
- Verify - All changes committed AND pushed
- Hand off - Provide context for next session
CRITICAL RULES:
- Work is NOT complete until
git pushsucceeds - NEVER stop before pushing - that leaves work stranded locally
- NEVER say "ready to push when you are" - YOU must push
- If push fails, resolve and retry until it succeeds
<!-- END BEADS INTEGRATION --><!-- code-review-graph MCP tools -->MCP Tools: code-review-graph
This project has a knowledge graph. Start with the code-review-graph MCP tools to narrow scope, then read the source. The graph is cheaper than scanning files and gives you structural context (callers, dependents, test coverage) that file search cannot.
When to use graph tools FIRST
- Exploring code:
semantic_search_nodes_toolorquery_graph_toolinstead of Grep - Understanding impact:
get_impact_radius_toolinstead of manually tracing imports - Code review:
detect_changes_tool+get_review_context_toolinstead of reading entire files - Finding relationships:
query_graph_toolwith callers_of/callees_of/imports_of/tests_for - Architecture questions:
get_architecture_overview_tool+list_communities_tool
Verify in the source
- Narrow scope with the graph, then read the source. Do not change code from graph output alone.
- For any non-trivial change, read the implementation and the relevant tests before concluding.
- Verify the exact source when touching behavior, database logic, migrations, retries, fallbacks, recovery, or compatibility code.
- When the graph and the source disagree, the source wins. The graph may be stale or may not model that relationship.
- An empty graph result can mean "not indexed" or "not statically visible", not "does not exist".
Key Tools
| Tool | Use when |
detect_changes_tool | Reviewing code changes — gives risk-scored analysis |
get_review_context_tool | Need source snippets for review — token-efficient |
get_impact_radius_tool | Understanding blast radius of a change |
get_affected_flows_tool | Finding which execution paths are impacted |
query_graph_tool | Tracing callers, callees, imports, tests, dependencies |
semantic_search_nodes_tool | Finding functions/classes by name or keyword |
get_architecture_overview_tool | Understanding high-level codebase structure |
refactor_tool | Planning renames, finding dead code |
Workflow
- The graph auto-updates on file changes (via hooks).
- Use
detect_changes_toolfor code review. - Use
get_affected_flows_toolto understand impact. - Use
query_graph_toolpattern="tests_for" to check coverage.
<!-- /code-review-graph MCP tools -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

