trailhq/Graft

Turbocharge Claude Code, Cursor, Codex, Gemini & every coding agent: faster, cheaper, with contextual understanding specific to your codebase.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 20 minutes ago
Added to GitGenius on September 9th, 2026
Created on July 3rd, 2026
Open Issues & Pull Requests: 127 (+0)
GitHub issues: Enabled
Number of forks: 664
Total Stargazers: 7,274 (+2)
Total Subscribers: 28 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.4 days
Mean response time: 4.5 days
90th percentile: 9.6 days
Tracked items: 75

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Almost all tracked open issues have seen activity in the last three months. Only 12% of issues opened in the past year have been closed. Three people close 96% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 49
New in 7 days: 22
Closed in 7 days: 1
Avg open age: 11 days
Stale 30+ days: 3
Stale 90+ days: 0

Recent activity

Opened in 7 days: 22
Closed in 7 days: 1
Comments in 7 days: 15
Events in 7 days: 23

Top labels

No label distribution available yet.

Detailed Description

Graft is a context-engineering tool that optimizes prompts sent to coding agents like Claude Code, Cursor, Codex, and Gemini by building a code-graph representation of your codebase.

The tool solves the problem of coding agents working with incomplete or inefficient context, which leads to wasted tokens, slower responses, and lower correctness. Graft builds a knowledge-graph of your codebase using tree-sitter parsing and serves it as an MCP server, allowing agents to query relevant code context on demand rather than including everything upfront. This targeted context delivery reduces token consumption and tool-call overhead while improving the agent's understanding of your specific codebase structure.

Teams using multiple coding agents across their workflow should consider Graft if they want to reduce API costs and latency without sacrificing code quality. It works as a CLI tool and integrates with existing agent workflows through the MCP protocol, making it suitable for projects where agents are already in use. The tool is language-agnostic through tree-sitter support and learns from repeated tasks, building a skill file that improves over time as your team works.

The project maintains active development with regular updates to support new coding agents and LLM providers. The codebase is written in strict TypeScript and includes comprehensive telemetry that users can opt out of. The tool is distributed via npm and has established community channels for support and feedback.