parallel-subagent-fanout-rate-limit-recover-from-disk

Recovers throttled parallel subagent fan-outs by checking disk output instead of agent return status.

3|Updated May 8, 2026
One-click install
npx skills add https://github.com/wan-huiyan/agent-traffic-control --skill parallel-subagent-fanout-rate-limit-recover-from-disk-wan-huiyan
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: parallel-subagent-fanout-rate-limit-recover-from-disk
Source: https://github.com/wan-huiyan/agent-traffic-control/tree/main/plugins/agent-traffic-control/skills/parallel-subagent-fanout-rate-limit-recover-from-disk
Command: npx skills add https://github.com/wan-huiyan/agent-traffic-control --skill parallel-subagent-fanout-rate-limit-recover-from-disk-wan-huiyan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When you dispatch many parallel subagents at once, the API returns server-side rate-limit errors, and the agents' return status lies about what was actually produced — most 'failed' agents already wrote their output files before the error hit on their final summary turn. Retrying based on return status wastes tokens re-doing completed work. ## Core Features & Use Cases - Concurrency throttling diagnosis: Identifies that dispatching more than ~5-6 concurrent subagents trips a server-side throttle distinct from your usage limit, and prescribes batching at 4-5 concurrent dispatches. - Disk-based recovery: Provides a shell loop that enumerates expected output paths and re-dispatches only chunks whose files are missing or empty, treating the filesystem as ground truth rather than agent return messages. - Session-limit variant handling: Covers the user-account session limit case ('You've hit your session limit · resets HH:MM'), where retries launched inside the limit window die instantly at ~0 tokens, so re-dispatch must wait until after the stated reset time. - Use Case: A graphify-style extraction chunked 552 docs into 28 subagent tasks; 20 returned 'Rate limited' but disk checks showed 20/28 chunk files present, so only the genuinely missing chunks were re-run in batches of 4-6 with no further throttling. ## Quick Start Ask the agent to check which expected chunk output files are missing or empty on disk and re-dispatch only those subagents in batches of four.

Frequently Asked Questions about parallel-subagent-fanout-rate-limit-recover-from-disk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I recover from rate limits when running parallel subagents?▼

Check the expected output files on disk rather than the agents' return status, since throttled agents usually wrote their files before the error hit on the final summary turn. Re-dispatch only the chunks whose files are missing or empty, in batches of four to five.

How many concurrent subagents can I dispatch before hitting rate limits?▼

Dispatching more than roughly five to six concurrent subagents trips a server-side throttle that is distinct from your usage limit. Batching at four to five concurrent dispatches stays under the ceiling and completes without throttling.

Why do failed subagents show rate limit errors but still produce output?▼

A subagent performs its work and writes its deliverable file before emitting a final summary turn, and the rate-limit error lands on that last turn. The side effect is already on disk even though the agent reports an error.

What is the difference between server-side throttling and the session limit error?▼

Server-side throttling says 'Server is temporarily limiting requests (not your usage limit)' and is caused by concurrency, while the session limit says 'You've hit your session limit · resets HH:MM' and is your account usage cap. Both require disk-based recovery, but session-limit retries must wait until after the stated reset time.

Can I retry subagents immediately after hitting a session limit?▼

No. A retry launched inside the session-limit window dies instantly at launch with roughly zero tokens consumed. Wait until after the stated reset time, then re-dispatch only the agents whose output files are missing or stub-sized.