# 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.

- Skill: `agentskillexchange/build-persistent-codebase-context-graphs-with-graft` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/build-persistent-codebase-context-graphs-with-graft`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/build-persistent-codebase-context-graphs-with-graft/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/build-persistent-codebase-context-graphs-with-graft

---


# 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/)

