Back to repos

Graft

TypeScript

Speed up coding agents with codebase context

trailhq/Graft on GitHub

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.

Stars9.3k
Forks844
Stars / day67.3
LicenceMIT

Useful? Star it. That is the only thanks most maintainers get.

Also from trailhq