prevalentWare

Opencode Loop Plugin — AI skill for Claude Code

AI community

OpenCode loop plugin for Claude Code-style /loop recurring prompts, idle-aware scheduling, dynamic pacing, and AI coding agent automation.

How to install Opencode Loop Plugin

This entry records only its repository, not the path inside it, so there is no exact command to give. Open prevalentWare/opencode-loop-plugin and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Opencode Loop Plugin does

OpenCode loop plugin for Claude Code-style /loop recurring prompts, idle-aware scheduling, dynamic pacing, and AI coding agent automation.

Alternatives in AI

  • Claudexor — Multi-harness control plane for Claude Code, Codex, Cursor, and OpenCode: quota-aware rotation across multiple 425 ★
  • MioIsland — macOS Dynamic Island for AI coding agents 388 ★
  • Review Video — Review a rendered video with AI vision 113 ★

README

OpenCode Loop Plugin

[![npm version](https://img.shields.io/npm/v/@prevalentware/opencode-loop-plugin.svg)](https://www.npmjs.com/package/@prevalentware/opencode-loop-plugin) [![GitHub repository](https://img.shields.io/badge/GitHub-prevalentWare%2Fopencode--loop--plugin-blue?logo=github)](https://github.com/prevalentWare/opencode-loop-plugin) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)

OpenCode Loop Plugin adds Claude Code-style `/loop` recurring prompts to OpenCode. It gives AI coding agents a `/loop` slash command backed by a persistent scheduler that re-injects an instruction into the session on an interval — or at agent-chosen delays — but only while the session is idle. Use it to babysit CI, watch a deploy, poll PR reviews, triage new issues, or keep any external state under watch without driving every check yourself.

`/loop` is the complement to goal mode ([`@prevalentware/opencode-goal-plugin`](https://github.com/prevalentWare/opencode-goal-plugin)): a goal defines when a task is *done*; a loop defines when to *wake the agent up again* to look at something that changes over time.

The OpenCode Loop Plugin adds:

  • /loop and /loop (dynamic pacing) as an OpenCode command for TUI, desktop, and web.
  • A server-side scheduler with per-loop timers that injects a synthetic iteration prompt only when the session is idle, with busy backoff.
  • Dynamic loops where the agent itself picks the delay before each next iteration via schedule_next_run, mirroring Claude Code's self-paced /loop.
  • Keep-alive loops: create_loop({ keep_alive: true }) keeps a background or subagent session scheduled across turns and exempts it from age expiry.
  • Agent tools: create_loop, list_loops, stop_loop, pause_loop, resume_loop, run_loop, schedule_next_run, and clear_loops.
  • Persistent loop state that survives OpenCode restarts, with atomic writes and owner-only file permissions.
  • A TU