kairo-loop

A command that runs a selected range of Kairo tasks in order from start to finish. It includes quality checks, returning to earlier steps when needed, and debugging after all tasks are complete.

In plain words
What is it for?
Use it to execute Kairo tasks between a specified starting and ending task ID, record their order and dependencies, handle quality-check returns, and run automatic debugging at the end.
Why use it?
It automates a multi-task implementation process and keeps the required follow-up work in the task list. This reduces the need to manually track dependencies, corrections, and final checks.

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/classmethod/tsumiki/kairo-loop
Clone the repo
git clone --depth 1 https://github.com/classmethod/tsumiki
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 519 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.00046 $0.00519
Opus 5 $0.00023 $0.00260
Sonnet 5 $0.00009 $0.00104
Haiku 4.5 $0.00005 $0.00052

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

Security

Grade A, and why

kairo-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.

legacy/commands/kairo-loop.md · 25 lines

What it actually says

  • $1 がない場合、「引数に要件名・開始TASK-ID・終了TASK-IDを指定してください(例: /kairo-loop ユーザー認証システム TASK-00001 TASK-00005)」と言って終了する
  • $2 がない場合、「引数に開始TASK-IDを指定してください(例: TASK-00001)」と言って終了する
  • $3 がない場合、「引数に終了TASK-IDを指定してください(例: TASK-00005)」と言って終了する

$0 の $1 から順番に実行してください。 $2 まで完了したら一旦終了して。 以下の作業を実施してください

  • /tsumiki-legacy:kairo-implement を理解して、skillの内容に正確に従ってください
  • 実施する内容を全てtodoに詳細に記録してください。
  • 品質確認の段階で戻る処理をするときは以下の手順を組み込んでください
    • 品質の確認処理
    • 戻り先決定ルールを品質確認後の戻る処理内に含めてください
    • 戻り先からのステップをそれぞれtodoに追加(例:step-e追加の場合は、step-e,step-f,step-g,品質確認を追加する)
    • 追加したtodoの依存関係を設定
    • 戻り先として追加したtaskに遷移する
  • 最後のチェックボックスを入れる作業も含めて忘れずにtodoに追加してください
  • todoには必ず依存関係を設定してください
  • todoに記録が終わったら順番に実施してください
  • 全ての TASK の完了が終わったら /tsumiki:auto-debug を実行する
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 · 25 lines · 46 tokens per session scan A 56d3b7168a71

Subscribe to this mod's changes

kairo-loop is a command published in the GitHub repository classmethod/tsumiki (974 stars, last pushed 25d ago), licensed MIT. It adds 46 tokens to every session and 519 once invoked, about $0.0002 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.