/agent-traffic-control:db-access-review-subagent-needs-explicit-probe-budgetfrom agent-traffic-control
Dispatching a review or verification agent with live database, gcloud, psql or bash access: give it a tool call and time budget, plus the probes NOT to re-run. Also when it gives `API Error: The socket connection was closed unexpectedly`, or has run 30 minutes. Not its sources.
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: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You dispatch a general-purpose subagent to review a PR or verify findings, and it has live database /
cloud / Bash access. Unprompted, it does the thorough thing: re-derives every claim from scratch,
running expensive exploratory queries (full-window joins, multi-date sweeps, dry-runs). Two failure
modes follow:
API Error: The socket connection was closed unexpectedly with a non-zero tool_uses count but no final assistant message — so the agent
did real work (11, 20 tool calls) but its verdict was never delivered. The output is lost, and
it is not resumable from the orchestrator unless a SendMessage/continue tool is available
(often it is not). You've burned the tokens and the wall-clock for nothing.The root cause is that an unbounded reviewer treats "review this change" as "independently re-establish the entire ground truth," which is exactly the slow, fragile thing — when the orchestrator has usually ALREADY established that ground truth and just needs a second pair of eyes on the diff.
Agent result shows API Error: The socket connection was closed unexpectedly plus
tool_uses: N (>0), subagent_tokens: 0, and no Strengths/Issues/Assessment in the output.Bound review/verify subagents explicitly in the dispatch prompt:
pytest …)." Hand it the ground truth as given facts to sanity-check cheaply, not
to reproduce.agentId. If a SendMessage/continue tool exists, try
resuming for just the verdict (no new probing). If not, re-dispatch a fresh bounded agent — do
not assume the lost agent "basically finished."The bounded re-dispatch returns a full verdict quickly (minutes, not tens of minutes) and does not socket-close. A pure-docs review can finish in <1 min / ~4 tool calls.
Two parallel review agents were dispatched with live-BQ access to verify an ML-pipeline PR and told to
"adversarially verify my claims." Both ran ~34 minutes (11 and 20 tool calls of BQ probing) and both
returned API Error: The socket connection was closed unexpectedly with zero verdict — output lost,
not resumable (SendMessage unavailable). Re-dispatched with "≤8 tool calls, <6 min, do NOT run BQ
probes (I already validated the delta/unmapped-code/serving checks), review the diff statically + run
the fast pytest" → both returned clean structured verdicts in ~12–13 min; a later docs-only review
returned in 28s / 4 tool calls.
These carry disable-model-invocation: true. They never appear in the skill
listing and the Skill tool refuses them, so the only way in is to open the file
with Read when one of these matches what you are looking at.
parallel-impl-agent-dies-mid-stream-verify-working-tree — a dispatched agent died mid-stream leaving no output while the harness reported it completedopus-ratelimit-fanout-retry-on-sonnet-throttled-waves — a large fan-out mass-fails with HTTP 429 / "temporarily limiting requests"parallel-subagent-fanout-rate-limit-recover-from-disk — recovering a rate-limited fan-out from the files the surviving agents already wrotecredit-stall-mid-orchestration-revive-collision — a billing/credit stall froze in-flight subagents and they collide when it resolvesfan-out-cost-control — a fan-out's token burn is invisible from the agent count: per-shard advisor() calls multiply by fan-out width, a resumed agent's cost tracks turn count not thinking depth, and write-once-at-end agents lose everything to a kill or a usage limitscheduled-fallback-check-cites-stale-task-id — a self-scheduled or peer check-in message names a background task ID that was current when the check was SCHEDULED but may already be superseded by a restart under a fresh ID by the time it FIRESpoll-loop-treats-an-unreadable-status-as-finished — a watch loop on a long-running remote job pulls one field out of the status reply and treats any non-empty value as completion, so an error line or a reply that arrived after the machine slept reads as a terminal state and gets acted onsession-context-runs-out-mid-brief-measure-first-hand-back-early — a dispatched session's context budget runs out before it finishes: measure the facts the brief calls unmeasured first, because only a written measurement outlives the session, and decline the next assignment before claiming anythingWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
118 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-verifynpx claudepluginhub wan-huiyan/agent-traffic-control --plugin agent-traffic-control