by kunal12203
Compounding Context for AI Coding Assistants — MCP graph engine for Claude Code, Cursor, Copilot, Gemini, OpenCode
# Add to your Claude Code skills
git clone https://github.com/kunal12203/GrapeRootGuides for using ai agents skills like GrapeRoot.
Last scanned: 8/3/2026
{
"issues": [
{
"file": "README.md",
"line": 152,
"type": "remote-install",
"message": "Install command (remote install script piped to a shell — review the source before running): \"curl -sSL https://raw.githubusercontent.com/kunal12203/Codex-CLI-Compact/main/in\"",
"severity": "low"
}
],
"status": "PASSED",
"scannedAt": "2026-08-03T07:24:46.886Z",
"npmAuditRan": true,
"pipAuditRan": false,
"promptInjectionRan": true
}
Compounding Context for AI Coding Assistants
Website · Docs · Benchmarks · Discord
🌐 Read this in your language: English · 中文 · Español · हिंदी · Français · Deutsch · 日本語 · 한국어 · Português · Русский · العربية · Türkçe · Bahasa Indonesia
GrapeRoot is an open-source context engine that sits between you and your AI coding assistant. It builds a semantic graph of your codebase — files, symbols, imports, call chains — and pre-loads exactly the right code into every prompt before your AI sees it.
The result: your AI spends tokens reasoning, not exploring.
You run: dgc /path/to/project
↓
1. Project scanned → semantic graph built (files, symbols, imports)
2. You ask a question
3. Graph identifies the relevant files → packs them into context
4. AI gets your question + the right code already loaded
5. Fewer turns, fewer tokens, better answers
Token savings compound across a session. The graph remembers which files were read, edited, and queried — each turn gets cheaper.
Other tools (CodeGraph, code-graph-mcp, and similar) give your AI a graph and let it explore:
You ask a question
→ AI calls search_symbol / get_callers / trace_route
→ AI reads results, decides what else to look up
→ AI calls more tools
→ AI finally has enough context to answer
Your AI spends turns exploring before it can reason.
GrapeRoot pre-loads the right context before your AI sees your question:
You ask a question
→ Graph identifies relevant files automatically
→ Files packed into the prompt
→ AI answers immediately
No exploration. No extra tool calls. Your AI starts reasoning from turn one.
| Other tools | GrapeRoot | |
|---|---|---|
| How context is delivered | AI pulls on demand via tool calls | Pre-loaded before every turn |
| Session memory | No | Yes — compounds across turns |
| Token budget control | AI decides | Hard-capped per turn |
| Turns spent exploring | Multiple | Zero |
| Savings compound | No | Yes — each turn gets cheaper |
Benchmarked across multiple real-world codebases (7,700+ files) and 50+ engineering prompts:
| Metric | Without GrapeRoot | With GrapeRoot |
|---|---|---|
| Cost per prompt | $0.49 | $0.27 |
| Avg turns per task | 11.7 | 3.5 |
| Avg response time | 172s | 124s |
| Quality (scored) | 76.6 / 100 | 86.6 / 100 |
| Cost win rate | — | 10 out of 10 prompts |
| Task type | Cost reduction |
|---|---|
| Migration & architecture design | up to 81% |
| Performance analysis | up to 80% |
| Testing & test generation | up to 76% |
| Full-stack debugging | up to 73% |
| Feature development | up to 71% |
| Code explanation & audit | up to 55% |
| Large codebase (7k+ files, avg) | 43% average |
Savings compound across a session — a token avoided on turn 3 also skips cache re-billing on every subsequent turn. Quality stays equal or improves on every task type above.
Full benchmark methodology and results: graperoot.dev/benchmarks
| Tool | Command | Status |
|---|---|---|
| Claude Code | dgc |
✅ Full support |
| OpenAI Codex CLI | dg |
✅ Full support |
| Cursor | graperoot . --cursor |
✅ Full support |
| Gemini CLI | graperoot . --gemini |
✅ Full support |
| OpenCode | graperoot . --opencode / dgo |
✅ Full support |
| GitHub Copilot | graperoot . --copilot |
✅ Full support |
| OpenClaw | graperoot . --openclaw |
✅ Full support |
| Kilocode | graperoot . --kilocode |
✅ Full support |
| MiMo Code | graperoot . --mimocode |
✅ Full support |
| Antigravity | graperoot . --antigravity |
✅ Full support |
| Kiro CLI | graperoot . --kiro |
✅ Full support |
| Command Code | graperoot . --command-code |
✅ Full support |
TypeScript · JavaScript · Python · Go · Swift · Rust · Java · Kotlin · Scala · C# · Ruby · PHP
macOS / Linux:
curl -sSL https://raw.githubusercontent.com/kunal12203/Codex-CLI-Compact/main/install.sh | bash
source ~/.zshrc # or ~/.bashrc / ~/.profile
Windows (PowerShell):
irm https://raw.githubusercontent.com/kunal12203/Codex-CLI-Compact/main/install.ps1 | iex
Windows (Scoop):
scoop bucket add dual-graph https://github.com/kunal12203/scoop-dual-graph
scoop install dual-graph
Prerequisites: Python 3.10+, Node.js 18+, and one of the supported AI tools. The installer detects missing tools and offers to install them automatically.
Important: Always use
dgc(notclaudedirectly) to ensure the MCP server is running.
dgc # scan current directory, launch Claude
dgc /path/to/project # scan a specific project
dgc /path/to/project "fix the login bug" # start with a prompt
dg # scan current directory
dg /path/to/project # scan a specific project
dg /path/to/project "add tests" # start with a prompt
Set MINIMAX_API_KEY, then select either supported model: MiniMax-M3 or
MiniMax-M2.7. The minimax alias uses MiniMax-M3.
export MINIMAX_API_KEY="your-api-key"
dg --model=minimax /path/to/project
dg --model=minimax-m3 /path/to/project
dg --model=minimax-m2.7 /path/to/project
MINIMAX_REGION selects the endpoint region and defaults to global_en.
MINIMAX_API_MODE selects the compatible API mode and defaults to openai;
set it to anthropic to use the Anthropic-compatible endpoint. The launcher
uses a 1,000,000-token context window for MiniMax-M3 and a 204,800-token
context window for MiniMax-M2.7.
| Region | OpenAI-compatible base URL | Anthropic-compatible base URL |
|---|---|---|
global_en |
https://api.minimax.io/v1 |
https://api.minimax.io/anthropic |
cn_zh |
https://api.minimaxi.com/v1 |
https://api.minimaxi.com/anthropic |
MINIMAX_REGION=cn_zh dg --model=minimax-m3 /path/to/project
MINIMAX_API_MODE=anthropic dgc --model=minimax-m2.7 /path/to/project
graperoot # shows directory confirm + arrow-key tool picker
graperoot . # same, picks from current directory
graperoot --version # print current version
graperoot --update # force self-update
dgo # scan current directory
dgo /path/to/project # scan a specific project
dgo /path/to/project "refactor" # start with a prompt
graperootgraperoot . --cursor # Cursor
graperoot . --gemini # Gemini CLI
graperoot . --opencode # OpenCode
graperoot . --copilot # GitHub Copilot
graperoot . --openclaw # OpenClaw
graperoot . --kilocode # Kilocode
graperoot . --mimocode # MiMo Code
graperoot . --kiro # Kiro CLI
graperoot . --command-code # Command Code
graperoot /path --gemini "add tests" # specific project + prompt
dgc . # from inside the project directory
dgc "D:\projects\my-app" # any drive, any path
dg "C:\work\backend" # Codex CLI
dgc --gemini "D:\projects\app" # Gemini CLI on Windows
.dual-graph/.graph_read, graph_retrieve, graph_neighbors) when it needs to explore.All processing is local. No code leaves your machine.
All data lives in <project>/.dual-graph/ (auto-added to .gitignore):
| File | Description |
|---|---|
info_graph.json |
Semantic graph: files, symbols, edges |
chat_action_graph.json |
Session memor |
GrapeRoot is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by kunal12203. Compounding Context for AI Coding Assistants — MCP graph engine for Claude Code, Cursor, Copilot, Gemini, OpenCode. It has 978 GitHub stars.
Yes. GrapeRoot passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/kunal12203/GrapeRoot" and add it to your Claude Code skills directory (see the Installation section above).
GrapeRoot is primarily written in PowerShell. It is open-source under kunal12203 on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh GrapeRoot against similar tools.
No comments yet. Be the first to share your thoughts!