Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Lay4Uv2.0.1MITIn 1 marketplace
Autonomous agent loop for Claude Code that never stops until the task is complete. Features Stop hook (blocks exit), PreCompact hook (saves state), SessionStart hook (auto-resume), and safety features (circuit breaker, rate limiter).
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
ralph, loop, autonomous, persistent, agent, claude-code, plugin
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
An autonomous agent loop for Claude Code that never stops until the task is complete.
Based on the Ralph Technique by Geoffrey Huntley, integrated as a Claude Code plugin.
| Problem | Solution |
|---|---|
| Claude stops after auto-compact | PreCompact hook saves state, SessionStart auto-resumes |
| Session ends unexpectedly | Stop hook blocks exit with decision: block |
| Manual restart needed | SessionStart hook injects context automatically |
| Context loss | Progress saved to experiments.md |
RALPH_STATUS blocks and detects completion signals# Add the marketplace
/plugin marketplace add Lay4U/persistent-ralph
# Install the plugin
/plugin install persistent-ralph@persistent-ralph
Note: Claude Code uses SSH to clone plugins. You need SSH keys configured with GitHub. See SSH Key Setup below if you get "Permission denied (publickey)" error.
--plugin-dir flag (No SSH required)# Clone the repository
git clone https://github.com/Lay4U/persistent-ralph.git
# Run Claude Code with the plugin
claude --plugin-dir /path/to/persistent-ralph/plugins/persistent-ralph
choco install jq on Windows, brew install jq on macOS)Claude Code requires SSH authentication to install plugins from GitHub (related issue).
# 1. Generate SSH key (skip if you already have one)
ssh-keygen -t ed25519 -C "[email protected]"
# 2. Copy your public key
cat ~/.ssh/id_ed25519.pub
ssh -T [email protected]
# Should show: "Hi username! You've successfully authenticated..."
# Start a Ralph loop
/persistent-ralph:ralph-loop "Implement user authentication" --max-iterations 50
# With completion promise (loop exits when promise is fulfilled)
/persistent-ralph:ralph-loop "Fix all bugs" --completion-promise "All tests passing"
| Command | Description |
|---|---|
/persistent-ralph:ralph-loop | Start the autonomous loop |
/persistent-ralph:cancel-ralph | Cancel the active loop |
/persistent-ralph:setup | Initialize project structure |
/persistent-ralph:import | Import PRD as specs |
/persistent-ralph:help | Show help |
Claude reports status at the end of each iteration:
---RALPH_STATUS---
STATUS: IN_PROGRESS | COMPLETE | BLOCKED
TASKS_COMPLETED_THIS_LOOP: 3
FILES_MODIFIED: 5
TESTS_STATUS: PASSING | FAILING | NOT_RUN
WORK_TYPE: IMPLEMENTATION | TESTING | DOCUMENTATION | REFACTORING
EXIT_SIGNAL: false | true
RECOMMENDATION: Next step summary
---END_RALPH_STATUS---
The loop exits when:
EXIT_SIGNAL: true is reported (all tasks complete)<promise>All tests passing</promise>)/persistent-ralph:cancel-ralphpersistent-ralph/
├── .claude-plugin/
│ └── plugin.json # Plugin metadata
├── hooks/
│ ├── hooks.json # Hook definitions
│ ├── stop-hook.sh # Blocks session exit
│ ├── pre-compact.sh # Saves state before compact
│ ├── auto-resume.sh # Resumes on session start
│ ├── prompt-replace.sh # Replaces empty prompts
│ ├── lib/ # Utility libraries
│ │ ├── utils.sh
│ │ ├── circuit-breaker.sh
│ │ ├── rate-limiter.sh
│ │ ├── session-manager.sh
│ │ ├── response-analyzer.sh
│ │ └── status-generator.sh
│ └── run-*.cmd # Windows wrappers
├── commands/
│ ├── ralph-loop.md # Start loop command
│ ├── cancel-ralph.md # Cancel loop command
│ ├── setup.md # Project setup
│ ├── import.md # Import PRD
│ └── help.md # Help documentation
└── templates/
├── PROMPT.md # Project prompt template
├── fix_plan.md # Task list template
└── AGENT.md # Build instructions template
npx claudepluginhub lay4u/persistent-ralph --plugin persistent-ralphBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground