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,979 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 — 124 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 124 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,979 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.03979
Opus 5.5 $0.00114 $0.01592
Sonnet 5.5 $0.00057 $0.00796
Haiku 4.5 $0.00028 $0.00398

Measured 24d ago against content hash a7e96b6ad5ba, 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 24d 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. 24d ago Changed · +69 lines a7e96b6ad5ba
  2. 29d 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 (3 stars, last pushed 25d ago), licensed MIT. It adds 285 tokens to every session and 3,979 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

Other skills, from other repositories

eval-integration

Specialized integration evaluator for the Evaluate-Loop. Use this for evaluating tracks that integrate external services — Supabase auth/DB, Stripe payments, Gemini API, third-party APIs. Checks API contracts, auth flows, data persistence, error recovery, environment config, and end-to-end flow integrity. Dispatched…

Ibrahim-3d/orchestrator-supaconductor · 109 tokens

test-runner

Use this skill when orchestrating agentic end-to-end tests. Resolves target + profile, dispatches the right driver(s) (playwright for web today, peekaboo for macOS (issue #381)), invokes the ux-evaluator agent (opus, read-only) against driver artifacts, reconciles findings with the open issue tracker via…

Kanevry/session-orchestrator · 124 tokens

why

Work out whether a failure is your machine or your code before debugging either, using the environment this repository has declared and the dependency map. Use when a test, build or command fails and the cause is not obvious from the error.

ArcticFox2029/chamnan · 46 tokens

runtime-verification

Verify code works at runtime through build verification (mandatory), LSP diagnostics, ad-hoc verification for projects without frameworks, E2E and smoke tests, and visual verification (screenshot-analyze-verify for UI changes). Skip whitelist strictly enforced (markdown-only, config-only, dependency-bump-only with…

synaptiai/synapti-marketplace · 116 tokens

eval-business-logic

Specialized business logic evaluator for the Evaluate-Loop. Use this for evaluating tracks that implement core product logic — pipelines, dependency resolution, state machines, pricing/tier enforcement, packaging. Checks feature correctness against product rules, edge cases, state transitions, data flow, and user…

Ibrahim-3d/orchestrator-supaconductor · 110 tokens

e2e-fix-cycle

Automated E2E test-fix cycle. Runs tests, analyzes failures, applies fixes in batches, re-runs until pass. Use for full automation: 'fix e2e', 'e2e cycle', 'auto-fix tests'.

parisgroup-ai/imersao-ia-setup · 57 tokens