pre-dispatch-agent-isolation-parameter-not-prompt

pre-dispatch-agent-isolation-parameter-not-prompt is a skill for Claude Code from wan-huiyan/agent-traffic-control. It costs 75 tokens per session (2,477 once invoked), scanned A, original, MIT.

A checklist for ensuring parallel coding agents actually run in separate Git worktrees. Isolation is configured in the agent-dispatch request, not created by describing it in the prompt.

In plain words
What is it for?
Use it before dispatching agents that edit or commit code to verify the isolation setting and confirm where each agent’s changes landed.
Why use it?
It prevents multiple agents from changing the same checkout, which can mix branches, commits, files, and test results without producing an obvious error.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; mentions Claude Code.

Part of the agent-traffic-control plugin — 105 skills shipped together

Good fit Use it before dispatching agents that edit or commit code to verify the isolation setting and confirm where each agent’s changes landed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wan-huiyan/agent-traffic-control/pre-dispatch-agent-isolation-parameter-not-prompt
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 wan-huiyan/agent-traffic-control --skill pre-dispatch-agent-isolation-parameter-not-prompt
Clone the repo
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control

Made for: Claude Code.

Or install agent-traffic-control, the plugin that ships this one along with the rest of its 105 skills.

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 pre-dispatch-agent-isolation-parameter-not-prompt

README.md
[![agentmods](https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/pre-dispatch-agent-isolation-parameter-not-prompt/github.svg)](https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/pre-dispatch-agent-isolation-parameter-not-prompt)
Your own site
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/pre-dispatch-agent-isolation-parameter-not-prompt"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/pre-dispatch-agent-isolation-parameter-not-prompt/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.

agentmods 80×15 button for pre-dispatch-agent-isolation-parameter-not-prompt

Your own site · 80×15
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/pre-dispatch-agent-isolation-parameter-not-prompt"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/pre-dispatch-agent-isolation-parameter-not-prompt.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,477 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.
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.00075 $0.02477
Opus 5 $0.00037 $0.01239
Sonnet 5 $0.00015 $0.00495
Haiku 4.5 $0.00007 $0.00248

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

Security

Grade A, and why

pre-dispatch-agent-isolation-parameter-not-prompt 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 5d 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.

plugins/agent-traffic-control/skills/pre-dispatch-agent-isolation-parameter-not-prompt/SKILL.md · 177 lines

How it starts

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

Agent isolation is a parameter, not a sentence in the prompt

Problem

You are about to fan out several agents that will each commit to their own branch. Your prompt template opens with "You are running in an isolated git worktree — changes you make here do NOT affect other agents", so you dispatch and move on.

That sentence creates nothing. The worktree is created by the dispatch tool's isolation: "worktree" parameter. With the parameter unset, every agent runs in the same checkout — and every one of them reports back as though it were isolated, because you told it it was.

Nothing errors. Git does not complain that four agents share a working tree; that is a perfectly ordinary thing for a directory to be. The damage arrives as ordinary-looking results: a commit on the wrong branch, a branch that changes under a session mid-run, a test total that is off by one.

Why this specific mistake keeps happening: the isolation is a field in a tool call, and a field is very easy to describe in English and forget to set. The prompt is the part you write by hand and re-read; the parameters are the part you fill in once from a template. So the belief that the agents are isolated is strongest precisely when it is false.

Context / Trigger Conditions

Any one of these is enough — this is a cheap check, not a gated procedure:

  • You are about to issue 2 or more Agent / Workflow / Task calls in one batch, and the agents will run git commit, git checkout, git rebase or git push.
  • Your dispatch prompt asserts isolation ("your own worktree", "changes here don't affect others") — that phrasing is the tell that you are relying on prose.
  • You are reusing a prompt template or a plan document that was written for an earlier fan-out, where the parameters are not part of the text you copied.
  • A single agent is being sent into a directory another session is live in. One agent is enough; "parallel" is not a precondition.

Not for: read-only agents that never write to the repo (a review pass, a grep audit). Those have a different hazard — reading the wrong tree — which subagent-read-stale-worktree-needs-head-pin covers.

Read the full file on GitHub · 177 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. 5d ago Changed · +7 lines b832a632677e
  2. 10d ago First seen · 170 lines · 75 tokens per session scan A f7936a9d5ba7

Subscribe to this mod's changes

pre-dispatch-agent-isolation-parameter-not-prompt is a skill published in the GitHub repository wan-huiyan/agent-traffic-control (3 stars, last pushed 5d ago), licensed MIT. It adds 75 tokens to every session and 2,477 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

cloudflare-workers-ci-cd

Complete CI/CD guide for Cloudflare Workers using GitHub Actions and GitLab CI. Use for automated testing, deployment pipelines, preview environments, secrets management, or encountering deployment failures, workflow errors, environment configuration issues.

secondsky/claude-skills · 50 tokens

claude-code-bash-patterns

Claude Code Bash tool patterns with hooks, automation, git workflows. Use for PreToolUse hooks, command chaining, CLI orchestration, custom commands, or encountering bash permissions, command failures, security guards, hook configurations.

secondsky/claude-skills · 52 tokens

bump-sdk-version

Bump the FutureSearch SDK version across all files. Use when releasing a new SDK version, updating version numbers, or the user says bump version, release, version bump.

futuresearch/futuresearch-python · 40 tokens

pr-check

PR review compliance: fetch review comments from an open PR, categorize as resolved/unresolved/dismissed, critically evaluate fixable items, implement approved fixes, and reply inline. Pass --unattended to halt on human-judgment items (emitted as Pending-Human) instead of prompting via AskUserQuestion.

rube-de/cc-skills · 67 tokens

babysit

PR babysitter: monitors CI status, auto-rebases when behind, auto-fixes CI where possible, delegates review comment handling to dlc:pr-check, and re-requests review after fixes. Designed for /loop usage with Remote Control.

rube-de/cc-skills · 53 tokens

git-ops

Git hygiene: clean up merged branches, prune stale remotes, and verify repository state.

rube-de/cc-skills · 22 tokens