Worktrunk is a command-line tool that simplifies Git worktrees, which are separate working directories for branches in one repository. Developers use it to run multiple coding agents or parallel changes without having their files overlap, with hooks and build-cache features for related local workflows.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/max-sixty/worktrunkWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/max-sixty/worktrunk/agents)<a href="https://agentmods.dev/commands/max-sixty/worktrunk/agents"><img src="https://agentmods.dev/badge/commands/max-sixty/worktrunk/agents/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/max-sixty/worktrunk/agents"><img src="https://agentmods.dev/badge/commands/max-sixty/worktrunk/agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00259 |
| Opus 5.5 | $0.00000 | $0.00104 |
| Sonnet 5.5 | $0.00000 | $0.00052 |
| Haiku 4.5 | $0.00000 | $0.00026 |
Grade A, and why
AGENTS scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Command development
Interactive debugging
Run the current binary in a temporary test repository with a real PTY. Use tmux-cli when available, capture terminal output, and inspect -vv logs when behavior depends on timing or shell state. Avoid treating a piped command as proof of interactive behavior.
Adding a CLI command
Define the Clap interface and help in src/cli/mod.rs, implement the command here, and wire dispatch in src/commands/mod.rs. Update generated command pages with test_docs_are_in_sync and refresh help snapshots with test_help. See docs/AGENTS.md for the sync contract.
Worktree-naming arguments accept a branch, with a path as an alias; route them through Repository::resolve_worktree. Use the established target terminology for merge destinations. Keep --dry-run read-only, and make -v add detail rather than change behavior.
CLI help and command pages
The first Clap doc line is the short command description. The second may add context under the terminal header. after_long_help owns the guide and examples, shared by terminal help and generated site pages. Do not repeat the short description there. Describe what the command does without presuming why the user runs it; keep implementation detail below common workflows. Link to dedicated pages for cross-command concepts.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 16 lines · 0 tokens per session scan A f8da80e05625
AGENTS is a command published in the GitHub repository max-sixty/worktrunk (12,832 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 259 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-24.
AGENTS compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| AGENTSmax-sixty/worktrunk | Command | 13k | today | Apache-2.0 | A | 0 | Claude Code |
| fix-issueyonatangross/orchestkit | Command | 312 | today | MIT | A | 54 | Claude Code, Cursor |
| hotfixfatihkan/badi | Command | 8 | 1mo ago | MIT | A | 0 | Claude Code |
| trace-regressionyeaight7/agent-powerups | Command | 10 | 2mo ago | Apache-2.0 | A | 18 | Claude Code |
| pre-editproffesor-for-testing/agentic-qe | Command | 537 | yesterday | MIT | A | 0 | Claude Code |
| pull-repostravisjneuman/.claude | Command | 115 | yesterday | MIT | A | 13 | Claude Code |
| type-coverageTheBeardedBearSAS/claude-craft | Command | 108 | 13d ago | MIT | A | 8 | Claude Code |