Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/tirth8205/code-review-graph/claude-mdgit clone --depth 1 https://github.com/tirth8205/code-review-graphWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.02664 | $0.02664 |
| Opus 5 | $0.01332 | $0.01332 |
| Sonnet 5 | $0.00533 | $0.00533 |
| Haiku 4.5 | $0.00266 | $0.00266 |
Grade A, and why
code-review-graph CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 215 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md - Project Context for Claude Code
Project Overview
code-review-graph is a persistent, incrementally updated, local-first knowledge graph for token-efficient code review through MCP and the CLI. It parses codebases using Tree-sitter and targeted fallbacks, builds a structural graph in SQLite, and exposes compact context to AI coding tools including Claude Code, Codex, Cursor, Windsurf, Zed, Continue, OpenCode, Gemini CLI, Qwen, Kiro, Qoder, and GitHub Copilot.
Graph Tool Usage (Token-Efficient)
When using code-review-graph MCP tools, follow these rules:
- First call:
get_minimal_context(task="<description>")— costs ~100 tokens, gives you the full picture. - All subsequent calls: use
detail_level="minimal"unless you need more. - Prefer
query_graph_toolwith a specific target over broadlist_*calls. - The
next_tool_suggestionsfield in every response tells you the optimal next step. - Target: ≤5 tool calls per task, ≤800 total tokens of graph context.
Architecture
- Core Package:
code_review_graph/(Python 3.10+)parser.py— Tree-sitter multi-language AST parser plus targeted fallbacks for broad source-language and notebook supportcustom_languages.py— Config-driven custom language support (.code-review-graph/languages.toml, see docs/CUSTOM_LANGUAGES.md)graph.py— SQLite-backed graph store (nodes, edges, weighted-score impact analysis)tools/— 30 MCP tool implementations split by domainmain.py— FastMCP server entry point, registers 30 tools + 5 promptsincremental.py— Git-based change detection, file watchingembeddings.py— Optional vector embeddings (local sentence-transformers, OpenAI-compatible endpoints, Google Gemini, MiniMax, Voyage AI)visualization.py— D3.js interactive HTML graph generatorcli.py— CLI entry point (install/init, build, update, postprocess, embed, watch, status, visualize, serve/mcp, wiki, detect-changes, register, unregister, repos, eval, daemon)flows.py— Execution flow detection and criticality scoringcommunities.py— Community detection (Leiden algorithm or file-based grouping) and architecture overviewsearch.py— FTS5 hybrid search (keyword + vector)changes.py— Risk-scored change impact analysis (detect-changes)refactor.py— Rename preview, dead code detection, refactoring suggestionshints.py— Review hint generationprompts.py— 5 MCP prompt templates (review_changes, architecture_map, debug_issue, onboard_developer, pre_merge_check)wiki.py— Markdown wiki generation from community structureskills.py— Multi-platform install/config generation and shipped skill metadataregistry.py— Multi-repo registry helpersmigrations.py— Database schema migrations (v1-v9)tsconfig_resolver.py— TypeScript path alias resolution
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 215 lines · 2,664 tokens per session scan A 6da421de9703
code-review-graph CLAUDE.md is an instructions file published in the GitHub repository tirth8205/code-review-graph (31,016 stars, last pushed 5d ago), licensed MIT. It adds 2,664 tokens to every session, about $0.0133 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
aider-desk AGENTS.md
Instructions for hotovo/aider-desk, covering agents.md, common commands, development, type checking and linting and formatting.
Meta_Kim CLAUDE.md
Instructions for KimYx0207/Meta_Kim, covering metakim for claude code, fast read, what this repository is, claude code's role and canonical vs runtime files.
crystal CLAUDE.md
Instructions for stravu/crystal, covering crystal - multi-session claude code manager, project overview, references, implementation status: ✅ complete and ✅ implemented features.
easy-cheese python.instructions.md
Instructions for paulnsorensen/easy-cheese, covering hard rules, what to flag and what not to flag.
claude-bridge AGENTS.md
Instructions for kadaba/claude-bridge, covering agents.md — using claude-bridge from any ai coding cli, two independent channels, 1. coordination (the conversation), 2. file transfer (the bytes) — same for every tool and workflows.
AmbyKit CLAUDE.md
Instructions for ambystechcom/AmbyKit, covering claude code — notes for the ambykit repo and claude-specific.