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.
npx agentmods add commands/xonovex/platform/plan-worktree-cleanupgit clone --depth 1 https://github.com/xonovex/platformWhat 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 | $0.00014 | $0.00272 |
| Opus 5 | $0.00007 | $0.00136 |
| Sonnet 5 | $0.00003 | $0.00054 |
| Haiku 4.5 | $0.00001 | $0.00027 |
Grade A, and why
plan-worktree-cleanup 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 2d 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
/xonovex-workflow:plan-worktree-cleanup - Remove Stale and Merged Worktrees
Arguments
/plan-worktree-cleanup [--merged] [--stale] [--prune] [--yes] [--dry-run]
--merged(optional): Remove worktrees whose branch is already merged into its base--stale(optional): Remove worktrees whose branch or directory is gone or abandoned--prune(optional): Rungit worktree pruneto clear stale administrative metadata--yes(optional): Skip the confirmation and remove immediately--dry-run(optional): List what would be removed, change nothing
Delegation
Load the git-guide skill (plugin xonovex-skill-git) and perform its
worktree-cleanup operation with these arguments. The skill is the source of truth
for the procedure, output format, and gotchas. Do not restate them.
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.
- 2d ago First seen · 26 lines · 14 tokens per session scan A f5604010de13
plan-worktree-cleanup is a command published in the GitHub repository xonovex/platform (5 stars, last pushed 2d ago), licensed MIT. It adds 14 tokens to every session and 272 once invoked, about $0.0001 per session on Opus 5. 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-31.
Other commands, from other repositories
domains
Apply the CLI runtime and safety contract before executing a command. Runtime --help is authoritative.
flags
Apply the CLI runtime and safety contract before executing a command. Runtime --help is authoritative.
access
Apply the CLI runtime and safety contract before executing a command. Runtime --help is authoritative.
bmad
Complete BMAD voice integration - assigns unique voices to each BMAD agent AND makes them speak when activated.
deps-age
Analyze dependency freshness and maintenance activity.
deps-check
Check latest versions for Maven/Gradle dependencies.