alethfeld: Command for Claude Code

.claude/commands/cancel-ralph.md

cancel-ralph is a command for Claude Code from tobiasosborne/alethfeld. It costs 0 tokens per session (214 once invoked), scanned A, a copy of cancel-ralph, MIT.

A command that stops an active Ralph Wiggum loop, an automated repeated-work cycle tracked by a local state file.

In plain words
What is it for?
Use it when you want to cancel the loop recorded in .claude/ralph-loop.local.md.
Why use it?
It lets you end the loop cleanly and reports whether one was active and which iteration it had reached.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is tobiasosborne/alethfeld's own configuration. It tells Claude Code how to work on alethfeld itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything alethfeld configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tobiasosborne/alethfeld. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tobiasosborne/alethfeld/legacy/.claude/commands/cancel-ralph.md
Clone the repo
git clone --depth 1 https://github.com/tobiasosborne/alethfeld

Made for: Claude Code.

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 cancel-ralph

README.md
[![agentmods](https://agentmods.dev/badge/commands/tobiasosborne/alethfeld/cancel-ralph/github.svg)](https://agentmods.dev/commands/tobiasosborne/alethfeld/cancel-ralph)
Your own site
<a href="https://agentmods.dev/commands/tobiasosborne/alethfeld/cancel-ralph"><img src="https://agentmods.dev/badge/commands/tobiasosborne/alethfeld/cancel-ralph/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 cancel-ralph

Your own site · 80×15
<a href="https://agentmods.dev/commands/tobiasosborne/alethfeld/cancel-ralph"><img src="https://agentmods.dev/badge/commands/tobiasosborne/alethfeld/cancel-ralph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 214 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 91% copy Near-identical to another mod 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.00000 $0.00214
Opus 5 $0.00000 $0.00107
Sonnet 5 $0.00000 $0.00043
Haiku 4.5 $0.00000 $0.00021

Measured 11d ago against content hash fb3499e387fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

cancel-ralph 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 11d 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.

Origin

This is a copy

91% identical to cancel-ralph — 8 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/cancel-ralph.md · 17 lines

What it actually says

description allowed-tools hide-from-slash-command-tool
Cancel active Ralph Wiggum loop Bash(test -f .claude/ralph-loop.local.md:*) Bash(rm .claude/ralph-loop.local.md) Read(.claude/ralph-loop.local.md) true

Cancel Ralph

To cancel the Ralph loop:

  1. Check if .claude/ralph-loop.local.md exists using Bash: test -f .claude/ralph-loop.local.md && echo "EXISTS" || echo "NOT_FOUND"

  2. If NOT_FOUND: Say "No active Ralph loop found."

  3. If EXISTS:

    • Read .claude/ralph-loop.local.md to get the current iteration number from the iteration: field
    • Remove the file using Bash: rm .claude/ralph-loop.local.md
    • Report: "Cancelled Ralph loop (was at iteration N)" where N is the iteration value
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. 11d ago First seen · 17 lines · 0 tokens per session scan A fb3499e387fc

Subscribe to this mod's changes

cancel-ralph is a command published in the GitHub repository tobiasosborne/alethfeld (144 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 214 tokens. A static security scan graded it A with 0 findings. It is 91% identical to cancel-ralph, differing in 8 lines, and is treated as a copy.