Rating
Votes
0
score
Downloads
0
total
Price
Free
API key required
Works With
About
hedwig-cg
"With hedwig-cg, your coding agent knows what to read."
Quick Start · 한국어 · 日本語 · 中文 · Deutsch
Why hedwig-cg?
raw data from a given number of sources is collected, then compiled by an LLM into a .md wiki, then operated on by various CLIs by the LLM to do Q&A and to incrementally enhance the wiki - Andrej Karpathy
hedwig-cg builds a queryable code graph and knowledge base from codebases with 10,000+ files and knowledge documents, powered by lightweight local LLM models. Two-Stage 5-signal hybrid search (vector + graph + keyword + community → RRF fusion → Cross-Encoder reranking) lets coding agents truly understand your entire project, not just search keywords. Install it, and Claude Code sees the full picture — no extra tokens, no extra commands, everything runs 100% locally.
Quick Start
pip install hedwig-cg
cd your-project/
hedwig-cg claude install
Then tell Claude Code:
"Build a code graph for this project"
That's it. Claude Code will build the graph, and from then on, consult it before every search. The graph auto-rebuilds when your session ends.
AI Agent Integrations
hedwig-cg integrates with major AI coding agents in one command:
| Agent | Install | What it does |
|---|---|---|
| Claude Code | hedwig-cg claude install | Skill + CLAUDE.md + PreToolUse hook |
| Codex CLI | hedwig-cg codex install | AGENTS.md + PreToolUse hook |
| Gemini CLI | hedwig-cg gemini install | GEMINI.md + BeforeTool hook |
| Cursor IDE | hedwig-cg cursor install | .cursor/rules/ rule file |
| Windsurf IDE | hedwig-cg windsurf install | .windsurf/rules/ rule file |
| Cline | hedwig-cg cline install | .clinerules file |
| Aider CLI | hedwig-cg aider install | CONVENTIONS.md + .aider.conf.yml |
| MCP Server | claude mcp add hedwig-cg -- hedwig-cg mcp | 5 tools over Model Context Protocol |
...
Don't lose this
Three weeks from now, you'll want Hedwig Code Graph - "With hedwig-cg, your coding agent knows what to read." again. Will you remember where to find it?
Save it to your library and the next time you need Hedwig Code Graph - "With hedwig-cg, your coding agent knows what to read.", it’s one tap away — from any AI app you use. Group it into a bench with the rest of the team for that kind of task and you can pull the whole stack at once.
⚡ Pro tip for geeks: add a-gnt 🤵🏻♂️ as a custom connector in Claude or a custom GPT in ChatGPT — one click and your library is right there in the chat. Or, if you’re in an editor, install the a-gnt MCP server and say “use my [bench name]” in Claude Code, Cursor, VS Code, or Windsurf.
a-gnt's Take
Our honest review
This plugs directly into your AI and gives it new abilities it didn't have before. s. Once connected, just ask your AI to use it. It's completely free and works across most major AI apps. This one just landed in the catalog — worth trying while it's fresh.
Tips for getting started
Tap "Get" above, pick your AI app, and follow the steps. Most installs take under 30 seconds.
Heads up: this needs an API key to work. You'll get one from the service's website (usually free). The setup guide tells you exactly where.
What's New
Initial release
Ratings & Reviews
0.0
out of 5
0 ratings
No reviews yet. Be the first to share your experience.