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.
git clone --depth 1 https://github.com/jmagly/aiwgnpx agentmods add skills/jmagly/aiwg/ralph-resumeWrote 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.
[](https://agentmods.dev/skills/jmagly/aiwg/ralph-resume)<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.
<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>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.
| Model | Per session | Once 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 |
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 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-nameby 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
- Read
.aiwg/ralph/current-loop.json - Verify loop can be resumed (status != 'success', status != 'aborted')
- 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
maxIterationsif --max-iterations provided - Update
timeoutMinutesif --timeout provided - Reset timeout start time for extended timeout
Step 3: Resume Execution
Continue the agent loop pattern:
- 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}...
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.
- 10d ago First seen · 197 lines · 13 tokens per session scan C 93241ee2bd60
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.
Other skills, from other repositories
surge
Use when a user provides a PRD, spec, or detailed requirements document and needs a full project delivered through iterative expert orchestration — multi-round analyze/research/design/implement/QA cycles with convergence detection. NOT for: single-file edits, quick prototypes, simple Q&A, or tasks without a written…
goal-writer
Drafts a goal+rider document pair that briefs an autonomous coding agent on one round of work — a goal file under 4,000 characters (sized to fit the /goal command in both Claude Code and Codex) plus an unbounded rider with phased plans and named depth tests. Use when the user says "draft a goal", "write a goal+rider"…
horizon
Run a durable Horizon workflow for a multi-feature goal with bounded autonomous retries and an audit trail.
check-in
Record a Parallax protocol checkpoint with concrete evidence before gated implementation work.
hyperplan
Harden a non-trivial plan through a three-round adversarial critique and evidence-based synthesis.
status
Report the current Claude session's Parallax gate, retries, verification, and trace status.