AGENTS.md
Overview and commands for the Ralph repository: how to run ralph.sh with Amp or Claude Code, and which files matter.
- Kind
- Rules
- Works with
- Any agent
- Languages
- Shell
- Source
- Ralph @ 6c53cb0b831e
- Path
- AGENTS.md
- Jobs
- Documentation, Context management
- Topics
- Context & memory, Git & pull requests
Credit
- Made by
- snarktank
- Original
- github.com/snarktank/ralph/blob/6c53cb0b831ebe8739c6a003e22af…
- License
- MIT
Listed by Skill Manifest; not made by us.
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
- Adds
- Text to merge into your CLAUDE.md or AGENTS.md (no new files)
- Runs scripts
- Yes
- ralph.sh
- shell block in the text
- Uses the network
- Yes
- downloads npm packages
- Needs secrets
- None found
- Source revision
- 6c53cb0b831e
- Licence
- MIT
- Last activity
- 2 Feb 2026
- Review
- Reviewed
Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.
# Ralph Agent Instructions ## Overview Ralph is an autonomous AI agent loop that runs AI coding tools (Amp or Claude Code) repeatedly until all PRD items are complete. Each iteration is a fresh instance with clean context. ## Commands ```bash # Run the flowchart dev server cd flowchart && npm run dev # Build the flowchart cd flowchart && npm run build # Run Ralph with Amp (default) ./ralph.sh [max_iterations] # Run Ralph with Claude Code ./ralph.sh --tool claude [max_iterations] ``` ## Key Files - `ralph.sh` - The bash loop that spawns fresh AI instances (supports `--tool amp` or `--tool claude`) - `prompt.md` - Instructions given to each AMP instance - `CLAUDE.md` - Instructions given to each Claude Code instance - `prd.json.example` - Example PRD format - `flowchart/` - Interactive React Flow diagram explaining how Ralph works ## Flowchart The `flowchart/` directory contains an interactive visualization built with React Flow. It's designed for presentations - click through to reveal each step with animations. To run locally: ```bash cd flowchart npm install npm run dev ``` ## Patterns …