dancingteeth/agent-looper/run-loop-in-opencode
Claude Code and agent skill by dancingteeth/agent-looper
- community
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-opencodeSKILL.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)
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
- Confirm the bundle is frozen at
.cursor/loops/<name>/(GOAL.md,verify.sh,loop.json). Loaddesign-loopif it is not. - Call `agent_loop_start` with
loopDir(on OpenCode 2.x, throughexecute:tools.agent_loop_start({ loopDir })). It spawns the grind detached, writesopencode-grind.log+opencode-grind.pidin the loop dir, and returns immediately. Insideexecute, only plugin tools liketools.agent_loop_start/tools.agent_loop_statusexist; there is notools.shell, so run commands with the shell tool itself. - Tell the user the PID and log path. Do not busy-poll.
- When asked how it is going, call `agent_loop_status`.
done: complete/done: NOT completecome from the harnessAGENT_LOOP_DONEline. - One grind per loop dir.
agent_loop_startrefuses 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:
- the plugin's
launchPrefixoption, e.g.["doppler","run","--project","<p>","--config","dev","--"]; - the repo's `agent:loop` package script, e.g.
"agent:loop": "doppler run --project <p> --config dev -- agent-loop run"; - 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
- SKILL.md in the repositoryCheckingplugins/opencode-agent-looper/skills/run-loop-in-opencode/SKILL.md
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
[](https://verified-skill.com/skills/dancingteeth/agent-looper/run-loop-in-opencode)