Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add zacharygcook/agent-skills --skill ralph-loopgit clone --depth 1 https://github.com/zacharygcook/agent-skillsWrote 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/zacharygcook/agent-skills/ralph-loop)<a href="https://agentmods.dev/skills/zacharygcook/agent-skills/ralph-loop"><img src="https://agentmods.dev/badge/skills/zacharygcook/agent-skills/ralph-loop/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/zacharygcook/agent-skills/ralph-loop"><img src="https://agentmods.dev/badge/skills/zacharygcook/agent-skills/ralph-loop.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.00058 | $0.01920 |
| Opus 5.5 | $0.00023 | $0.00768 |
| Sonnet 5.5 | $0.00012 | $0.00384 |
| Haiku 4.5 | $0.00006 | $0.00192 |
Grade A, and why
ralph-loop scanned grade A with 0 findings 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 1mo 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Ralph Loop
Operate an autonomous implementation loop as a resumable state machine, not a one-shot prompt. Preserve negative knowledge, make progress machine-readable, and distinguish completed implementation chunks from completed review/documentation/test hooks.
First-use operator journey
When a user asks how to start, preflight the repository instead of explaining sprint internals first:
- Confirm a Git repository; Bash, Git,
jq, and Python 3; an explicit harness, model, and reasoning choice (or a fully owned custom command); positive sprint and per-chunk turn budgets; an explicit tracked-or-local state choice; a durableSPEC.mdor equivalent; and credible fast chunk plus comprehensive sprint validation commands. - Read repository agent instructions and the spec before choosing commands or planning work.
- Ensure
justis available and install the project recipe import without overwriting an existingjustfile; then initialize or upgrade the deterministic runtime with reviewed choices. - Break the spec into dependency-ordered sprints, create only the first sprint under
.ralph/sprints/, setCURRENT_SPRINT, and validate the complete setup. - Tell the operator what to review and stop before running. Invoking
.ralph/loop.shstarts the autonomous loop; do not add or require a redundant authorization boolean.
Do not ask the operator to hand-build .ralph/ or sprint files. Use $ralph-loop for the complete
lifecycle or ambiguous Ralph requests. Prefer $ralph-sprint, $ralph-status, or $ralph-review
when the requested operation is already clear; all four skills share this runtime and its invariants.
Deterministic runtime
Use the already installed package's scripts/ralph launcher. It owns the versioned runtime templates
and selects Python 3.11+ from either the python3 or python command. Skill installation and updates
remain a separate operator-approved package-management step; the runtime never downloads or executes
replacement instructions.
What ships with it
49 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 253 B
- assets/templates/GOAL.md.template 935 B
- assets/templates/GOALS.md.template 1.2 KB
- assets/templates/monorepo/config.env.template 713 B
- assets/templates/monorepo/format-codex-stream.py 7.3 KB runs code
- assets/templates/monorepo/format-stream.py 4.1 KB runs code
- assets/templates/monorepo/hooks/document.sh.template 1.2 KB
- assets/templates/monorepo/hooks/post-sprint.sh.template 8.9 KB
- assets/templates/monorepo/hooks/review.sh.template 1.4 KB
- assets/templates/monorepo/hooks/test.sh.template 2.1 KB
- assets/templates/monorepo/loop.sh.template 26 KB
- assets/templates/monorepo/prompt.md.template 2.1 KB
- assets/templates/monorepo/prompts/document.md.template 845 B
- assets/templates/monorepo/prompts/review.md.template 1011 B
- assets/templates/monorepo/prompts/test.md.template 438 B
- assets/templates/monorepo/status.sh.template 3.6 KB
- assets/templates/multi-repo/CLAUDE.md.parent.template 1.2 KB
- assets/templates/multi-repo/config.env.template 765 B
- assets/templates/multi-repo/format-codex-stream.py 7.3 KB runs code
- assets/templates/multi-repo/format-stream.py 4.1 KB runs code
- assets/templates/multi-repo/hooks/document.sh.template 1.2 KB
- assets/templates/multi-repo/hooks/post-sprint.sh.template 8.9 KB
- assets/templates/multi-repo/hooks/review.sh.template 1.6 KB
- assets/templates/multi-repo/hooks/test.sh.template 2.1 KB
- assets/templates/multi-repo/loop.sh.template 29 KB
- assets/templates/multi-repo/prompt.md.template 2.4 KB
- assets/templates/multi-repo/prompts/document.md.template 821 B
- assets/templates/multi-repo/prompts/review.md.template 959 B
- assets/templates/multi-repo/prompts/test.md.template 438 B
- assets/templates/multi-repo/status.sh.template 4.0 KB
- assets/templates/shared/format-codex-stream.py 7.3 KB runs code
- assets/templates/shared/format-stream.py 4.1 KB runs code
- assets/templates/shared/pretty-process-snapshots.py 2.4 KB runs code
- assets/templates/shared/ralph-common.sh.template 10 KB
- assets/templates/shared/read-config.py 1.8 KB runs code
- assets/VERSION 6 B
- justfile 48 B
- recipes.just 1.1 KB
- references/chunks.md 550 B
- references/first-run.md 2.4 KB
- references/initialize.md 2.6 KB
- references/review.md 1.8 KB
- references/spec-breakdown.md 514 B
- references/sprint.md 1005 B
- references/status.md 1.0 KB
- scripts/advance_sprint.py 7.5 KB runs code
- scripts/ralph 427 B
- scripts/ralph.py 53 KB runs code
- scripts/test_ralph.py 63 KB runs code
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.
- 1mo ago First seen · 138 lines · 58 tokens per session scan A d1d33e06ce22
ralph-loop is a skill published in the GitHub repository zacharygcook/agent-skills (2 stars, last pushed 3mo ago), licensed MIT. It adds 58 tokens to every session and 1,920 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
git-ai-search
Search and restore AI conversation context from git history.
remember
Save the decisions, facts, dead ends and architecture this conversation established to Atlas's shared memory, so other agents and future sessions can build on them.
ctx
Use ctx as working memory for prior agent work. Before starting or continuing work in an unfamiliar area, resuming earlier work, or revisiting an investigation, search prior sessions to ground yourself in earlier context. Use ctx blame to trace a line, file, commit, or PR to the agent session that produced it. Use…
deja-search
Search deja before re-deriving past work: when the user refers to earlier sessions or decisions, before debugging an error, and before implementing something that may already exist. It searches this machine's own history across every AI coding tool used on it, going back further than deja itself was installed.
deja-history
Search the user's past AI coding sessions. Holds what they already settled and never wrote into the repo (naming rules, banned or already-tried tools, required checks before merge, preferred values, who owns what). Use before your first edit in a task, before you call a change done or ready to merge, before you…
brain-page
Operating manual for reading and writing a project's brain — every read and write goes through the bundled zero-dependency brain CLI; never hand-edit brain files. Read it before creating or modifying any page or root page.