ralph-resume

ralph-resume is a skill for Claude Code, Codex from jmagly/aiwg. It costs 13 tokens per session (1,366 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; mentions Claude Code.

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`, `aiwg-steward-routing` on Claude Code) are directly invokable as sl.

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,366 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.01366
Opus 5.5 $0.00005 $0.00546
Sonnet 5.5 $0.00003 $0.00273
Haiku 4.5 $0.00001 $0.00137

Measured 5d ago against content hash b02c5411c20f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 5d 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 · 206 lines

How it starts

The opening of the file, as written. The whole thing — 206 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> --body

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

Al Resume

Resume a paused or interrupted agent loop.

HITL authorization checkpoints

Before any confirmation below, read and apply agent-loop authorization checkpoints. Call aiwg config authorization check --action-file "$ACTION_FILE" --target "$TARGET_REPO" for host-classified effects. Only auto-authorized with a signed receipt skips that workflow prompt; retain existing prompts/refusals otherwise. Platform prompts are never bypassed. Limits, regression and threat overrides still require review.

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"

Read the full file on GitHub · 206 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. 5d ago Changed b02c5411c20f
  2. 1mo ago Changed · +9 lines 1552dfa5d0c5
  3. 1mo ago Changed d349d33a50e8
  4. 2mo ago Changed 25aa90ffa6a0
  5. 3mo 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 (232 stars, last pushed today), licensed MIT. It adds 13 tokens to every session and 1,366 once invoked, about $0.0001 per session on Opus 5.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.

Related

ralph-resume compared with skills from other repositories

ralph-resume next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ralph-resumejmagly/aiwgSkill232todayMITC13Claude Code, Codex
buildersimota/agent-skillsSkill10612d agoMITA40Claude Code, Codex
matrixsimota/agent-skillsSkill10612d agoMITA37Claude Code, Codex
pixelsimota/agent-skillsSkill10612d agoMITA40Claude Code, Codex
scribesimota/agent-skillsSkill10612d agoMITA52Claude Code, Codex
tomesimota/agent-skillsSkill10612d agoMITA50Claude Code, Codex
cuesimota/agent-skillsSkill10612d agoMITA46Claude Code, Codex