Borrowing it
Nothing to install: this file belongs to KbWen/agentic-os. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/KbWen/agentic-os/main/.claude/commands/worktree-first.mdgit clone --depth 1 https://github.com/KbWen/agentic-osWrote 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/kbwen/agentic-os/worktree-first)<a href="https://agentmods.dev/commands/kbwen/agentic-os/worktree-first"><img src="https://agentmods.dev/badge/commands/kbwen/agentic-os/worktree-first/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/kbwen/agentic-os/worktree-first"><img src="https://agentmods.dev/badge/commands/kbwen/agentic-os/worktree-first.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.00099 |
| Opus 5.5 | $0.00000 | $0.00040 |
| Sonnet 5.5 | $0.00000 | $0.00020 |
| Haiku 4.5 | $0.00000 | $0.00010 |
Grade A, and why
worktree-first 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 1mo 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- worktree-first — 100% identical, 0 lines differ
What it actually says
/worktree-first
Execute the canonical workflow: .agent/workflows/worktree-first.md
Required reads before execution
.agentcortex/context/current_state.md— SSoT
Execution
Follow every step in .agent/workflows/worktree-first.md sequentially.
The user's task description is: $ARGUMENTS
- Set up a git worktree-first branching workflow.
- Follow workspace governance rules strictly.
- End response with ⚡ ACX.
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.
- 1mo ago First seen · 17 lines · 0 tokens per session scan A 25f46df1d2a2
worktree-first is a command published in the GitHub repository KbWen/agentic-os (220 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 99 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-08-30.
Other commands, from other repositories
dashboard-git-branches
List git branches for the current dir (current marked ). Runs locally, no LLM.
repo-audit
Audit a codebase (local or remote GitHub/GitLab) against architecture principles and requirements, surfacing drift, risk, and missing decisions.
align
Context-aware alignment. In plan mode it audits the active plan and folds the amendments in. Otherwise it reviews the branch, a named branch, or a pull request against Ion's principles, authors a fix plan, and after approval implements and commits the fixes.
squash
Rebuild unlanded commits on main or a worktree branch into clean conventional commits while preserving the exact final tracked tree.
gh-release
Create a new release for the marketplace or a specific plugin.
resolve-dependabot-prs
Triage open Dependabot PRs, return a quick risk/action summary table, then enter planning mode with an ordered rebase→merge→follow-up→resume resolution plan.