
Security News
PolinRider: North Korea-Linked Supply Chain Campaign Expands Across Open Source Ecosystems
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.
opencode-ralph-loop
Advanced tools
Minimal Ralph Loop plugin for opencode - auto-continues until task completion
Minimal Ralph Loop plugin for opencode - auto-continues until task completion.
Inspired by Anthropic's Ralph Wiggum technique for iterative, self-referential AI development loops.
oh-my-opencode is a fantastic, feature-rich plugin that includes Ralph Loop along with many other powerful capabilities like the Sisyphus orchestrator, background agents, and more.
However, we personally found the full suite a bit heavy for our workflow. We also noticed others in the community expressing interest in specific features without needing the complete package. So we extracted just the Ralph Loop functionality into this standalone, lightweight plugin.
If you want the full-featured experience, definitely check out oh-my-opencode. If you just want auto-continuation loops with minimal overhead, this plugin is for you.
Add to your ~/.config/opencode/opencode.json:
{
"plugin": ["opencode-ralph-loop"]
}
Restart opencode. That's it!
On first run, the plugin will automatically install skills and commands to your ~/.config/opencode/ directory.
/ralph-loop "Build a REST API with authentication"
The AI will work on your task and automatically continue until completion.
/cancel-ralph
/help
/ralph-loop creates a state file at .opencode/ralph-loop.local.md<promise>DONE</promise> was outputWhen the AI finishes a task, it outputs:
<promise>DONE</promise>
Important: The AI should ONLY output this when the task is COMPLETELY and VERIFIABLY finished. False promises are not allowed.
The loop state is stored in your project directory:
.opencode/ralph-loop.local.md
Format (markdown with YAML frontmatter):
---
active: true
iteration: 3
maxIterations: 100
sessionId: ses_abc123
---
Your original task prompt
Add .opencode/ralph-loop.local.md to your .gitignore.
.opencode/, not global/ralph-loop, /cancel-ralph, and /helpFollowing Anthropic's Claude Code plugin pattern:
opencode-ralph-loop/
├── src/
│ └── index.ts # Main plugin with event hooks and tools
├── skills/
│ ├── ralph-loop/ # Progressive context for starting loops
│ ├── cancel-ralph/ # Context for cancellation
│ └── help/ # Plugin documentation
├── commands/
│ ├── ralph-loop.md # Slash command for starting
│ ├── cancel-ralph.md # Slash command for cancelling
│ └── help.md # Slash command for help
└── package.json
PRs welcome. See CONTRIBUTING.md.
Auto-published from CI with npm provenance via OIDC trusted publishing — each tarball is cryptographically linked to the exact commit, no long-lived tokens involved.
MIT
FAQs
Minimal Ralph Loop plugin for opencode - auto-continues until task completion
The npm package opencode-ralph-loop receives a total of 287 weekly downloads. As such, opencode-ralph-loop popularity was classified as not popular.
We found that opencode-ralph-loop demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.