/agent-traffic-control:workflow-agent-unreachable-mid-flight-check-output-not-brieffrom agent-traffic-control
An agent's brief is frozen at the moment you dispatch it, and whether you can correct it later is decided by WHICH DISPATCH MECHANISM you used, not by how urgent the correction is. A subagent spawned directly can be sent a message: it reads the correction and keeps everything it has already worked out. An agent running inside a workflow has no address — correcting it means stopping the workflow, editing its script, and resuming by run id, with completed phases replaying from cache. Use when: (1) you are choosing between a workflow and a plain subagent for a task whose premise could move under it — a review verdict, a rule the user is still deciding, an issue that might be claimed; (2) a rule, standard or number changed after dispatch and you need to know who still holds the old one; (3) you find yourself routing a correction to a running lane through a shared task list, a file on disk or another agent because there is no channel to it; (4) an agent's report is fine on its own terms but was written against a premise that has since been overturned. Two rules: put a task that may need mid-flight correction in a plain subagent rather than a workflow, and for anything already dispatched, catch the stale rule ON THE WAY OUT — at output review — because inbound amendment reaches nobody who has already started.
Trending skills
7-day visitors to each skill page
Ships in agent-traffic-control. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Two facts that are easy to learn separately and expensive to learn together:
A subagent you spawned directly has an address. You can send it a message; it reads the correction and carries on with everything it has already worked out — the files it has read, the design it settled on, the half-written diff.
An agent running as a phase inside a workflow has no address. To change what it was
told you have to stop the workflow, edit the script, and resume by run id
(resumeFromRunId in the harness this was learned on). Phases that already completed
replay from cache, so the run is not lost — but the agent's own accumulated context
is, and every call signature downstream of your edit re-runs live.
So the moment you pick a dispatch mechanism, you have already decided whether that task can be corrected. That decision is usually made on the wrong grounds: workflows get chosen because the task has phases, not because the task's premise is stable.
The observed cost: a release lane accumulated eleven blockers that needed to reach a sibling lane running as a workflow. There was no channel to it. Every one had to be routed through the shared task list and picked up on the lane's next natural read — slower than a message, and with no confirmation that the lane had read any of them.
Reach for this at either of two moments.
Before dispatch, when any of these hold:
After dispatch, when any of these hold:
Not for: an agent that has already died or stalled. Recovering one of those is
parallel-impl-agent-dies-mid-stream-verify-working-tree (its final message may be
the only copy of its product) and credit-stall-mid-orchestration-revive-collision
(suspended agents that revive and race your replacements). This skill is about an
agent that is alive, healthy, and wrong.
If the premise of this task moves in the next hour, do I need this agent to know?
| Answer | Dispatch as | Because |
|---|---|---|
| Yes | a plain subagent | it has an address; a message corrects it and it keeps its context |
| No | a workflow phase is fine | you get the phase structure and cache replay, and give up the ability to talk to it |
Two things this question is not. It is not "is the task complicated" — a long, mechanical, well-specified task is a fine workflow phase. And it is not "might the agent fail" — failure is recoverable either way; being quietly wrong for an hour is the thing a workflow phase makes expensive.
Inbound amendment is only ever partial. A correction appended to a shared brief reaches the agents that have not started yet and nobody else — and you usually cannot tell which is which. So the reliable place to catch a stale rule is the output review, where every agent's product passes through one gate you control.
Keep a short, dated list of rules that changed during the run, and check each returning agent's product against it:
CHANGED MID-RUN — check every product that lands after this line
<time> <rule> corrected by review: <old value> → <new value>, on <which table/file>
<time> the naming rule for the ledger columns is snake_case, not camelCase
Then, for each returning product, ask what the agent must have believed rather than what it says. The tell is that the report will not mention the old rule at all — it will just have applied it.
A changed rule is easy to sweep for when it survives as text. It is very hard when it gets compiled into a structure: a schema field, a column type, a cron expression, a retry count, an enum. The value is right there and no text search for the old wording finds it, because the old wording never made it into the artefact.
Measured this run: a reviewer corrected a set of data-retention periods mid-run. The authoring agent's brief still quoted the superseded wording, and it was on its way to writing those periods into a schema — where a grep for the old phrasing would have returned nothing and the wrong values would have looked like a deliberate design choice. It was caught at output review, not by any inbound amendment.
So the output check has to be value-level, not text-level:
# not this — the old wording is not in the artefact
grep -rn "retain for 30 days" schema/
# this — the VALUES the rule produces, read back from what shipped
grep -rn "retention_days\|ttl\|expires_after" schema/ | sort -u
Before dispatch:
After a mid-run rule change:
The unreachable lane. A release lane finished a review pass and produced eleven blocking findings that belonged to a sibling lane. The sibling was a workflow. There was no way to message it. Every finding went onto the shared task list instead and waited to be read — which worked, and cost a round trip per finding plus the uncertainty of not knowing whether any had been picked up. Had that lane been an ordinary subagent, it would have been one message, and the lane would have kept its context while acting on it.
The frozen brief. In the same run a reviewer corrected the data-retention periods. An authoring agent had been dispatched before that correction and its brief still quoted the old wording verbatim. Nothing about the agent was wrong — it was doing exactly what it had been told, competently, and its report would have read as clean. The correction was caught by reviewing its output against the changed-rules list. Had it landed, the superseded periods would have been sitting inside a schema definition, where no search for the old wording could find them.
overnight-multi-issue-implementation (published in
wan-huiyan/overnight-workflows,
not in this plugin) under "Amend a running orchestration through a file on disk,
not the script". This skill is the half that section leaves open: the choice made
at dispatch time, and what to do about the agents an addendum can never reach.handoff-prompt-stale-user-hint-newer-state
is the case where the premise moved before you start and the user tells you so —
pause and ask how scope should shift. Here the premise moves after dispatch and
nobody tells the agent at all.parallel-impl-agent-dies-mid-stream-verify-working-tree
— recovering an agent that died rather than one that is alive and wrong; covers the
case where the dead agent's product was its final messagecredit-stall-mid-orchestration-revive-collision
— stalled agents are suspended, not dead, and revive to race the replacements you
launchedhandoff-prompt-stale-user-hint-newer-state
— the pre-execution version of the same root causeinherited-scope-doc-names-may-not-exist
— verify the names a prior session's scope doc cites before a long dispatch, for the
same reason: a brief is believed for the whole runovernight-multi-issue-implementation — published in
wan-huiyan/overnight-workflows,
not part of this plugin; its "Amend a running orchestration through a file on disk"
section is the inbound-amendment halfWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub wan-huiyan/agent-traffic-control --plugin agent-traffic-control118 skills in this plugin
/agent-refusal-with-evidence-beats-literal-complianceA dispatched agent that does exactly what you asked can ship a defect you would
have stopped yourself, because it can see something at the worksite that you
could not see when you wrote the brief. Use when: (1) you are writing a brief
that prescribes a specific fix, threshold, wording or value rather than the
outcome you want; (2) an agent reports that it did not do what you asked and
you are deciding whether that is insubordination or judgement; (3) an agent
asserts "this is fine" or "not needed" with no measurement behind it; (4) you
are reviewing overnight output and want to know which decisions were checked
and which were assumed. Two halves, and both are needed: give the agent
explicit permission to satisfy the INTENT of an instruction while refusing its
letter, and REQUIRE the evidence with the refusal — what it built or measured,
what that showed, what it did instead. Evidence is the whole difference between
a refusal you can bank and one you have to re-litigate. Four agents correctly
declined an instruction in a single run; one built the suggested fix, measured
that it turned a silent safe refusal into a permanently red pipeline, and
reverted it unpushed.
/auto-merge-rearms-while-agent-live-kill-then-disarm-verifyDisarming auto-merge on a PR whose agent is still running does not hold it —
the agent re-arms within minutes and the PR merges, because arming is a step in
the agent's brief and disarming is not an instruction to the agent at all. Use
when: (1) you want to STOP a pull request from merging that an agent opened and
armed, for review, for a rethink, or because it is landing into a queue you are
trying to drain; (2) a PR you disarmed merged anyway; (3) you are telling agents
which PRs are on hold and want the hold to be enforced rather than announced;
(4) you are about to run `gh pr merge --disable-auto` and have not decided what
to do about the agent. The order is KILL THE AGENT FIRST, THEN DISARM, THEN
VERIFY the disarm by reading `autoMergeRequest` back — a disarm you did not read
back is not a hold. The stronger form needs no ordering at all: convert the PR
to a draft with `gh pr ready --undo`. A draft cannot merge whatever any agent
does to it, so the hold survives an agent you missed, an agent that restarts,
and an agent you did not know about.
/batch-member-cites-a-path-only-a-non-member-addsYou wrote something correct that the default reader cannot reach: a batch member citing a
path only a NON-member adds, or a rule, ruling or ledger sitting on an unlanded branch.
/batch-merge-subject-is-not-evidence-a-member-landedYou are about to close, delete the branch of, or mark as landed a pull
request because a batch, roll-up or merge-train commit on the target branch
names it in the subject line, and because the member's own commits all
predate that merge by wall clock. Neither of those is evidence. A batch
branch is assembled at some moment BEFORE it merges, so anything the member
pushed after assembly is outside it, and the subject records INTENT at
assembly time rather than CONTENT at merge time. Use before closing a
member, when an ancestry check against a squashed batch says no, or when a
member's branch still shows commits ahead of the target. Compare file
content against the target branch instead, expecting exactly one legitimate
difference: the shared aggregate file every member appends to.
/check-a-stale-branch-is-not-undoing-newer-main-workA branch built on an out-of-date main is about to merge, or has merged, and may undo work
that landed since. Use when a green, conflict-free PR deletes files you never touched,
newer values or a whole redesign vanish after a sibling PR merged, rows of a shared ledger
(tracker, registry, CHANGELOG) disappear or revert, or when `git diff main...HEAD` or a
reviewer says your small PR touches dozens of files you did not change.
/ci-leg-skipping-moves-minutes-it-does-not-remove-themYou are about to propose, price or approve a CI cost saving that works by
making a job or matrix leg SKIP on pull requests — a path filter, a safe
list, a changed-files gate, an exemption list. Check first whether the
pipeline runs a complement or backstop on merge, on push, or nightly:
many do, and then the legs a pull request skipped are exactly the legs some
later run executes, so a branch that goes green once and merges bills the
same total either way and the wall clock does not move at all. Use when
pricing a filter change, when a percentage saving is quoted with no basis,
or when choosing between filtering legs and batching pull requests. The
question that separates money from bookkeeping is whether the change
removes RUNS or merely moves LEGS.