Rescue

From hashgraph-online/awesome-codex-plugins · View interactive version

Rescue is an AI agent skill from the GitHub repository hashgraph-online/awesome-codex-plugins. Delegate a substantial diagnosis, implementation, or follow-up task to Claude Code through the tracked-job runtime. Args: --background, --wait, --resume, --resume-last, --fresh, --write, --model <model>, --effort <low|medium|high|xhigh|max>, --prompt-file <path>, [task text]. Defaults to opus with n

How to use this skill

Skill file

Claude Code Rescue

By default, hand this skill off through Codex's built-in default subagent.

Do not answer the request inline in the main Codex thread.

Spawn exactly one rescue forwarding subagent whose only job is to run one companion task command and return that stdout unchanged.

Foreground rescue responses must be that subagent's output verbatim.

Use this skill when the user wants Claude Code to investigate, implement, or continue substantial work in this repository.

Prefer $cc:rescue when the user wants Claude Code to diagnose the issue, validate a risky change by actually editing or testing, apply fixes from a prior review, or carry a task forward across multiple steps.

Do not use rescue for "just review this diff" unless the user also wants follow-through work beyond review findings.

Do not use rescue merely because the main Codex thread plans to fix things after combining its own review with a separate Claude review. Rescue is only the right delegation when Claude itself is supposed to investigate, edit, test, or otherwise own the follow-through work.

Resolve <plugin-root> as two directories above this SKILL.md file. Always run the companion from that active plugin root:

node "<plugin-root>/scripts/claude-companion.mjs" task ...

Raw slash-command arguments:

$ARGUMENTS

Supported arguments: --background, --wait, --resume, --resume-last, --fresh, --write, --model <model>, --effort <low|medium|high|xhigh|max>, --prompt-file <path>, plus free-text task text

Companion defaults: model=opus, and no effort. The companion forwards --effort only when the user passes it, so fable, opus, sonnet, and haiku each keep Claude Code's own effort default. Claude Code owns which effort levels each model supports.

Forward --model unchanged to the companion. The companion trims surrounding whitespace, canonicalizes the friendly aliases fable, opus, sonnet, and haiku to lowercase, then forwards every other --model value unchanged to Claude Code. Claude Code owns alias resolution and supported effort levels; /model is the authoritative picker for the current account and provider.

Main-thread routing rules:

node "<plugin-root>/scripts/claude-companion.mjs" task-resume-candidate --json

Subagent launch:

node "<plugin-root>/scripts/claude-companion.mjs" background-routing-context --kind task --json

Background Claude Code rescue finished. Open it with $cc:result <reserved-job-id>.

Background Claude Code rescue finished. Inspect it with $cc:status first, then use $cc:result for the finished job you want to open.

Execution:

Output:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.