GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE]: Add a Ralph-style loop plugin built on experimental.idle · Issue #61293 · anomalyco/opencode

[FEATURE]: Add a Ralph-style loop plugin built on experimental.idle #61293

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[FEATURE]: Add a Ralph-style loop plugin built on experimental.idle#61293
Copy link

Description

@Gutem
Gutem
opened on Nov 2, 2026
Issue body actions

Describe the enhancement you want to request

Problem

Users who want the Ralph Wiggum technique have to wrap opencode run in an external shell loop. Claude Code implements it as a blocking Stop hook; OpenCode has no on_exit, but experimental.idle already supports the same use case — the built-in /goal plugin uses it as a stop-hook-style loop.

Proposal

Add an official plugin at packages/plugins/ralph-loop built on experimental.idle:

  • /ralph-loop <task> [--completion-promise <text>] [--max-iterations <n>]
  • /cancel-ralph
  • state persisted per session and as a session instruction entry, so compaction does not lose the task
  • waits for the session's own running shell/subagent; that work wakes it again
  • pauses on server restart instead of resuming silently
  • only injects synthetic prompts; it never runs tools or bypasses permissions

No core changes and no new runtime dependency. Local branch with implementation and tests is ready; I am opening this request before the implementation PR, per CONTRIBUTING.

Benefits

  • first-class Ralph loops without external wrappers
  • bounded by --max-iterations
  • safer than a shell loop: provider permissions and session state remain authoritative
  • reuses the mechanism already exercised by /goal

Activity

  1. opencodejr commented on Nov 2, 2026

    @opencodejr
    opencodejrBot
    on Nov 2, 2026
    Contributor
    More actions

    Thanks for the detailed proposal, and for opening a request before the PR, @Gutem!

    To restate it: you'd like an official ralph-loop plugin built on the existing experimental.idle session hook. It would add /ralph-loop <task> [--completion-promise <text>] [--max-iterations <n>] and /cancel-ralph, so the same task keeps running until the completion marker appears or the iteration limit is reached, without an external shell loop. The maintainers will consider it, including whether it should ship as an official plugin or be listed as a community plugin.

    Because it needs no core changes, you can publish it now as a standalone npm package and load it through the plugin list in your config, so people can use it before any decision on including it.

    Related issues:

    • [FEATURE]: Ralph Loop - autonomous task completion without human intervention #9313 and [FEATURE]: Ralph behaviour on demand #9199: earlier requests for Ralph-style loops (closed)
    • [FEATURE]: [V2] experimental.stopping hook (pre-Complete veto with budget) #60461 / feat(session): add experimental.stopping continuation hook #54487: proposed experimental.stopping hook, a different way to keep the agent going before it stops
    • Native Claude Code hooks compatibility (PreToolUse, PostToolUse, Stop) #12472: Claude Code hooks compatibility, including the Stop hook
    • [FEATURE]: /goal: let plugins declare background work in SessionIdle.background #60860: letting plugins declare background work in SessionIdle.background (relevant to waiting on the session's own shells and subagents)
  2. neriousy commented on Nov 12, 2026

    @neriousy
    neriousy
    on Nov 12, 2026
    Member
    More actions

    experimental.idle was built so this can live as a community plugin. We won't ship it as an official one, but feel free to publish it.

  3. neriousy
    closed this as not plannedon Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.