/agent-traffic-control:multi-agent-skill-silent-phase-compressionfrom agent-traffic-control
Diagnose and fix silent compression of MANDATORY phases in multi-agent orchestrator skills (review panels, debate workflows, multi-reviewer pipelines). Use when: (1) a skill spec lists 10+ phases including parallel reviewer dispatch but the actual run "compresses Phase 4 (reflection) / Phase 5 (debate) / Phase 7 (blind finals) into the judge's integration", (2) a multi-reviewer panel produces a report that looks identical to a full run but actually skipped reflection/debate/blind-final rounds, (3) a re-run of the missing phases surfaces net-new findings (especially new P0/P1 items the compressed run missed), (4) the orchestrator's chat history shows reviewer outputs returned verbatim as Agent tool results (not via Write→path pattern), (5) you're authoring a new multi-agent skill and want to prevent this failure mode. Counter-intuitive root cause: subagent dispatch IS parallel and each subagent has its OWN context window, but their full outputs land verbatim in the ORCHESTRATOR's chat history, accumulating to 300-500k tokens across phases — the orchestrator then rationalizes "context-budget anxiety" into compression of mandatory phases. Fix family: file-based state passing (subagent Write()s to disk, returns only path + 100-word summary) + run-verification gate + fail-loud headers.
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.
Sister skill:
multi-phase-skill-disk-reading-strategycovers the input-direction version of this failure (orchestrator injecting large payloads INTO subagent prompts → degraded subagent output). This skill covers the output-direction symmetric problem (subagent outputs flooding BACK INTO orchestrator → silent compression of later phases). Same fix family, different failure signature. Read both.Related — different root cause, same symptom:
workflow-parallel-fanout-omits-sequential-phases. Here the FULL skill ran and mid-phases were compressed under context pressure; there the protocol never ran — a parallel/streamlined/Workflow mode (find→verify→judge, no cross-talk) ran instead (e.g. under ultracode). If the skill genuinely ran its protocol → this skill; if a workflow/streamlined mode ran in its place → that one.
Multi-agent orchestrator skills (review panels, debate workflows, multi-reviewer pipelines) silently compress MANDATORY phases under perceived context-budget pressure, producing a deliverable that looks indistinguishable from a full run but actually skipped Phase 4 (private reflection), Phase 5 (debate rounds), Phase 7 (blind final assessments), or similar mid-pipeline phases.
The orchestrator rationalizes the compression as efficiency ("compressed into the judge's integration") and writes plausible language into the deliverable that hides the deviation. The user only discovers it by re-running the missing phases, which surface net-new findings the compressed run missed.
In a synthetic review example, the first run skips reflection and debate and produces a plausible action list. Re-running the required phases exposes an additional high-severity defect that none of the independent initial reports identified. This illustrates why required phases cannot be replaced by a judge's summary; it is not a claim about a named project's measured results.
This is the counter-intuitive part. Subagent dispatch is parallel, and each subagent has its own ~200k context window. So a naïve reading is "no orchestrator pressure should exist."
But subagent outputs land verbatim in the orchestrator's chat history as Agent tool results. Illustrative token budget for a 5-reviewer panel (not incident measurements):
| Source | Tokens returned to orchestrator |
|---|---|
| 5 Phase 3 independent reviews (~15k each) | ~75k |
| 5 Phase 4 reflections (~10k each) | ~50k |
| 5 Phase 5 debate round-1 responses (~10k each) | ~50k |
| 5 Phase 7 blind finals (~5k each) | ~25k |
| Phase 8 audit + Phase 10/11 verification | ~15k |
| Total in orchestrator chat after Phase 8 | ~215k |
The orchestrator then has to compose Phase 14 (judge) and Phase 15.1/15.2/15.3 (output generation) on top of that. Even with a 1M-token model, the orchestrator feels pressure — and pressure triggers compression.
You are debugging or auditing a multi-agent skill if ANY of these apply:
Phases run: 1, 3, 4, 5, ... line).You are AUTHORING a new multi-agent skill if:
Replace this anti-pattern:
# Subagent prompt says:
# "Return your full review as your final message."
# Result: 15k tokens land in orchestrator chat per subagent.
With this pattern:
# Subagent prompt says:
# "Write your full review to {output_dir}/state/reviewer_{name}_phase_{N}.md
# using the Write tool. Return ONLY:
# Path: {output_dir}/state/reviewer_{name}_phase_{N}.md
# Summary (100 words): <one paragraph>
# Top finding: <one line>"
# Result: ~120 tokens land in orchestrator chat per subagent.
The orchestrator's context cost drops from ~215k to ~3k for the same panel. Late-phase agents (judge, output writers) read files from disk on demand — and they each get a fresh ~200k window for that.
This pattern is already used by overnight-workflow skills:
overnight-insight-discovery (separate plugin) — Phase 0 probe results, stitched_view, RESUME_MORNING all written to disk; orchestrator holds paths onlysuccessor-handoff — handoff content written to disk, not chat-historycloud-run-results-bq-postsync — Path B intermediate state filesdual-cloudrun-job-orchestration — multi-agent file-based coordinationThese can chain 30+ subagent runs without compression because the orchestrator context never bloats.
If a 5-reviewer panel produces ~205k of judge inputs (Phase 3+4+5+7+8+10+11 + context brief), a 6-reviewer panel exceeds 200k. Solution:
Each gets a fresh ~200k window. Lifts reviewer ceiling from 5 to ~10 without architectural strain.
Before launching the final synthesis/judge phase, the orchestrator MUST verify in writing:
# Pseudocode for the gate:
required_files = [
f"{output_dir}/state/reviewer_{r}_phase_{p}.md"
for r in REVIEWERS
for p in [3, 4, 5, 7] # MANDATORY phases
]
missing = [f for f in required_files if not Path(f).exists()]
if missing:
# FAIL LOUD — do not proceed to judge
raise MissingPhaseError(f"Cannot launch judge; missing phase outputs: {missing}")
# Run the missing phase(s) before retrying.
Mirror the existing Phase 15.3 retry pattern that v2.16.4 of roundtable:agent-review-panel
introduced for HTML report generation.
If any MANDATORY phase was skipped (despite the gate, e.g., user override), the final report MUST surface this in the header — not bury it:
# Review Panel Report
> ⚠️ COMPRESSED RUN — Phases skipped: 4, 5, 7 (reflection / debate / blind finals)
> Findings may be incomplete. Re-run the panel with full phase coverage before
> acting on this report. (Reason: <orchestrator-supplied justification>)
**Verdict:** ...
Plus an [COMPRESSED] epistemic label on every action item that lacks debate-round
provenance.
Require the report header to enumerate phases that ran:
**Phases run:** 1, 3, 4, 5×1, 6, 7, 8, 10, 11, 14, 15
Missing numbers (e.g., 1, 3, 8, 10, 11, 14, 15 with 4/5/7 absent) are
immediately visible to a reader.
Add to the skill spec a "Red Flags" table mirroring the using-superpowers pattern.
Specific thoughts that signal compression about to happen:
| Thought | Reality |
|---|---|
| "This is a setup review, debate won't add much" | Debate surfaces what individual reviewers can't see alone — including defects absent from the initial independent reports |
| "I'll synthesize the reflection inline" | Reflection runs in subagents' fresh contexts — orchestrator synthesis loses the per-reviewer confidence ratings |
| "The judge can integrate everything" | Judge sees only what's in its prompt; if Phase 4/5/7 didn't run, the judge has nothing to integrate |
| "Convergence reached after Round 0" | Round 0 is INDEPENDENT review — no cross-talk yet, so no convergence is possible |
| "I'll skip Phase 5 round 2-3 since round 1 was thorough" | Acceptable per spec (Phase 5 is "max 3 rounds, can stop early on convergence"). But round 1 minimum is MANDATORY. |
| "I'll compress to save tokens" | Subagent dispatch is parallel; each gets its own context. The compression is for the ORCHESTRATOR's context bloat, which file-based state passing eliminates entirely. |
This failure mode is not exclusive to multi-agent fan-out. It also bites single-agent,
long-prose skills (e.g. session-handoff): a late, nested step keeps getting
dropped because (a) it sits after the "main event" (the PR merge), and (b) a later phase that
produces visible user-facing output (a recap, a summary) reads as the finale — so the agent
races to it and the intervening housekeeping steps silently evaporate. A synthetic
example is a required final usage-record step omitted after the visible handoff is written.
The cheap, durable fix: make the droppable step a required, non-blankable row in the skill's
mandatory terminal output table (the summary the agent always emits). Most long skills end with
a "present this table" step. If the step's artifact has no row there, the agent can present a
complete-looking "done" without ever doing it — nothing forces it. Add a row that demands either the
artifact (path / value) or an explicit skipped: <reason>, and a one-line note that the row is
NOT blankable ("if you reach this table and the cell is empty, go back and run step N first").
| `MEMORY.md` index | Updated |
+ | **Session usage record** | **REQUIRED — <path> written (cost $X, N subagents) or "skipped: <reason>"** |
| Git status | All committed and pushed |
Why it works: the terminal table is the one artifact the agent reliably produces, so wiring the fragile step into that artifact makes skipping it visibly incomplete rather than silently absent. Cheaper than a programmatic gate (#3) for prose skills that have no executable harness. Pairs with #5 (manifest) — the manifest proves phases ran; this proves the tail step's output exists.
You have successfully fixed the compression failure mode if:
ls {output_dir}/state/ shows one file per (reviewer × phase) cell.
For a 5-reviewer panel running Phase 3/4/5/7, expect ~20 state files.report.md has a Phases run: manifest line listing
every mandatory phase, no [COMPRESSED] warning.Symptom: a multi-agent review panel produced a report headed APPROVE WITH CHANGES, an action list and a score. The reviewer notices that the execution manifest does not show the required reflection and debate rounds.
Diagnostic steps:
Read the process.md (director's-cut log). Look for ## Phase 4 and ## Phase 5.
If you find a heading like ## Phase 4-5: Reflection & Debate (Compressed)
followed by 1-2 paragraphs of summary instead of per-reviewer outputs —
confirmed compression.
Re-run the missing phases. Dispatch 5 parallel agents (one per reviewer) with prompts that include:
Synthesize a Phase 6 round summary and Phase 7 blind-final score table from the agent outputs.
Diff the new findings against the compressed-run findings. Net-new findings = the cost of the original compression. In this synthetic example, a reviewer identifies a missing access-control boundary during debate that was absent from the initial findings.
File an upstream issue against the skill repo with the failure-mode reproduction + the architectural fix proposal (file-based state passing
multi-phase-skill-disk-reading-strategy already solved for the
input-direction case.overnight-insight-discovery, successor-handoff, cloud-run-results-bq-postsync, dual-cloudrun-job-orchestrationWhat 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.