ralph-status

ralph-status is a command for Claude Code from Peaky8linders/claude-cortex. It costs 26 tokens per session (362 once invoked), scanned B, original, MIT.

A read-only command that displays the current Ralph Wiggum loop state, including its task, iteration count, quality score, elapsed time, commits, and changed files.

In plain words
What is it for?
Use it to monitor an active loop and see its scope, health indicators, and work completed.
Why use it?
It shows whether an autonomous loop is active and how it is progressing without changing the loop.

Command for Claude Code

Part of the cortex plugin — 1 skill, 15 commands, 3 agents, 5 hooks, 2 MCP servers shipped together

Install

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.

agentmods
npx agentmods add commands/peaky8linders/claude-cortex/ralph-status
Clone the repo
git clone --depth 1 https://github.com/Peaky8linders/claude-cortex

Made for: Claude Code.

Or install cortex, the plugin that ships this one along with the rest of its 1 skill, 15 commands, 3 agents, 5 hooks, 2 MCP servers.

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-status

README.md
[![agentmods](https://agentmods.dev/badge/commands/peaky8linders/claude-cortex/ralph-status.svg)](https://agentmods.dev/commands/peaky8linders/claude-cortex/ralph-status)
Your own site
<a href="https://agentmods.dev/commands/peaky8linders/claude-cortex/ralph-status"><img src="https://agentmods.dev/badge/commands/peaky8linders/claude-cortex/ralph-status.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 362 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
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 $0.00026 $0.00362
Opus 5 $0.00013 $0.00181
Sonnet 5 $0.00005 $0.00072
Haiku 4.5 $0.00003 $0.00036

Measured 4d ago against content hash b84cafe23781, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

ralph-status scanned grade B 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 4d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat ~/.claude/knowledge/.ralph-active 2>/dev/null
.claude/commands/ralph-status.md · 49 lines

What it actually says

/ralph-status — Monitor Autonomous Loop

Show the current state of an active Ralph Wiggum loop without modifying it.

Protocol

Step 1: Check Loop State

cat ~/.claude/knowledge/.ralph-active 2>/dev/null

If no loop file exists, report: "No active Ralph loop." and stop.

If loop is active, extract from .ralph-active:

  • prompt: The task being worked on
  • iteration: Current iteration number
  • max_iterations: Maximum allowed
  • scope: Directory boundary (if any)
  • started_at: When the loop was activated

Display Dashboard

+------------------------------------------+
|         RALPH LOOP STATUS                |
+------------------------------------------+
| Task:       {prompt}                     |
| Scope:      {scope or "entire project"}  |
| Iteration:  {iteration}/{max_iterations} |
| Quality:    {score}/100                  |
| Started:    {started_at}                 |
| Elapsed:    {duration}                   |
| Commits:    {commit_count} since start   |
| Files:      {files_changed} modified     |
+------------------------------------------+

Health Assessment

  • Healthy: Quality >= 50, no errors, steady commits
  • Warning: Quality 40-50, or errors present, or no commits in last iteration
  • Critical: Quality < 40 (will halt on next iteration)

Do NOT modify any files. This is read-only.

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. 4d ago First seen · 49 lines · 26 tokens per session scan B b84cafe23781

Subscribe to this mod's changes

ralph-status is a command published in the GitHub repository Peaky8linders/claude-cortex (11 stars, last pushed 2mo ago), licensed MIT. It adds 26 tokens to every session and 362 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.