Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add wan-huiyan/agent-traffic-control --skill parallel-gate-legs-killed-for-memory-count-cannot-see-ramgit clone --depth 1 https://github.com/wan-huiyan/agent-traffic-controlWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/parallel-gate-legs-killed-for-memory-count-cannot-see-ram)<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/parallel-gate-legs-killed-for-memory-count-cannot-see-ram"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/parallel-gate-legs-killed-for-memory-count-cannot-see-ram/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/parallel-gate-legs-killed-for-memory-count-cannot-see-ram"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/parallel-gate-legs-killed-for-memory-count-cannot-see-ram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00285 | $0.03978 |
| Opus 5.5 | $0.00114 | $0.01591 |
| Sonnet 5.5 | $0.00057 | $0.00796 |
| Haiku 4.5 | $0.00028 | $0.00398 |
Grade A, and why
parallel-gate-legs-killed-for-memory-count-cannot-see-ram scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 306 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Parallel Gate Legs Killed for Memory — the Count Cannot See RAM
Problem
Two sessions share one developer machine. Each runs the repo's local test legs before pushing, and each obeys a concurrency rule of the form "at most two heavy legs machine-wide", implemented as a count of running test processes.
Your background leg dies. What you get is not a failure: the log stops, with
no traceback, no N passed summary and no exit status, and the harness says the
task was stopped because the system was low on memory. The count, sampled
throughout, read 1.
Three wrong conclusions are one step away, and all three are natural:
- "My leg went red." It did not run to a verdict at all.
- "My loop is broken." The obvious fix — restart it — walks straight back into the same collision, because nothing about the machine changed.
- "The concurrency rule did not fire, so concurrency was not the problem." The rule cannot see the resource that ran out.
Context / Trigger Conditions
- A
run_in_backgroundtest leg ends with a low-memory notice, or its output file ends mid-run with no summary - A process-count check reads 2 for one leg, so any "under 2" threshold is unsatisfiable (the cause is not the obvious one — see Root cause)
- Your rule is phrased "start only if the count is under 2", so it is unsatisfiable while any leg runs anywhere on the machine, yours or a peer's
memory_pressure's free-percentage headline looks healthy (40%+) whilePages free× page size is tens of megabytes and swap is nearly full- A peer session is part-way through its own full leg script in another worktree
- The same leg, run alone in the foreground, finishes normally
Root cause
The guard measures the wrong resource. A count of test processes is a CPU and contention rule: it stops two suites fighting for cores and for a shared fixture directory. Memory is not in it at all, so a machine with room for one copy of the heaviest leg will happily admit a second and then kill one of them.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago Changed 5ff5ad30e9af
- 2mo ago Changed · +69 lines a7e96b6ad5ba
- 2mo ago First seen · 237 lines · 285 tokens per session scan A 85955a504438
parallel-gate-legs-killed-for-memory-count-cannot-see-ram is a skill published in the GitHub repository wan-huiyan/agent-traffic-control (5 stars, last pushed yesterday), licensed MIT. It adds 285 tokens to every session and 3,978 once invoked, about $0.0011 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-18.
parallel-gate-legs-killed-for-memory-count-cannot-see-ram compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| parallel-gate-legs-killed-for-memory-count-cannot-see-ramwan-huiyan/agent-traffic-control | Skill | 5 | yesterday | MIT | A | 285 | Claude Code |
| eval-integrationIbrahim-3d/orchestrator-supaconductor | Skill | 384 | 2mo ago | AGPL-3.0 | A | 109 | Claude Code |
| cybersecuritysecondsky/claude-skills | Skill | 257 | yesterday | MIT | A | 79 | Claude Code |
| cloudflare-workers-observabilitysecondsky/claude-skills | Skill | 257 | yesterday | MIT | A | 47 | Claude Code |
| cloudflare-workers-dev-experiencesecondsky/claude-skills | Skill | 257 | yesterday | MIT | A | 47 | Claude Code |
| cloudflare-workers-performancesecondsky/claude-skills | Skill | 257 | yesterday | MIT | A | 42 | Claude Code |
| api-error-handlingsecondsky/claude-skills | Skill | 257 | yesterday | MIT | A | 40 | Claude Code |