parallel-gate-legs-killed-for-memory-count-cannot-see-ram

parallel-gate-legs-killed-for-memory-count-cannot-see-ram is a skill for Claude Code from wan-huiyan/agent-traffic-control. It costs 285 tokens per session (3,978 once invoked), scanned A, original, MIT.

A troubleshooting guide for test runs that are stopped because a shared machine runs out of memory. It explains why counting test processes may not reveal the real memory pressure.

In plain words
What is it for?
Use it when parallel unit, API, documentation, or end-to-end test jobs share a machine and a run ends without a summary because of low memory.
Why use it?
A process-count limit can look safe while several test runs still consume too much RAM, causing a run to stop without a normal test result.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: positional $N argument; mentions Claude Code.

Part of the agent-traffic-control plugin — 123 skills shipped together

Good fit Use it when parallel unit, API, documentation, or end-to-end test jobs share a machine and a run ends without a summary because of low memory.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wan-huiyan/agent-traffic-control/parallel-gate-legs-killed-for-memory-count-cannot-see-ram
Install

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.

Any agent
npx skills add wan-huiyan/agent-traffic-control --skill parallel-gate-legs-killed-for-memory-count-cannot-see-ram
Clone the repo
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control

Made for: Claude Code.

Or install agent-traffic-control, the plugin that ships this one along with the rest of its 123 skills.

Wrote 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.

agentmods badge for parallel-gate-legs-killed-for-memory-count-cannot-see-ram

README.md
[![agentmods](https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/parallel-gate-legs-killed-for-memory-count-cannot-see-ram/github.svg)](https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/parallel-gate-legs-killed-for-memory-count-cannot-see-ram)
Your own site
<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.

agentmods 80×15 button for parallel-gate-legs-killed-for-memory-count-cannot-see-ram

Your own site · 80×15
<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>
Per session 285 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,978 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 6d ago against content hash 5ff5ad30e9af, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

plugins/agent-traffic-control/skills/parallel-gate-legs-killed-for-memory-count-cannot-see-ram/SKILL.md · 306 lines

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:

  1. "My leg went red." It did not run to a verdict at all.
  2. "My loop is broken." The obvious fix — restart it — walks straight back into the same collision, because nothing about the machine changed.
  3. "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_background test 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%+) while Pages 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.

Read the full file on GitHub · 306 lines

Changes

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.

  1. 6d ago Changed 5ff5ad30e9af
  2. 2mo ago Changed · +69 lines a7e96b6ad5ba
  3. 2mo ago First seen · 237 lines · 285 tokens per session scan A 85955a504438

Subscribe to this mod's changes

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.

Related

parallel-gate-legs-killed-for-memory-count-cannot-see-ram compared with skills from other repositories

parallel-gate-legs-killed-for-memory-count-cannot-see-ram next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
parallel-gate-legs-killed-for-memory-count-cannot-see-ramwan-huiyan/agent-traffic-controlSkill5yesterdayMITA285Claude Code
eval-integrationIbrahim-3d/orchestrator-supaconductorSkill3842mo agoAGPL-3.0A109Claude Code
cybersecuritysecondsky/claude-skillsSkill257yesterdayMITA79Claude Code
cloudflare-workers-observabilitysecondsky/claude-skillsSkill257yesterdayMITA47Claude Code
cloudflare-workers-dev-experiencesecondsky/claude-skillsSkill257yesterdayMITA47Claude Code
cloudflare-workers-performancesecondsky/claude-skillsSkill257yesterdayMITA42Claude Code
api-error-handlingsecondsky/claude-skillsSkill257yesterdayMITA40Claude Code