/agent-traffic-control:subagent-watchdog-stall-on-ui-template-trackfrom agent-traffic-control
Recognise the failure mode where a `general-purpose` (or similar) subagent dispatched to do UI/template-heavy work stalls and gets killed by the no-streamed-output watchdog (~600s of silence → terminate). Use when: (1) you dispatched a subagent for UI work (new page route + Jinja/template authoring + per-step iterative tests + small CSS), (2) the agent reports `failed: Agent stalled: no progress for 600s (stream watchdog did not recover)` with a partial result fragment like "Now let me look at the routes..." indicating it died mid-investigation, (3) the worktree contains uncommitted changes (the agent edited files before going silent and the work is salvageable), (4) you're considering re-dispatching with the same prompt or a "tighter" version — DON'T, because the stall is structural to dispatching this shape of work, not the prompt's fault. The fix is to switch to inline execution for the remainder of THIS task and bias toward inline for future UI/template tracks even though they cost more main-context tokens. Sister skill: `parallel-subagent-ui-from-contract-table-design-anemic` (a different UI-subagent failure mode: agents complete but produce design-anemic HTML). This skill covers the OPERATIONAL stall; the sister skill covers the QUALITY anemia. Same dispatch antipattern, two distinct failure modes.
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.
You dispatched a general-purpose subagent (or any agent running in the
background via the Agent tool) to write a new UI screen — a route +
Jinja template + a few tests. The agent reads existing patterns, plans
template structure, drafts the template, iterates on test failures...
and stalls. You get:
status: failed
summary: Agent "Phase C: Screen 03 live workspace" failed: Agent stalled:
no progress for 600s (stream watchdog did not recover)
result: "Now let me look at the routes I'll consume (render, bundle,
upload) and existing templates."
The result fragment shows it was mid-investigation. The worktree may contain partial edits.
Recognise this trap when:
The watchdog kills the agent when stdout is silent for ~600 seconds. On UI tracks the agent spends meaningful contiguous time in:
These phases sometimes do not emit streamed tokens to the orchestrating host — the agent is computing, not narrating. The watchdog sees no output, kills the task, and reports a stall.
Backend tasks emit more constant streamed output: pytest runs, gh CLI commands, git operations all produce stdout naturally.
Salvage partial work. cd into the worktree the stalled agent
was using and run git status --short. If files are modified, the
agent did real work before going silent — diff them and finish
inline (Read, Edit, Write, Bash tool calls all stream output
naturally and never trigger the watchdog).
Don't re-dispatch with the same prompt. Even with "tighter scope" or "commit every N minutes" hints in the prompt, the stall is structural. Two consecutive S16 Phase C dispatches both stalled.
Don't re-dispatch with a different subagent type either. The
watchdog is at the Agent-tool layer; switching general-purpose to
feature-dev or similar will not help.
Inline cost: higher main-context token usage (you do the reads yourself, you do the edits, you maintain the test loop). For a typical UI screen that's ~300-500 lines, expect ~20-30 tool calls inline. Worth it: 100% completion reliability vs ~0% subagent.
Subagents complete reliably when:
Subagents fail (stall) when:
After switching to inline:
Done. UI track shipped.
S16 Phase C — Screen 03 live workspace in the-handover-repo:
general-purpose subagent with comprehensive
prompt. Stalled at 600s; result fragment: "Now let me check the design
doc for Screen 03 to understand UX, and existing tests for render/bundle
to see fake patterns:"Same session, Phase D polish (test edits + runbook write) also stalled
once at 600s with partial work in the worktree (src/config.py,
src/ui/upload_routes.py, tests/test_ui/test_upload_csv.py already
modified by the subagent). Salvaged inline; finished the work + added
the runbook. Shipped as PR #75.
parallel-subagent-ui-from-contract-table-design-anemic —
a different UI-subagent failure where the agents complete cleanly but
produce design-anemic HTML. That skill's fix (mockup-first inline
build) compounds with this skill's fix (inline execution for UI).parallel-subagent-ui-from-contract-table-design-anemicWhat 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.