worker-recovery

Diagnose and recover stalled Claude Code worker sessions in multi-agent orchestration.

Updated Jun 4, 2026
One-click install
npx skills add https://github.com/rp4ri/orchestration-studio --skill worker-recovery
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worker-recovery
Source: https://github.com/rp4ri/orchestration-studio/tree/main/skills/worker-recovery
Command: npx skills add https://github.com/rp4ri/orchestration-studio --skill worker-recovery

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

In multi-agent Claude Code orchestration, stalled, killed, or misbehaving worker sessions are indistinguishable from successfully completed tasks until you verify their output artifacts, leading to lost work, broken workflows, and wasted compute when workers go idle without delivering required results.

Core Features & Use Cases

  • Failure Taxonomy & Triage: Identifies common production-observed worker failure signatures from tmux pane scrollback, including rate limit cuts, usage policy false positives, ghost text hazards, stranded dispatches, and context window exhaustion.
  • Targeted Recovery Playbooks: Provides step-by-step, production-tested recovery procedures for each failure type, from simple re-triggers for rate-limited workers to full TCC permission revival for macOS permission loss without losing session context.
  • Prevention Guardrails: Includes proactive rules to avoid common failure modes, such as staggered dispatch to prevent first-token rate limit cuts, debounce settings for idle watchers, and resource-aware verification to avoid host OOM kills during concurrent builds.
  • Use Case: Use this skill when a worker pane shows idle status without producing its expected report, PR, or build artifact, or when an orchestration watcher fires unexpectedly during a multi-worker workflow.

Quick Start

Invoke the worker-recovery skill when a Claude Code worker pane appears idle without producing its expected output to identify the failure type from the pane scrollback and execute the matching recovery steps.

Frequently Asked Questions about worker-recovery

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

FAQPage Schema
How do I recover a Claude Code worker session that stopped without delivering its artifact?

Recover stalled Claude Code worker sessions by diagnosing tmux pane scrollback to identify the failure type, then applying a matching recovery playbook such as re-triggering rate-limited workers or rotating tasks to fresh-context workers. This restores workflow progress without losing session context.

Why does my Claude Code worker go idle and how do I fix it?

Idle Claude Code workers usually result from server-side rate limit cuts, false usage policy flags, or full context windows. Fix them by verifying task artifacts to distinguish completion from failure, then re-triggering or re-framing prompts to bypass false safety filters.

How do I bypass false usage policy positive blocks in Claude Code multi-agent orchestration?

Bypass false usage policy positives by re-framing the worker prompt to avoid triggering safety filters, then re-dispatching the task. This recovery playbook targets false positive blocks specifically without altering the original task requirements.

How can I prevent first-token rate limit cuts when dispatching multiple Claude Code workers?

Prevent first-token rate limit cuts by staggering worker dispatches across intervals rather than launching concurrently. This guardrail avoids overwhelming server-side rate limits and ensures each worker session begins token generation successfully.

How do I restore macOS TCC permissions for a Claude Code worker session without losing context?

Restore macOS TCC permissions by reviving the terminal application's accessibility and full disk access rights, then re-attaching the tmux session. This recovery procedure preserves the active worker context while resolving the permission loss that stalled execution.

Can I use tmux scrollback to diagnose why a Claude Code worker was killed by the host OOM?

Yes, tmux pane scrollback contains the failure signatures needed to identify host OOM kills and context window exhaustion. Diagnosing the scrollback allows you to apply resource-aware verification and rotate the task to a fresh-context worker.