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 open-octo/octo-agent --skill worktree-isolategit clone --depth 1 https://github.com/open-octo/octo-agentWrote 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/open-octo/octo-agent/worktree-isolate)<a href="https://agentmods.dev/skills/open-octo/octo-agent/worktree-isolate"><img src="https://agentmods.dev/badge/skills/open-octo/octo-agent/worktree-isolate.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
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.00091 | $0.00851 |
| Opus 5 | $0.00046 | $0.00426 |
| Sonnet 5 | $0.00018 | $0.00170 |
| Haiku 4.5 | $0.00009 | $0.00085 |
Grade A, and why
worktree-isolate 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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 49 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Work in an isolated git worktree
Create a throwaway git worktree on a new branch, do all the work there, verify, then either merge it back or remove it. octo has no session-level working directory — so the one rule that makes this work is: address the worktree by absolute path in every tool call.
⚠️ The absolute-path rule (octo-specific — read first)
octo's terminal runs each command in a fresh shell in the process's launch directory; a cd does not carry to the next terminal call, and read_file / edit_file / write_file resolve relative paths against that same fixed directory. There is no "the session is now inside the worktree" mode.
Therefore, after creating the worktree:
- Shell: use
git -C "$WT" …and absolute paths, or chain everything inside ONE command:cd "$WT" && go build ./... && go test ./.... Never splitcd "$WT"from the work into separateterminalcalls. - Files: always pass the worktree's absolute path to read_file / edit_file / write_file (e.g.
$WT/internal/foo.go), never a bare relative path.
Resolve $WT to a real absolute path once and reuse it verbatim.
Steps
-
Locate the repo and base.
terminal: git rev-parse --show-toplevel→ this is$REPO(absolute).- Note the current branch (
git -C "$REPO" rev-parse --abbrev-ref HEAD); the new branch will fork from current HEAD unless the user says otherwise.
-
Pick a name and path. Slugify the task into
<slug>. Use:- worktree dir:
$WT = $REPO/.worktrees/<slug> - branch:
wt/<slug> - Make sure
.worktrees/is ignored: ifgit -C "$REPO" check-ignore .worktreesprints nothing, append/.worktrees/to$REPO/.gitignorefirst.
- worktree dir:
-
Create the worktree.
git -C "$REPO" worktree add "$WT" -b "wt/<slug>"If the branch already exists, drop
-band pass the branch name as a third arg, or pick a fresh slug. -
Do the task in
$WT— following the absolute-path rule above. Build and run the project's tests inside$WTto verify (e.g.cd "$WT" && <project test command>), not in the main checkout.
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.
- 8d ago First seen · 49 lines · 91 tokens per session scan A ab77daf1981a
worktree-isolate is a skill published in the GitHub repository open-octo/octo-agent (96 stars, last pushed today), licensed MIT. It adds 91 tokens to every session and 851 once invoked, about $0.0005 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-30.
Other skills, from other repositories
pypi-release
This skill should be used when releasing tunacode-cli to PyPI. It keeps the existing local release checks, then hands the actual PyPI upload to a GitHub Actions workflow that uses the repository's PYPIAPITOKEN secret.
github-issues
Create, triage, label, assign GitHub issues via gh or REST.
github-pr-workflow
GitHub PR lifecycle: branch, commit, open, CI, merge.
github-repo-management
Clone/create/fork repos; manage remotes, releases.
github-auth
GitHub auth setup: HTTPS tokens, SSH keys, gh CLI login.
batch
Research and plan a large-scale change, then execute it in parallel across 5–30 isolated worktree agents that each open a PR.