trailhq/Trail-Code
Turbocharge Claude Code, Cursor, Codex, Gemini & every coding agent: faster, cheaper, with contextual understanding specific to your codebase.
From the publisher
README & documentation
Source previewRead the project’s overview, installation instructions and usage examples. The original README is the source of truth.
Trail-code gives Claude Code, Cursor, Codex and other coding agents a map of your code, and what your team has learned about it. Same model, more tasks solved. On SWE-bench Verified (real GitHub issues, graded by the maintainers' own tests), Claude Sonnet 5 solved 33 of 50 issues with the graft map and 27 of 50 without it, using 23% fewer tokens. Details Cheaper and faster. Across 162 runs of the same agent on the same tasks: 32% lower cost, 42% fewer uncached input tokens, 60% less time, and the same share of correct answers. On PocketBase, 15 real tasks ran 21% cheaper and 14% faster. Details Trail-code has two parts. Both run on your machine. The graft map tells your agent where things are. Learnings tell it why they are that way, and how the work gets done here. That is the whole setup. trail init asks which of…
Read the full README ↗ · Preview checked 2026-10-29T08:30:51.630Z
Inside the original README — Document outline
- The self-learning context layer for coding agents.
- 46% fewer tool calls, 60% less time, and more real issues solved.
- What changes in your agent
- Contents
- How it works
- Quick start
- Coming from graft?
- Part 1: The graft map
- Part 2: Learnings
- Learnings and skills, three places
- One decision, two teammates
- A learning is a file
Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.
Links from the README
References supplied by the publisher, not independently verified endorsements. Check the destination before downloading files or entering credentials.
Documentation belongs to its respective authors. Reported project/model license: MIT. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.
What this repository does
Turbocharge Claude Code, Cursor, Codex, Gemini & every coding agent: faster, cheaper, with contextual understanding specific to your codebase.
Repository facts
- Owner
- trailhq
- Primary language
- TypeScript
- Stars
- 10,999
- Forks
- 976
- Open issues + pull requests
- 277
- License
- MIT
- Archived
- No
- Default branch
- main
- Created
- 2026-07-03T13:44:21.000Z
- Last push
- 2026-10-31T11:24:59.000Z
Topics and intended use
Owner-supplied topics: ai-agents, anthropic, claude-code, cli, code-graph, codex, context-engineering, cursor, developer-tools, gemini, knowledge-graph, llm, mcp, mcp-server, open-source, openai, tree-sitter
Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.
Evaluate before installing
Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.
Source and freshness
Source: GitHub. Metadata observed 2026-11-01T12:19:46.836Z. Daily imports are snapshots, not real-time monitoring.
Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.