/agent-traffic-control:running-job-queue-ignores-in-place-editsfrom agent-traffic-control
A shell loop feeds jobs one at a time from a queue file to a remote runner, and you edit that file while it runs. Use when a `sed -i` change to the queue never took effect, when you rebuild the queue to reorder it, or when a job you meant to keep never ran.
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.
A common shape for "one job at a time on a shared test machine":
while read -r WORKTREE SHA LEG TARGET <&3; do
submit ...; wait-for-final ...
done 3< jobs.txt
The loop opened jobs.txt once, on file descriptor 3. Two things follow.
sed -i does not edit the file the loop is reading. It writes a new file and renames it
over the old name, so the name points at a new inode while the loop keeps reading the old one.
Every swap, removal and reorder made this way is invisible: the loop goes on submitting the
jobs you thought you had removed. Appending with >> does reach the loop, because it writes
to the same inode, but it can only add to the end.while read.echo ... >> jobs.txt). That is the only safe live edit.submitted <sha> <leg> <target> <id>), and locate that exact line in the queue file with
grep -n. Never derive it from a count or from memory.pgrep -fl '<loop script> <old file>' is empty after the stop, and one loop runs the new file.tail -f on a rotated log,
a config read once at start, a lock file replaced rather than truncated.peer-window-grant-copy-the-parser-and-stay-quiet-while-live: pausing the queue while a peer
holds the shared host.job-reports-success-while-its-worker-was-oom-killed: reading the runner's final state honestly.What 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-verify