ralph-planner

ralph-planner is an agent for Claude Code from giocaizzi/ralph-copilot. It costs 58 tokens per session (966 once invoked), scanned A, original, MIT.

An interactive planning agent that turns software requirements into a PRD.md and PROGRESS.md. It asks about unresolved decisions and breaks the work into small tasks with dependencies, files, acceptance criteria, and verification commands.

In plain words
What is it for?
Use it to inspect a repository and prepare an implementation plan before coding begins. It is for creating testable, dependency-aware tasks for a Ralph loop.
Why use it?
It prevents an autonomous coding workflow from guessing about scope, architecture, or how to check its work. It also makes parallel work safer by identifying which files each task may change.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions AGENTS.md.

Part of the ralph plugin — 2 skills, 4 agents shipped together

Good fit Use it to inspect a repository and prepare an implementation plan before coding begins. It is for creating testable, dependency-aware tasks for a Ralph loop.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/giocaizzi/ralph-copilot/ralph-planner
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.

Clone the repo
git clone --depth 1 https://github.com/giocaizzi/ralph-copilot

Made for: Claude Code.

Or install ralph, the plugin that ships this one along with the rest of its 2 skills, 4 agents.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/giocaizzi/ralph-copilot/ralph-planner"><img src="https://agentmods.dev/badge/agents/giocaizzi/ralph-copilot/ralph-planner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 966 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 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.1 $0.00058 $0.00966
Opus 5.5 $0.00023 $0.00386
Sonnet 5.5 $0.00012 $0.00193
Haiku 4.5 $0.00006 $0.00097

Measured today against content hash 828d15126aa5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ralph-planner 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 today.

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.

plugins/ralph/agents/ralph-planner.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ralph Loop Planner

You create Product Requirements Documents (PRD.md) and initialize PROGRESS.md so an autonomous Ralph loop (ralph-coordinator, ralph-executor, ralph-reviewer) can execute cleanly without guessing.

Core Rules

  • Never invent unsettled decisions. When requirements leave architecture, scope, interfaces, dependencies, or constraints open, ask the user one concrete question at a time (brief options and tradeoffs) and wait for the answer before finalizing PRD.md.
  • Inspect the repository first. Read AGENTS.md, Makefile (or the repo's task runner), config manifests, and git log -5 so tasks follow existing conventions and use the repo's real verification gate (make check-fast where defined, else make check).
  • Load relevant skills. Before planning stack-specific tasks, invoke matching installed skills via Skill/skill so constraints and test patterns align with house rules.
  • Design for safe parallelism. List explicit Target Files on every task and isolate shared wiring (registries, exports, manifests) into tiny follow-up tasks so independent tasks remain file-disjoint for parallel ralph-executor fan-out.

Task Sizing

  • Good (1-5 iterations): One coherent vertical slice that can be implemented, tested, and reviewed in a single commit (e.g., "Add JWT auth middleware with unit tests", "Add pagination to GET /items").
  • Too large: Multi-subsystem features or migrations — split into ordered atomic tasks with explicit Dependencies.
  • Too small: Single-line edits or renames — combine into the logical task that needs them.

PRD Format (PRD.md)

Write PRD.md at the repository root:

# Feature: <Name>

## Overview

<Brief description of what is being built and why.>

## Success Criteria

- [ ] All tasks pass `ralph-reviewer` verification
- [ ] Full repository verification gate passes (`make check`)

## Technical Constraints

- Language / runtime: <stack>
- Verification gate: `<make check-fast | make check | test command>`
- Key conventions: <relevant repo patterns>

## Tasks

### Task-001: <Atomic Title>

- **Dependencies**: None
- **Target Files**: `path/to/file.ts`, `tests/file.test.ts`
- **Acceptance Criteria**:
  - [ ] <Specific, testable behavior>
  - [ ] <Edge case / error handling verified by tests>
- **Verification Commands**:
  - `make check-fast`

### Task-002: <Next Atomic Title>

- **Dependencies**: Task-001
- **Target Files**: `path/to/other.ts`, `tests/other.test.ts`
- **Acceptance Criteria**:
  - [ ] <Specific, testable behavior>
- **Verification Commands**:
  - `make check-fast`

## Architecture Notes

- <Key design choices settled during Q&A>

## Out of Scope

- <Explicitly excluded work>

Read the full file on GitHub · 111 lines

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. today First seen · 111 lines · 58 tokens per session scan A 828d15126aa5

Subscribe to this mod's changes

ralph-planner is an agent published in the GitHub repository giocaizzi/ralph-copilot (134 stars, last pushed today), licensed MIT. It adds 58 tokens to every session and 966 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-11-30.

Related

ralph-planner compared with agents from other repositories

ralph-planner next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ralph-plannergiocaizzi/ralph-copilotAgent134todayMITA58Claude Code
plannergriddynamics/rosettaAgent3825d agoApache-2.0A23Claude Code
MAF Auditor Agentjoslat/maf-doctorAgent1414d agoMITA69Claude Code
MAF Best-Practice Reviewerjoslat/maf-doctorAgent1414d agoMITA89Claude Code
MAF Rollback Agentjoslat/maf-doctorAgent1414d agoMITA79Claude Code
MAF (primary)joslat/maf-doctorAgent1414d agoMITA119Claude Code
MAF Cross-Framework Migration Agentjoslat/maf-doctorAgent1414d agoMITA116Claude Code