Skip to content
Back to skills

Stateful Ralph

ASecurity

Repeats the same task every round in one persistent worker session that remembers earlier rounds. Run with /baton:stateful-ralph "<task>".

  • 3 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added October 26, 2026
ai-agents

Security analysis

A100/100

Scanned October 26, 2026

npx -y skills add cornch-k/baton --skill stateful-ralph --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Stateful Ralph?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Stateful Ralph
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cornch-k-stateful-ralph/badge)](https://www.skillsdirectory.com/skills/cornch-k-stateful-ralph)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: stateful-ralph
description: Repeats the same task every round in one persistent worker session that remembers earlier rounds. Run with /baton:stateful-ralph "<task>".
argument-hint: "\"<task>\" [--turns N] [--minutes M] [--check \"cmd\"] [--no-early-stop] [--in-place] [--resume [run-id]]"
disable-model-invocation: true
---

# stateful-ralph

Arguments: $ARGUMENTS

Load the run protocol first (Skill tool → `baton:protocol`; if that fails, Read `${CLAUDE_PLUGIN_ROOT}/skills/protocol/SKILL.md`) and follow it. This file only adds what is specific to stateful-ralph.

## Idea

Like ralph-loop, but the worker keeps its session, so it remembers what it tried. It's faster on tasks where earlier reasoning matters, at the cost of the worker's context filling up and drifting.

## Roles

| Role | subagent_type | Model | Session |
|---|---|---|---|
| worker | `baton:worker` | worker model | persistent, named `<run-id>-worker` |

## Turn prompts

Round 1 (Agent call with `name`):

```
BATON stateful-ralph · turn 1/<max> · role worker · run <run-id>

TASK:
<task, verbatim>

You keep this session across rounds. Each round you will get the same TASK again. Make the most valuable progress you can this round and report.
```

Round n > 1 (SendMessage to `<run-id>-worker`):

```
BATON stateful-ralph · turn <n>/<max> · role worker · run <run-id>

Round <n>. Same TASK:
<task, verbatim>

Continue from where you are. Check what is still missing before you add anything.
```

Fallback: if the worker can't be reached, play the worker yourself in this session for the remaining rounds and say so in the log.

## Stop

- The budget is used up, or a turn fails (protocol).
- Early stop, unless `--no-early-stop`: the `streak:` line shows `done x2` or more and `empty x1` or more.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.