loop

A command that repeats a coding task until a limit or completion condition is reached. You can describe the task and, optionally, how many attempts or what result should end the loop.

In plain words
What is it for?
Use it for tasks such as fixing a bug, building an API, or improving a user interface until a stated condition is met.
Why use it?
It keeps work going across repeated attempts instead of stopping after one response.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/imgompanda/fireauto/loop
Clone the repo
git clone --depth 1 https://github.com/imgompanda/fireauto
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 589 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00023 $0.00589
Opus 5 $0.00012 $0.00295
Sonnet 5 $0.00005 $0.00118
Haiku 4.5 $0.00002 $0.00059

Measured yesterday against content hash 77a3e2f97961, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/commands/loop.md · 48 lines

What it actually says

fireauto loop

사용자가 자연어로 작성한 요청에서 루프 설정을 추출하세요.

1단계: 자연어 파싱

사용자의 $ARGUMENTS를 분석해서 3가지를 추출하세요:

  • 할 일 (필수): 실제 작업 내용
  • 최대 반복 횟수: 숫자가 있으면 추출, 없으면 0 (무제한)
  • 완료 조건: 완료/목표/조건에 해당하는 부분, 없으면 null

파싱 예시

입력 할 일 최대 횟수 완료 조건
"최대 20번 반복해서 TODO API 만들어줘 테스트 통과하면 끝" TODO API 만들어줘 20 테스트 통과
"인증 버그 고쳐줘 10번까지" 인증 버그 고쳐줘 10 null
"캐시 레이어 리팩토링" 캐시 레이어 리팩토링 0 null
"5번 반복하면서 UI 개선해줘 목표는 반응형 완성" UI 개선해줘 5 반응형 완성

기존 형식(--max-iterations 20 --completion-promise '조건')도 호환해야 합니다.

2단계: 셋업 스크립트 실행

추출한 값으로 셋업 스크립트를 실행하세요:

"${CLAUDE_PLUGIN_ROOT}/scripts/setup-loop.sh" {할 일} --max-iterations {횟수} --completion-promise '{완료 조건}'
  • 최대 횟수가 0이면 --max-iterations 생략
  • 완료 조건이 null이면 --completion-promise 생략

3단계: 작업 시작

이제 작업을 시작하세요. 작업을 끝내고 나가려고 하면, 같은 프롬프트가 다시 들어와요. 이전 작업 결과는 파일과 git 히스토리에 남아있으니, 매번 더 나은 결과를 만들 수 있어요.

중요 규칙: completion-promise가 설정되어 있으면, 그 조건이 진짜로 완전히 달성되었을 때만 <promise>완료조건</promise>을 출력하세요. 루프를 탈출하기 위해 거짓말하지 마세요.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 48 lines · 23 tokens per session scan A 77a3e2f97961

Subscribe to this mod's changes

loop is a command published in the GitHub repository imgompanda/fireauto (140 stars, last pushed 4mo ago), licensed MIT. It adds 23 tokens to every session and 589 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.