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.
git clone --depth 1 https://github.com/jcarlosrodicio/opencode-agent-orchestration-kitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/jcarlosrodicio/opencode-agent-orchestration-kit/loop)<a href="https://agentmods.dev/commands/jcarlosrodicio/opencode-agent-orchestration-kit/loop"><img src="https://agentmods.dev/badge/commands/jcarlosrodicio/opencode-agent-orchestration-kit/loop/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/jcarlosrodicio/opencode-agent-orchestration-kit/loop"><img src="https://agentmods.dev/badge/commands/jcarlosrodicio/opencode-agent-orchestration-kit/loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00018 | $0.02226 |
| Opus 5.5 | $0.00007 | $0.00890 |
| Sonnet 5.5 | $0.00004 | $0.00445 |
| Haiku 4.5 | $0.00002 | $0.00223 |
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 15d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 211 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Objective or action:
$ARGUMENTS
Run a manual, resumable engineering loop for work with mechanical validation. This command does not schedule recurring runs or turn the task into unattended automation.
Verifiable invariants
approval_gate: explicit_before_writes
max_iterations_per_invocation: 3
planned_iteration_budget: task_specific_1_to_6
hard_safety_ceiling: 6
completion_authority: reviewer_only
canonical_review_policy: code-review-and-quality/references/review-policy.md
final_review_authority: reviewer
canonical_state_path: .opencode/loops/<slug>.json
history_path: .opencode/loops/<slug>.history.jsonl
lock_path: .opencode/loops/<slug>.lock
human_view_path: .opencode/loops/<slug>.md
worktree_mode: explicit_opt_in
state_runtime: ${OPENCODE_CONFIG_DIR:-${XDG_CONFIG_HOME:-$HOME/.config}/opencode}/scripts/loop-state.mjs
state_runtime_missing: stop_and_report
State runtime
The state writer is the kit's own loop-state.mjs, installed in the OpenCode
config directory, not in the project. Every loop-state.mjs subcommand in this
command (inspect, init, resume, record, repair, migrate, release)
runs as node "${OPENCODE_CONFIG_DIR:-${XDG_CONFIG_HOME:-$HOME/.config}/opencode}/scripts/loop-state.mjs" <subcommand>
from the project root. A project-local scripts/loop-state.mjs is never used.
If that file does not exist, stop and report the missing path. Never create,
copy, or hand-write a state writer, and never write .opencode/loops/ files
directly.
The three-iteration value limits one invocation. The persisted
planned_iteration_budget (planned_iterations in canonical state) is the total budget for the mission and may not
exceed the hard ceiling of six; current_iteration may never exceed that
budget. Once the total budget is exhausted, the loop must stop as blocked or
completed rather than injecting another continuation.
The durable handoff_packet (.opencode/handoffs/<slug>.md with
approval_status) persists human approval to survive session restarts. /loop
keeps .opencode/loops/<slug>.json as canonical state,
.opencode/loops/<slug>.history.jsonl as append-only history, and
.opencode/loops/<slug>.md as the human view. See
docs/ai/harness/agents.md section "Durable /loop state".
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.
- 15d ago Changed · +14 lines 39804128ca68
- 3mo ago First seen · 197 lines · 18 tokens per session scan A 658651f40738
loop is a command published in the GitHub repository jcarlosrodicio/opencode-agent-orchestration-kit (166 stars, last pushed yesterday), licensed Apache-2.0. It adds 18 tokens to every session and 2,226 once invoked, about $0.0001 per session on Opus 5.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.
loop compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| loopjcarlosrodicio/opencode-agent-orchestration-kit | Command | 166 | yesterday | Apache-2.0 | A | 18 | Claude Code |
| monitoring:agentsmonoes/monomind | Command | 23 | 2d ago | Apache-2.0 | A | 27 | Claude Code |
| team-uistriderZA/OpenCodeGameStudios | Command | 133 | 20d ago | MIT | A | 11 | Claude Code |
| fastapimfmezger/ai_agent_dotfiles | Command | 7 | 4mo ago | MIT | A | 84 | Claude Code, Gemini CLI |
| p5-impl-greenjonase47/ccpr | Command | 1 | 2mo ago | MIT | A | 0 | Claude Code |
| banking-detectgonzalezpazmonica/savia | Command | 52 | yesterday | MIT | A | 24 | Claude Code |
| playground-createlunchpaillola/lola-opencode | Command | 22 | 2mo ago | none | A | 9 | Claude Code |