
Graft
TypeScript
Speed up coding agents with codebase context

What you get
Wire Graft into Claude Code, Cursor, or Codex to reduce exploration overhead and give your agent a codebase map before it starts. Run `graft init` to build a linked-markdown graph of your code, then Graft injects relevant nodes into each prompt automatically. Measured 46% fewer tool calls, 42% fewer tokens, 60% less time,and +12 points higher correctness on SWE-bench.
Why it exists
Builds readable code graph once; injects relevant nodes into agent prompts automatically
How it works
SWE-bench Verified: 66% correctness vs 54% cold; 46% fewer tool calls, 60% less time
For
Developers using Claude Code, Cursor, or other coding agents on large codebases.
- Use cases
- / Speed up multi-file code changes
- / Fix bugs faster with context map
- / Reduce agent exploration on monorepos
Stars9.3k
Forks844
Stars / day67.3
LicenceMIT
- ai-agents
- anthropic
- claude-code
- cli
- code-graph
- codex
- context-engineering
- cursor
- developer-tools
- gemini
Useful? Star it. That is the only thanks most maintainers get.
Also from trailhq
- Graft★ 9.3k