Ralph mode makes OpenCode automatically send continue whenever the active session goes idle, so the agent keeps looping until you turn it off.
- adds a
/ralphslash command - toggles Ralph mode per session
- auto-sends
continueafter each idle cycle - pauses while OpenCode is blocked on a question or permission prompt
- prefixes the session title with
[Ralph]while the mode is on
plugins/ralph.js- the OpenCode plugincommand/ralph.md- the slash command definition
- Clone this repo somewhere local.
- Copy
command/ralph.mdinto~/.config/opencode/command/ralph.md. - Add the plugin file to your OpenCode config:
{
"plugin": ["file:///absolute/path/to/ralph-opencode/plugins/ralph.js"]
}- Restart OpenCode.
/ralph- toggle Ralph mode/ralph on- enable it/ralph off- disable it/ralph status- show current state
- OpenCode does not currently expose a persistent custom status-bar or sticky toast API to plugins, so the always-visible indicator is the
[Ralph]session title prefix. - Toasts are still used for enable/disable feedback and error reporting.