ralph-resume

ralph-resume is a skill for Claude Code, Codex from jmagly/aiwg. It costs 13 tokens per session (1,257 once invoked), scanned C, original, MIT.

A recovery command for restarting an interrupted agent work loop from its saved checkpoint. An agent loop is a repeated process in which an agent works through a task over multiple iterations.

In plain words
What is it for?
Use it when a loop was paused, timed out, or stopped at its iteration limit, with optional higher limits or a longer timeout.
Why use it?
It preserves the loop's previous progress and learnings instead of requiring the work to start again.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: names the TodoWrite tool.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `steward`) are directly invokable as slash commands. See [skill-dis.

Good fit Use it when a loop was paused, timed out, or stopped at its iteration limit, with optional higher limits or a longer timeout.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/jmagly/aiwg
agentmods
npx agentmods add skills/jmagly/aiwg/ralph-resume

Made for: Claude Code, Codex.

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 ralph-resume

README.md
[![agentmods](https://agentmods.dev/badge/skills/jmagly/aiwg/ralph-resume/github.svg)](https://agentmods.dev/skills/jmagly/aiwg/ralph-resume)
Your own site
<a href="https://agentmods.dev/skills/jmagly/aiwg/ralph-resume"><img src="https://agentmods.dev/badge/skills/jmagly/aiwg/ralph-resume/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 ralph-resume

Your own site · 80×15
<a href="https://agentmods.dev/skills/jmagly/aiwg/ralph-resume"><img src="https://agentmods.dev/badge/skills/jmagly/aiwg/ralph-resume.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,257 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00013 $0.01257
Opus 5 $0.00006 $0.00629
Sonnet 5 $0.00003 $0.00251
Haiku 4.5 $0.00001 $0.00126

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

Security

Grade C, and why

ralph-resume scanned grade C with 1 finding 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 10d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

2. Clean up: rm -rf .aiwg/ralph/ then start new loop
agentic/code/addons/agent-loop/skills/ralph-resume/SKILL.md · 197 lines

How it starts

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

Skill access pattern (post-kernel-pivot, 2026.5+)

Skill names referenced in this document are AIWG skills, not slash commands. Most are not kernel-listed and cannot be invoked as /skill-name by the platform. Reach them via:

aiwg discover "<capability>"
aiwg show skill <name>

Only kernel-listed skills (aiwg-doctor, aiwg-refresh, aiwg-status, aiwg-help, use, steward) are directly invokable as slash commands. See skill-discovery rule.

Al Resume

Resume a paused or interrupted agent loop.

Usage

/ralph-resume                       # Resume with existing settings
/ralph-resume --max-iterations 20   # Resume with higher iteration limit
/ralph-resume --timeout 120         # Resume with longer timeout

Parameters

--max-iterations N

Override the maximum iterations limit. Useful when loop stopped at limit but was making progress.

--timeout M

Override the timeout in minutes. Useful when loop timed out but task is close to completion.

Your Actions

Step 1: Load State

  1. Read .aiwg/ralph/current-loop.json
  2. Verify loop can be resumed (status != 'success', status != 'aborted')
  3. Load iteration history and learnings

If no resumable loop:

No agent loop to resume.

Status: {status}

{If success}: Loop completed successfully. Start a new loop with /ralph
{If aborted}: Loop was aborted. Start fresh with /ralph
{If no state}: No loop found. Start with /ralph "task" --completion "criteria"

Step 2: Update Settings

Apply any parameter overrides:

  • Update maxIterations if --max-iterations provided
  • Update timeoutMinutes if --timeout provided
  • Reset timeout start time for extended timeout

Step 3: Resume Execution

Continue the agent loop pattern:

  1. Display resume status:
Resuming Agent Loop

Task: {task}
Completion: {completion}
Previous iterations: {N}
Remaining iterations: {max - N}

Last result: {lastResult}
Learnings so far: {learnings}

Continuing from iteration {N+1}...

Read the full file on GitHub · 197 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. 10d ago First seen · 197 lines · 13 tokens per session scan C 93241ee2bd60

Subscribe to this mod's changes

ralph-resume is a skill published in the GitHub repository jmagly/aiwg (210 stars, last pushed today), licensed MIT. It adds 13 tokens to every session and 1,257 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.