---
title: "Nanonets' Graft Makes Claude Code 3x Faster by Mapping Your Codebase Once"
subtitle: "Graft builds a persistent, plain-English graph of your codebase so coding agents skip re-exploration and hit 66% on SWE-bench Verified."
url: "https://alphasignal.ai/news/nanonets-graft-makes-claude-code-3x-faster-by-mapping-your-codebase-once"
author: "AlphaSignal Newsroom"
author_url: "https://alphasignal.ai/editorial-team"
company: "AlphaSignal"
company_url: "https://alphasignal.ai/company/alphasignal"
published: "2026-08-25T19:20:32.000Z"
updated: "2026-08-25T23:58:49.127Z"
type: "Repo"
topics:
  - "Development"
  - "Open Source"
subtopics:
  - "Code Agents"
  - "Code Generation"
upvotes: 88
source_url: "https://github.com/trailhq/Graft"
comments: 0
truncated: true
---

# Nanonets' Graft Makes Claude Code 3x Faster by Mapping Your Codebase Once

> Graft builds a persistent, plain-English graph of your codebase so coding agents skip re-exploration and hit 66% on SWE-bench Verified.

Every time you fire up Claude Code or Cursor on the same repo, your agent starts from zero. It greps the same terms, opens the same files, follows the same imports, then throws all of that mapping away when the session ends. A new open-source project called [Graft](https://github.com/trailhq/Graft), from the team at Nanonets, writes the map to disk once and lets every coding agent read it like any other file.

The pitch is concrete: [Graft](https://graft.nanonets.ai) claims up to 4x cheaper and 3x faster runs with equal or better correctness, and it has the benchmarks to back it up. On SWE-bench Verified with Claude Sonnet, **Graft-wired Claude Code resolved 33 of 50 instances against a cold baseline's 27**, a jump from 54% to 66%.

## The rediscovery tax

The core problem Graft targets is that agents rebuild their mental model of a codebase on every task, and that rediscovery burns most of a run's tool calls, tokens, and latency. A no-map agent's exploration trail wanders file to file before it finds what it needs, and none of that work carries over to the next session or the next teammate.

Graft precomputes the understanding once and stores it as a folder of linked markdown files, one node per subsystem, API, or concept. Each node contains:

* **Summary**: a plain-English explanation written by an LLM and cached
* **Crux**: the handful of lines that carry the actual logic, lifted from source
* **Sources**: the exact files the node was built from, tracked by content hash
* **Links**: typed edges to other nodes like `depends_on`, `uses`, `implements`, `produces`
* **Notes**: anything you write yourself, preserved across regenerations

_Preview only. Full text requires an AlphaSignal Pro account._

## Sources

- [trailhq/Graft on GitHub](https://github.com/trailhq/Graft)
- [Graft: the context layer for large codebases](https://graft.nanonets.ai)
- [@nanonets/graft on npm](https://www.npmjs.com/package/@nanonets/graft)
