worktree-isolation

worktree-isolation is a skill for Claude Code, Codex from Insajin/autopus-adk. It costs 15 tokens per session (1,716 once invoked), scanned A, original, MIT.

A worktree-isolation guide for running independent coding-agent tasks in separate Git worktrees. A worktree is another working copy of a Git repository, allowing parallel changes without collisions.

In plain words
What is it for?
Use it when dispatching parallel tasks that write to separate parts of a Git project.
Why use it?
It defines when isolation is safe and prevents agents from interfering with each other's files or branches.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when dispatching parallel tasks that write to separate parts of a Git project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/insajin/autopus-adk/worktree-isolation
Install

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.

Any agent
npx skills add Insajin/autopus-adk --skill worktree-isolation
Clone the repo
git clone --depth 1 https://github.com/Insajin/autopus-adk

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for worktree-isolation

README.md
[![agentmods](https://agentmods.dev/badge/skills/insajin/autopus-adk/worktree-isolation.svg)](https://agentmods.dev/skills/insajin/autopus-adk/worktree-isolation)
Your own site
<a href="https://agentmods.dev/skills/insajin/autopus-adk/worktree-isolation"><img src="https://agentmods.dev/badge/skills/insajin/autopus-adk/worktree-isolation.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,716 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.01716
Opus 5 $0.00008 $0.00858
Sonnet 5 $0.00003 $0.00343
Haiku 4.5 $0.00002 $0.00172

Measured 4d ago against content hash 5e00e9247daa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

worktree-isolation 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 4d 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.

.omp/skills/worktree-isolation/SKILL.md · 143 lines

How it starts

The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OMP Native Task Isolation

This skill defines isolation policy for Autopus executor fan-out on OMP. The native task tool owns workspace materialization, patch/branch integration, and cleanup.

Activation

Use per-item isolation only when all conditions hold:

  • the current dynamic task schema exposes isolated;
  • OMP settings enable a non-none isolation mode;
  • the project is a git repository;
  • the item writes files;
  • ownership is disjoint from every concurrent item.

Do not request isolation for --solo, read-only work, overlapping ownership, shared migration numbering, or an environment where the field is absent. Missing required isolation is a blocker, not permission to imitate it with shell commands.

Native Dispatch Contract

Inspect the current dynamic schema before each wave. When it exposes batch mode, dispatch independent isolated work in one batch with top-level i and shared context. Each item uses a unique stable name, a discovered custom role when needed, a complete assignment, the discovered isolation field enabled, the strict five-field receipt schema, and schemaMode: strict. When batch mode is absent, dispatch the corresponding flat calls and reference one shared local:// context.

The parent must check dynamic availability before adding isolated or effort. isolated does not exist when task.isolation.mode = none, and effort does not exist when its setting is off. Omit either unsupported field rather than sending it from a static example.

Ownership Preflight

Before fan-out:

  1. normalize every owned and forbidden path to a project-relative path;
  2. reject absolute paths, traversal, symlinks, nested ownership, and ambiguous globs;
  3. detect exact overlap and directory-prefix containment;
  4. serialize tasks that share a generated artifact, migration directory, package manifest, lockfile, schema registry, or other mutable authority;
  5. put cross-task interfaces in top-level context before dispatch.

A maximum of five Autopus executor items may be active in one wave. Queue overflow by task id. This policy is stricter than OMP's session-wide semaphore and prevents excessive integration churn.

Read the full file on GitHub · 143 lines

Changes

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.

  1. 4d ago First seen · 143 lines · 15 tokens per session scan A 5e00e9247daa

Subscribe to this mod's changes

worktree-isolation is a skill published in the GitHub repository Insajin/autopus-adk (110 stars, last pushed today), licensed MIT. It adds 15 tokens to every session and 1,716 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-09-03.

Related

Other skills, from other repositories

github-release-management

Comprehensive GitHub release orchestration with AI swarm coordination for automated versioning, testing, deployment, and rollback management.

shyftlabs/continuum · 27 tokens

deploy-local

End-to-end local deployment loop for Gitea-hosted projects. Use when the user wants to commit on dev, push to remote, monitor the golden CI/build/deploy workflow, validate prod on the configured prod host, and fix lint/test/pipeline failures until deployment is healthy.

saajunaid/caddis-plugin · 60 tokens

github-issues

Create well-structured GitHub issues with proper labels, descriptions, and acceptance criteria. Use when creating bug reports, feature requests, or tracking tasks.

saajunaid/caddis-plugin · 34 tokens

git-commit

Create well-structured conventional commit messages following Conventional Commits standard. Use when committing changes, preparing PRs, or generating changelogs.

saajunaid/caddis-plugin · 32 tokens

using-git-worktrees

Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification.

saajunaid/caddis-plugin · 35 tokens

changelog-generator

Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.

saajunaid/caddis-plugin · 48 tokens