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 skills add fmflurry/harness-manifesto --skill worktree-destruction-safetygit clone --depth 1 https://github.com/fmflurry/harness-manifestoWrote 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/skills/fmflurry/harness-manifesto/worktree-destruction-safety)<a href="https://agentmods.dev/skills/fmflurry/harness-manifesto/worktree-destruction-safety"><img src="https://agentmods.dev/badge/skills/fmflurry/harness-manifesto/worktree-destruction-safety/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/skills/fmflurry/harness-manifesto/worktree-destruction-safety"><img src="https://agentmods.dev/badge/skills/fmflurry/harness-manifesto/worktree-destruction-safety.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.00039 | $0.02931 |
| Opus 5.5 | $0.00016 | $0.01172 |
| Sonnet 5.5 | $0.00008 | $0.00586 |
| Haiku 4.5 | $0.00004 | $0.00293 |
Grade C, and why
worktree-destruction-safety scanned grade C with 1 finding 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 15d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
A worktree directory is the **only copy** of any uncommitted work inside it. Removing one is a destructive data operation, not bookkeeping — treat it with the same caution as `rm -rf`, never like `git branch -d`. How it starts
The opening of the file, as written. The whole thing — 153 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Worktree Destruction Safety (mandatory)
why-not-tooled: whether a checkout is safe to destroy depends on live git state, not a static analyzer.
A worktree directory is the only copy of any uncommitted work inside it. Removing one is a destructive data operation, not bookkeeping — treat it with the same caution as rm -rf, never like git branch -d.
Boundary with worktree-switching: that rule (where configured) governs entering, creating, and switching between worktrees. This rule governs their destruction — git worktree remove, git worktree prune, git worktree move, orca worktree rm, or any raw filesystem delete of a worktree directory. Read both; they do not overlap.
Why this exists
Two incidents shaped this rule. A raw git worktree remove --force + git worktree prune run outside Orca's pipeline destroyed a worktree with no trash step, so the content was not recoverable. Later, orca worktree rm returned before the removal finished ("removing": true). Orca always runs git worktree remove --force internally, whatever CLI flags are passed. During that background removal, the repo's main checkout received reset --hard and pull, which destroyed an uncommitted tracked edit and an untracked file. The actor is unknown. The old checks inspected only the worktree being removed, not the other checkouts of the repo.
Orca-managed detection (read-only, portable)
A repo is Orca-managed when either is true:
- it appears in
orca repo list - the target path is enumerated by
orca worktree list --json
If the orca CLI is not installed or not on PATH, the Orca routing below does not apply — say so explicitly. The mandatory pre-removal checks further down apply regardless of Orca's presence; they are plain git and are always in scope.
Mandatory: route worktree lifecycle through Orca when Orca-managed
Inside an Orca-managed repo, creation goes through orca worktree create .... Removal goes through agent-harness worktree-rm (below), which routes to Orca itself.
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.
- 15d ago First seen · 153 lines · 39 tokens per session scan C e175de999a59
worktree-destruction-safety is a skill published in the GitHub repository fmflurry/harness-manifesto (173 stars, last pushed 11d ago), licensed MIT. It adds 39 tokens to every session and 2,931 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-15.
worktree-destruction-safety compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| worktree-destruction-safetyfmflurry/harness-manifesto | Skill | 173 | 11d ago | MIT | C | 39 | Claude Code |
| merge-batchdiegosouzapw/OmniRoute | Skill | 91k | yesterday | MIT | A | 46 | Claude Code |
| prowler-commitprowler-cloud/prowler | Skill | 15k | 3d ago | Apache-2.0 | A | 44 | Claude Code, Codex |
| gh-auth-isolationgithub/gh-aw | Skill | 5.7k | today | MIT | A | 20 | Claude Code, Codex |
| comet-githubrpamis/comet | Skill | 3.3k | yesterday | MIT | A | 72 | Claude Code, Codex |
| github-skillzeenie-ai/OpenCompany | Skill | 1.1k | 3d ago | MIT | A | 51 | Claude Code |
| codex-autoresearchleo-lilinxiao/codex-autoresearch | Skill | 3.3k | 11d ago | MIT | A | 39 | Codex |