Skip to content
Unofficial community docs. Content pulled on 2026-10-24 from Trail-Code@d205ac3. For the latest, see the official repo.
Trail-code (previously graft), by Trail. A map of a codebase, with one team decision pinned to it: keep retries at 4.

Trail-code

Trail-code gives Claude Code, Cursor, Codex and other coding agents a map of your code, and what your team has learned about it.
Terminal window
npm install -g @trailhq/trail-code && trail init

Tutorials

New to Trail-code? Install it, explore your first graph, and save your first learning. Quick start →

How-To Guides

Solve specific problems: move from graft, wire in your agents, save and check learnings, run in CI, and more. Browse guides →

Reference

CLI commands, MCP tools, agent wiring, environment variables, the learning file format, and supported languages. View reference →

Explanation

Understand how Trail-code works, what learnings are, what stays on your machine, and how it is benchmarked. Learn more →

Last updated: