graft
A tool that gives coding agents such as Claude Code, Cursor and Codex a structured understanding of your codebase. The aim is to make agent work faster and cheaper.
Share on XLicense: MIT
Overview
Graft is a command line tool that helps coding agents such as Claude Code, Cursor, Codex and Gemini understand a codebase without re-exploring it every session. It reads your code once and writes a graph into the repo as linked markdown files, one node per system, API or concept, each explained in plain English. It then wires hooks and a statusline into Claude Code so matching nodes are added to each prompt. Install it with npm and run graft init.
Key features
- Builds a graph of linked markdown files from your code
- graft init wires hooks and statusline into Claude Code
- Rebuilds the graph in the background after each turn
- graft grep, graft map and graft viz for search and visualization
- MCP server and support for monorepos and multi-repo folders
Best for
Teams whose coding agents waste tool calls and tokens rediscovering the same repository. The graph is a local cache, so each teammate runs graft build themselves.
- Upstream
- trailhq/Graft
- Fork on GitHub
- Guo-astro/graft
- Upstream stars
- 9.6k
- Category
- AI agents and LLM tools
- Language
- TypeScript
- License
- MIT
- Forked
- 2026-08-12
- Sync status
- In syncLast synced 2026-10-10
More in AI agents and LLM tools
An open-source curriculum for learning AI engineering by implementing model internals, retrieval pipelines, and agent runtimes. Study through lessons, interactive labs, or staged coding projects, and inspect the code and evaluation results.
Forked 2026-10-09Last synced 2026-10-10License: MITAI agents and LLM toolsGitHub
A small, hackable character-level language model that learns patterns from line-based text files and generates similar items, such as name ideas.
Forked 2026-10-09Last synced 2026-10-10License: MITAI agents and LLM toolsGitHub
uzu is an inference engine for running AI models in apps, helping developers keep inference on-device instead of relying on remote services. Use it to download a model and build chat features.
Forked 2026-10-09Last synced 2026-10-10License: MITAI agents and LLM toolsGitHub
Anti Slop gives AI coding agents rules to avoid generic UI, filler text, and AI-shaped code. Use it as a filter alongside your own design direction.
Forked 2026-10-08Last synced 2026-10-10License: MITAI agents and LLM toolsGitHub