---
name: "Build Persistent Codebase Context Graphs with Graft"
slug: "build-persistent-codebase-context-graphs-with-graft"
description: "Build and maintain a repository-local context graph so coding agents can orient inside large codebases without rediscovering the same structure every session."
github_stars: 2072
verification: "security_reviewed"
source: "https://github.com/NanoNets/Graft"
author: "NanoNets"
publisher_type: "organization"
category: "Developer Tools"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "NanoNets/Graft"
  github_stars: 2072
  npm_package: "@nanonets/graft"
  npm_weekly_downloads: 2236
---

# Build Persistent Codebase Context Graphs with Graft

Build and maintain a repository-local context graph so coding agents can orient inside large codebases without rediscovering the same structure every session.

## Prerequisites

Node.js, npm or npx, Git, Claude Code/Codex/Cursor/Gemini or an MCP-compatible coding-agent setup

## Installation

Install or set up from the source-backed instructions:

Install with `npm install -g @nanonets/graft` or run `npx @nanonets/graft init`; use `graft init --dry-run` first to inspect planned file changes, then build and wire the graph into the selected coding-agent workflow.

- Source: https://github.com/NanoNets/Graft

## Documentation

- https://graft.nanonets.ai

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/build-persistent-codebase-context-graphs-with-graft/)
