Graft

•
9.9k
•

Enhance coding agents like Claude Code, Cursor, and Gemini with faster, cheaper, and codebase-specific contextual understanding.

Graft is an open-source context layer designed to significantly improve the performance, cost-efficiency, and correctness of coding agents such as Claude Code, Cursor, Codex, and Gemini. It addresses the fundamental problem of agents repeatedly re-exploring codebases by building a persistent, human-readable knowledge graph of your repository. This graph consists of linked markdown files, each explaining a system, API, or concept in plain English, providing agents with deep contextual understanding without re-indexing. Graft integrates seamlessly into your workflow, operates as a local, regenerable cache, and automatically refreshes against the working tree, ensuring agents always have the most current code context. It supports a wide range of LLM providers and languages, demonstrated to be up to 4x cheaper, 3x faster, and resolve 12 points more SWE-bench instances compared to cold agent runs.

Características Principales

01Generates human-readable, linked knowledge graphs for codebases.
02Provides automated, context-aware information to coding agents (Claude, Cursor, Gemini).
03Supports 22 programming languages with varying levels of fidelity and optional LSP integration.
04Offers CLI tools for graph building, search, orientation, and visualization.
05Operates as a local, regenerable cache with automatic freshness on code changes.
064,853 GitHub stars

Casos de Uso

01Accelerating AI coding agent performance and reducing operational costs.
02Enhancing contextual understanding for large codebase interactions by LLMs.
03Improving the correctness and reliability of AI-assisted code modifications and bug fixes.