Tool profile
Trail Code
trailhq.com
shared context layer for coding agents
What it does
The official page trailhq.com/trail-code says it maps your repository and keeps what Claude Code, Codex and Cursor learn, stored in the repo and synced with git; it also lists Kiro and other agents. Setup on the page is npm install -g @trailhq/trail-code, then trail init in the repo and a restart of the agent. Learnings are written as short markdown files under .trail/ and can be committed like other code. The site also describes a dashboard of what changed across an organization in the last 24 hours, and reports a comparison over 162 runs: about 60% less agent time per task, 32% lower token cost per task, and 33 of 50 real bug fixes solved versus 27 without the map. The pages reviewed here do not state a single hosted price; the license file and trailhq.com are the sources of truth.
- Install the CLI and let Claude Code, Codex, Cursor or another agent keep learnings in your repository
- Commit the markdown files Trail Code writes under .trail/ so teammates’ agents can pick up the same decisions
- Review the open-source project at github.com/trailhq/Trail-Code (MIT) and the product page at trailhq.com/trail-code
Categories
Frequently asked questions
- What is Trail Code?
- Trail Code (formerly Graft) is an open-source context layer for coding agents. The official page trailhq.com/trail-code says it maps your repository and keeps what Claude Code, Codex and Cursor learn, stored in the repo and synced with git. The GitHub repository trailhq/Trail-Code is MIT-licensed and had about 11,600 stars when reviewed on 2026-12-06.
- How do you install it?
- The product page shows installing the CLI with npm install -g @trailhq/trail-code, then running trail init in a repository and restarting the agent. Confirm the current commands in the documentation before you rely on a particular flag.
- Is it free?
- The GitHub repository is MIT-licensed. The site also describes a dashboard of what changed across an organization in the last 24 hours. The pages reviewed here do not state a single hosted price; check the license file and trailhq.com for the commercial offering.
Explore
More in AI Code Assistant
Open-source workspace to run and manage many coding agents at once using your own subscriptions.
A ruleset/skill that makes AI coding agents write the least code that works.
Open-source desktop workspace that runs Claude Code, Codex, Kimi and GLM side by side and cuts token spend.
Shared MCP memory for coding agents that marks notes stale when the underlying code changes.
Open-source control plane for Claude Code, Codex, Cursor and other coding agents you already pay for.
Every's open-source plugin of skills and agents for a plan, work, review and compound engineering loop.