credit-stall-mid-orchestration-revive-collision

credit-stall-mid-orchestration-revive-collision is a skill for Claude Code from wan-huiyan/agent-traffic-control. It costs 303 tokens per session (3,297 once invoked), scanned A, original, MIT.

A recovery guide for orchestration runs where multiple background agents pause because of billing, credit, or other temporary service failures.

In plain words
What is it for?
Use it to decide whether stalled agents should be resumed, monitored, or replaced after service access returns.
Why use it?
It prevents restarted agents from duplicating work on the same branches, pull requests, or files when the original agents resume.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents; mentions Claude Code.

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

Good fit Use it to decide whether stalled agents should be resumed, monitored, or replaced after service access returns.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wan-huiyan/agent-traffic-control/credit-stall-mid-orchestration-revive-collision
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 credit-stall-mid-orchestration-revive-collision
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 107 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 credit-stall-mid-orchestration-revive-collision

README.md
[![agentmods](https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/credit-stall-mid-orchestration-revive-collision/github.svg)](https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/credit-stall-mid-orchestration-revive-collision)
Your own site
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/credit-stall-mid-orchestration-revive-collision"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/credit-stall-mid-orchestration-revive-collision/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 credit-stall-mid-orchestration-revive-collision

Your own site · 80×15
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/credit-stall-mid-orchestration-revive-collision"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/credit-stall-mid-orchestration-revive-collision.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 303 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,297 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.00303 $0.03297
Opus 5 $0.00151 $0.01648
Sonnet 5 $0.00061 $0.00659
Haiku 4.5 $0.00030 $0.00330

Measured 12d ago against content hash 99501005fecf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

credit-stall-mid-orchestration-revive-collision 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 12d 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/credit-stall-mid-orchestration-revive-collision/SKILL.md · 265 lines

How it starts

The opening of the file, as written. The whole thing — 265 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Credit-stall mid-orchestration: revive-collision recovery

Problem

You're orchestrating N parallel subagents (Task tool with run_in_background: true), each working on independent tracks (e.g., one PR per track). Mid-run, an Anthropic billing/credit failure or other transient harness outage hits — all in-flight subagents freeze simultaneously. The user fixes billing, reports back, and asks you to continue.

The trap: stalled subagents are NOT dead — they're suspended at the harness layer. When API access is restored, the harness can auto-resume them from the exact tool-call boundary they froze on. If you naively relaunch "resume" agents to pick up where you think the originals stopped, you end up with TWO agents racing on:

  • The same git branch (one commits + pushes, the other rebases on top of stale state)
  • The same PR (duplicate review comments, conflicting label changes)
  • The same files (one Edit lands, then the other Edit overwrites)

Symptoms when this happens: PR has two "no issues found" review comments, force-push storms as both agents rebase, agent A reports "PR already merged" while agent B is still polling CI for that same PR.

Severity ladder (observed in S156, 2026-05-08, all three originals revived ~2hr post-stall):

  1. Best case (Track A original): revives mid-implementation, notices the merged PR via subsequent harness signals, sends a status update, terminates. Resume agent had pivoted to value-add (PR #571) under a state-aware brief. No debris.
  2. Middle case (Track C original): revives, runs git diff origin/main HEAD -- <files>, finds zero diff on feature files, recommends "do not file PR / delete branch", terminates. No PR debris, just a status-report task-notification.
  3. Worst case (Track D original): revives, FILES a full duplicate PR against the already-merged branch (recreating the deleted remote branch via push), THEN runs its diff check, detects the collision, posts a "close as superseded" comment to its own duplicate PR, terminates. Debris: 1 open PR + recreated remote branch → orchestrator must close + delete.

Read the full file on GitHub · 265 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. 12d ago First seen · 265 lines · 303 tokens per session scan A 99501005fecf

Subscribe to this mod's changes

credit-stall-mid-orchestration-revive-collision is a skill published in the GitHub repository wan-huiyan/agent-traffic-control (3 stars, last pushed yesterday), licensed MIT. It adds 303 tokens to every session and 3,297 once invoked, about $0.0015 per session on Opus 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-08-31.

Related

Other skills, from other repositories

codex-coplan

Bring in an external model (Codex) to co-develop a plan — both models draft independently, align on disagreements, and merge into one plan. Load this only when the user explicitly names Codex (e.g. "let's discuss this with Codex," "what does Codex think about this approach") — don't auto-trigger just because a plan…

jiayx01/codex-claude-skills · 92 tokens

codex-orchestrator

Delegate execution tasks to Codex (Claude plans and reviews). Load this only when the user names Codex explicitly — no matter how big the task is, if the user hasn't mentioned Codex, do it yourself.

jiayx01/codex-claude-skills · 49 tokens

good-bad-ugly

Use when the user asks to "orchestrate", "conduct", invoke "good bad ugly" / "gbu", or tackle a large multi-part coding task (audits, refactor sweeps, multi-feature sessions, "clean this up and fix everything") — anything too big for one linear pass. Runs the tiered orchestration workflow: The Good (brain) plans and…

XyndoX/good-bad-ugly · 131 tokens

orchestrate

Use only when the user explicitly types /orchestrate:orchestrate to decompose a large task, spawn a tree of parallel worker/subplanner/verifier subagents, and collect structured handoffs. Do not invoke autonomously.

odysseus0/claude-orchestrate · 54 tokens

api-testing

HTTP API testing for TypeScript (Supertest) and Python (httpx, pytest). Test REST APIs, GraphQL, request/response validation, authentication, and error handling.

secondsky/claude-skills · 39 tokens

bun-test-coverage

Use for test coverage with Bun, --coverage flag, lcov reports, thresholds, and CI integration.

secondsky/claude-skills · 26 tokens