dancingteeth/agent-looper/run-loop-in-opencode

Claude Code and agent skill by dancingteeth/agent-looper

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Install Agent Looper and start a frozen loop from OpenCode with the agent_loop_start tool. Use when the user asks to add the harness, grind, run, or implement a loop from an OpenCode session. Do not foreground-bash the grind.

Install

npx vskill@latest install dancingteeth/agent-looper/run-loop-in-opencode

SKILL.md

The same SKILL.md was published earlier as dancingteeth/agent-looper/run-loop-in-opencode.

Run Agent Looper from OpenCode

This session designs and freezes, then starts the harness. It is not the implementer — that is runtime in loop.json (opencode works: the harness drives its own headless opencode serve).

Install (once per repo)

bash
pnpm add -D @dancingteeth/agent-looper @opencode-ai/sdk
pnpm exec agent-loop-init

Humans pick runtime/models with pnpm exec agent-loop-setup (TUI — do not run it from this session). For an OpenCode Go worker, runtime: opencode with OPENCODE_API_KEY set in the user's environment. Never print or cat auth files.

Start a grind

  1. Confirm the bundle is frozen at .cursor/loops/<name>/ (GOAL.md, verify.sh, loop.json). Load design-loop if it is not.
  2. Call `agent_loop_start` with loopDir (on OpenCode 2.x, through execute: tools.agent_loop_start({ loopDir })). It spawns the grind detached, writes opencode-grind.log + opencode-grind.pid in the loop dir, and returns immediately. Inside execute, only plugin tools like tools.agent_loop_start / tools.agent_loop_status exist; there is no tools.shell, so run commands with the shell tool itself.
  3. Tell the user the PID and log path. Do not busy-poll.
  4. When asked how it is going, call `agent_loop_status`. done: complete / done: NOT complete come from the harness AGENT_LOOP_DONE line.
  5. One grind per loop dir. agent_loop_start refuses while the previous PID is alive.

Keys and launch

The grind inherits the OpenCode server environment, not your shell, so runtime keys (CURSOR_API_KEY, …) are usually missing there. agent_loop_start launches, in order:

  1. the plugin's launchPrefix option, e.g. ["doppler","run","--project","<p>","--config","dev","--"];
  2. the repo's `agent:loop` package script, e.g. "agent:loop": "doppler run --project <p> --config dev -- agent-loop run";
  3. plain agent-loop run.

If the log says a key is missing, the fix is (1) or (2), or starting OpenCode under the secret manager. Retrying will not help. Never print, cat, or export secrets from this session.

Do not run agent-loop run / agent-loop-batch in a foreground shell: it times out long before a grind ends and kills it. A 2.x background: true shell job is allowed; agent_loop_start is still preferred (pid, log, status). --help is fine.

Finish line

Shell verify via @dancingteeth/agent-looper. Do not edit GOAL.md, verify.sh, loop.json, or RESEARCH.md mid-run — the harness restores them.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
3
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/dancingteeth/agent-looper/run-loop-in-opencode/badge)](https://verified-skill.com/skills/dancingteeth/agent-looper/run-loop-in-opencode)

Something wrong with this skill or its page? Tell us.