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.01366 |
| Opus 5.5 | $0.00005 | $0.00546 |
| Sonnet 5.5 | $0.00003 | $0.00273 |
| Haiku 4.5 | $0.00001 | $0.00137 |
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 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-nameby the platform. Reach them via:aiwg discover "<capability>" aiwg show skill <name> --bodyOnly kernel-listed skills (
aiwg-doctor,aiwg-refresh,aiwg-status,aiwg-help,use,aiwg-steward-routingon 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
- 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"
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.
- 5d ago Changed b02c5411c20f
- 1mo ago Changed · +9 lines 1552dfa5d0c5
- 1mo ago Changed d349d33a50e8
- 2mo ago Changed 25aa90ffa6a0
- 3mo ago First seen · 197 lines · 13 tokens per session scan C 93241ee2bd60
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.
ralph-resume compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ralph-resumejmagly/aiwg | Skill | 232 | today | MIT | C | 13 | Claude Code, Codex |
| buildersimota/agent-skills | Skill | 106 | 12d ago | MIT | A | 40 | Claude Code, Codex |
| matrixsimota/agent-skills | Skill | 106 | 12d ago | MIT | A | 37 | Claude Code, Codex |
| pixelsimota/agent-skills | Skill | 106 | 12d ago | MIT | A | 40 | Claude Code, Codex |
| scribesimota/agent-skills | Skill | 106 | 12d ago | MIT | A | 52 | Claude Code, Codex |
| tomesimota/agent-skills | Skill | 106 | 12d ago | MIT | A | 50 | Claude Code, Codex |
| cuesimota/agent-skills | Skill | 106 | 12d ago | MIT | A | 46 | Claude Code, Codex |