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.
Pick a small issue you can reproduce, then fix it with your AI coding agent.
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
- 11k
- Category
- AI agents and LLM tools
- Language
- TypeScript
- License
- MIT
- Forked
- 2026-08-12
- Sync status
- Updated by last syncLast synced 2026-11-08
More in AI agents and LLM tools
/last30days is an AI-agent skill for researching recent discussions across social platforms, video, news, markets, and the web. It brings scattered signals together in a synthesized brief for trend research and preparation.
Forked 2026-10-22Last synced 2026-11-08License: MITAI agents and LLM toolsGitHub
A portable C99 inference engine for running Kimi K3 on a CPU without a GPU or machine-learning framework. It streams the large checkpoint from disk to support inference with limited RAM, for batch text generation or text chat.
Forked 2026-10-21Last synced 2026-11-08License: Apache-2.0AI agents and LLM toolsGitHub
LayerFS gives AI agents writable workspaces over shared history, so they can work in parallel without copying the base. Use it to checkpoint, branch, rewind, and merge agent changes.
Forked 2026-10-21Last synced 2026-11-08License: MITAI agents and LLM toolsGitHub
Magnitude runs open models locally and tunes kernels for your hardware. Use it to connect local models to supported agents or an OpenAI-compatible client.
Forked 2026-10-19Last synced 2026-11-08License: Apache-2.0AI agents and LLM toolsGitHub