AI product Open source

Graft

Graft is an open-source codebase-context tool for coding agents, developed by NanoNets. It builds a repository graph and stores the result as linked Markdown files, with one node for each system, API, or concept and links describing how parts of the codebase connect. The graph supplies targeted context to agents instead of requiring them to rediscover repository structure during every task.

View repository Visit site Mentioned in 1 video ↓

Overview

It provides a CLI and MCP server, with integrations for Claude Code, Cursor, Codex, Gemini, and other coding agents. The CLI supports repository initialization, graph building, targeted search and orientation through commands such as `graft grep` and `graft map`, and graph visualization. `graft init` can install the agent wiring and background rebuild hooks; the generated graph is a local, regenerable cache that is added to `.gitignore` by default.

What Graft is used for

1 use taken from transcripts — each links to the moment in the video.

  • Gives coding agents a persistent map of a repository so tasks do not repeatedly require broad file archaeology. It builds a deterministic graph of symbols, imports, and calls, then exposes targeted search and dependency tracing through a CLI or MCP server.

Videos mentioning Graft

1 in the library.