Skip to content
Agentmart
Submit a tool

iterate-until-done

Set up a bounded iterate-until-done run with the loop plugin's /loop command.

Skill by codewhale-hq

IndexedMIT★ 5
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/codewhale-hq-iterate-until-done

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Set up a bounded iterate-until-done run with the loop plugin's /loop command. Use when the user wants the same task retried or refined across several replies until a check passes, such as "keep going until the tests pass" or "do this up to 5 times".

Use cases: productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/iterate-until-done

What's inside

Skill name
iterate-until-done
Description
Set up a bounded iterate-until-done run with the loop plugin's /loop command. Use when the user wants the same task retried or refined across several replies until a check passes, such as "keep going until the tests pass" or "do this up to 5 times".
License
MIT
Instructions
48 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Iterate until done

The loop plugin re-prompts this session after every finished reply, up to a hard
limit, until a completion phrase appears or the user cancels. You cannot start
it yourself: only the user's own `/loop` command can, so tell them the exact
command to run.

```text
/loop <prompt> [--max N] [--until <phrase>]
/loop-status
/cancel-loop
```

- `--max N` is the most iterations to run, 1 to 50, default 10. Pick the smallest number that fits the task.
- `--until <phrase>` ends the loop early when the final line of a reply is exactly that phrase. Quote it if it has spaces.
- Flags go at the end of the command so the prompt is not misread.

## Writing the prompt

The same prompt is used on every iteration, and each iteration sees the files the previous ones changed. So:

- State a check the loop can verify itself, such as "until `npm test` exits 0", and pair it with `--until`.
- Say what to do each round: inspect the current state, make one concrete improvement, verify it.
- Keep the scope small enough that a few iterations can finish it.

Example for the user to run:

```text
/loop Make `npm test` pass. Each round: run it, fix the first failure, run it again. --max 8 --until ALL_GREEN
```

## When you are inside an iteration

A message that starts with `[loop <id> #n/max]` is one iteration of a running loop.

- Continue from the work already in the workspace; do not restart.
- Make progress, then end your reply. The next iteration starts by itself.
- Write the completion phrase as the last line only when the task is truly done and verified. Never quote it, plan it or mention it otherwise, because the loop stops the moment it appears on its own line.
- If you are blocked and need the user, say so plainly and make no further changes.
- Never type `<<loop-...>>` markers; they are internal.

## Limits to mention

- It needs `[control_socket] enabled = true` in Codewhale's config; without it `/loop` refuses to start and says so.
- It does not run alongside an active `/goal`.
- State is in `.codewhale/loop/state.json` in the workspace; `/loop-status` summarizes it. A message that starts with `[loop notice]` is a status or error for you to relay in a sentence; do no other work.

From codewhale-hq/codewhale-plugin-marketplace, MIT.

More from codewhale-hq/codewhale-plugin-marketplace

Signals

Stars
5
Forks
2
Open issues
0
Last commit (this folder)
Oct 5, 2026 (23 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from codewhale-hq

Cite this page

iterate-until-done skill. Agent Mart. https://agentmart.dev/skills/codewhale-hq-iterate-until-done (last updated 2026-10-24)