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 richfrem/agent-plugins-skills --skill os-control-worktreegit clone --depth 1 https://github.com/richfrem/agent-plugins-skillsWrote 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/richfrem/agent-plugins-skills/os-control-worktree)<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/os-control-worktree"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/os-control-worktree/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/richfrem/agent-plugins-skills/os-control-worktree"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/os-control-worktree.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.00029 | $0.00618 |
| Opus 5.5 | $0.00012 | $0.00247 |
| Sonnet 5.5 | $0.00006 | $0.00124 |
| Haiku 4.5 | $0.00003 | $0.00062 |
Grade A, and why
os-control-worktree 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Worktree Manager
Selects confirmed native worktree facilities or the governed portable repository worktree fallback, validates placement, and reports cleanup guidance.
Contents
Critical Constraints
- Origin Base Invariant: Before creating any worktree, run
git fetch origin mainand base new branches onorigin/main— never on localmain. - Path Confinement: Portable worktrees must reside strictly below
<repo>/.worktrees/<task-id>. - Governance Equivalence: Native worktree execution is an implementation facility, not a governance bypass. Both native and portable execution require identical approval, verification, and review gates.
- Reconciliation & Concurrency: Never assume pre-worktree dirty state or concurrent branches carry over automatically.
APPROVED -> IN_WORKTREErequires deterministic reconciliation (main_worktree_reconciliation). Rebase onto freshorigin/mainimmediately before merging.
Quick start
Probe the active runtime to determine available worktree facilities:
python3 scripts/capability_probe.py
Workflow
- Probe Runtime: Run
capability_probe.pyand treat returned capability as authoritative. Never infer native support from model name or binary presence. - Select Facility:
- If
native_worktreeis true: follow returned activation guidance and retain task control-plane gates. - If portable fallback: generate execution plan via
scripts/worktree_manager.pyand delegate lifecycle management toissue-worktree-agent.
- If
- Reconcile Base & State: Fetch
origin/mainand verify base commit. If migrating uncommitted edits, run deterministic reconciliation. - Report & Activate: Report selected strategy, exact path, branch, activation guidance, and cleanup commands before mutating repository.
Verification
What ships with it
6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- yesterday First seen · 57 lines · 29 tokens per session scan A dd5700aa7d4e
os-control-worktree is a skill published in the GitHub repository richfrem/agent-plugins-skills (7 stars, last pushed 2d ago), licensed MIT. It adds 29 tokens to every session and 618 once invoked, about $0.0001 per session on Opus 5.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-10-16.
Other skills, from other repositories
release
Cut and publish a full stable NAC release after main, release-PR, and publication CI pass. Use when a maintainer asks for a stable version bump, tag, or GitHub Release. Never use for release candidates; NAC RC releases are automated.
triage
Triage a GitHub repository's open issues by finding exact duplicates, rejecting evidenceably off-base requests, requesting concrete clarification, applying only existing labels, and opening a linked root-cause issue when multiple reports share one underlying invariant failure. Use when a maintainer asks to triage…
factory-handoff
Hand one exact agent-ready ticket to the central Factory runtime over the configured SSH forced-command boundary. Use when an operator asks to hand off an existing ticket or a prose request instead of implementing it in the current session.
gh-find-prs
Survey open Codewhale PRs and triage each for mergeability and disposition against the real landing branch.
release-revoke
Revoke or rollback a pi-agent-dashboard release: delete the GitHub Release, remove the git tag locally and on origin, deprecate the npm version (npm unpublish is blocked after 72h), and optionally revert the release commit. Use when the user says "revoke release", "rollback release", "delete release", "unpublish…
ap-work-group-manager
Divide one accepted work group only when at least two useful workers can have non-overlapping ownership.