Wire in other agents
Trail-code wires Cursor, Codex and other AGENTS.md readers, Gemini CLI, GitHub Copilot, Windsurf, Kiro, Antigravity, Grok, Hermes and AdaL, and serves any agent that speaks MCP. One command does it:
npm install -g @trailhq/trail-code && trail init# detects your agents and writes each one's native instruction file;# Claude Code additionally gets the live statusline + hooksPick agents interactively
Section titled “Pick agents interactively”On a terminal, init shows you every agent it knows about, flags the ones it detected (via their config directories), lists the exact files each would write, and wires only the ones you select. Claude Code is pre-selected; nothing else is.
Re-running only updates Trail-code’s own section (or replaces the owned file) and never touches the rest of your content.
Wire specific agents without a prompt
Section titled “Wire specific agents without a prompt”trail init --agents cursor kiroTo list the known agent ids:
trail init --list-agentsOther options:
trail init --yeswires every detected agent.trail init --all-agentswires every known agent, detected or not.trail init --dry-runprints the agent wiringinitwould write, then exits without writing.
Run init in CI or a script
Section titled “Run init in CI or a script”With no TTY to prompt on (CI, a Dockerfile, a piped shell), init writes nothing and prints the command to run instead. Pass --agents <ids> or --yes to make a scripted run explicit.
Keep writes inside the repo
Section titled “Keep writes inside the repo”Some agents also get user-level files, so the wiring follows you into worktrees and folders the repo’s files don’t reach. These apply to every repo you open with that agent. The picker labels them machine-wide, and --dry-run lists them in their own section. To skip them all while still wiring the repo’s own files:
trail init --no-global