coco-loop

coco-loop is a skill for Claude Code, Codex from coco-research/coco. It costs 99 tokens per session (1,386 once invoked), scanned A, original, Apache-2.0.

A skill that runs a bounded autonomous work loop from a plain-language goal. It proposes fixes during the loop but does not commit changes on its own.

In plain words
What is it for?
Use it to keep a build passing, work on a defined coding task for several hours, or repeatedly suggest improvements within agreed limits.
Why use it?
It lets an agent keep working toward a goal for a set period while retaining human control over saved changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to keep a build passing, work on a defined coding task for several hours, or repeatedly suggest improvements within agreed limits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/coco-research/coco/coco-loop
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.

Any agent
npx skills add coco-research/coco --skill coco-loop
Clone the repo
git clone --depth 1 https://github.com/coco-research/coco

Made for: Claude Code, Codex.

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

agentmods badge for coco-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/coco-research/coco/coco-loop/github.svg)](https://agentmods.dev/skills/coco-research/coco/coco-loop)
Your own site
<a href="https://agentmods.dev/skills/coco-research/coco/coco-loop"><img src="https://agentmods.dev/badge/skills/coco-research/coco/coco-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.

agentmods 80×15 button for coco-loop

Your own site · 80×15
<a href="https://agentmods.dev/skills/coco-research/coco/coco-loop"><img src="https://agentmods.dev/badge/skills/coco-research/coco/coco-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,386 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00099 $0.01386
Opus 5.5 $0.00040 $0.00554
Sonnet 5.5 $0.00020 $0.00277
Haiku 4.5 $0.00010 $0.00139

Measured 3mo ago against content hash d2ec628799e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

coco-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 3mo 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.

skills/coco-loop/SKILL.md · 151 lines

How it starts

The opening of the file, as written. The whole thing — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.

coco-loop

Turn a plain-language goal into a governed, propose-only loop. You compile the goal into a charter, the person confirms it, and the loop runs under the coco-loops framework: it proposes changes, a separate verifier judges them, and nothing is committed. The loop stops itself when its lifetime cap of active work is spent.

The framework enforces an immutable constitution underneath every charter. You cannot write a charter that disables the verifier, commits without approval, edits the constitution, sends content to raw public-cloud endpoints, or runs unattended destructive operations. The coco-loops charter command rejects any charter that tries. Do not attempt to work around it. Present the floor to the person as a feature.

Prerequisites

coco-loops must be on the PATH. Install it from coco-research/coco-loops:

git clone https://github.com/coco-research/coco-loops
pip install -e coco-loops

Check with coco-loops --help. If it is missing, tell the person how to install it and stop.

Flow

1. Understand the goal

Read the person's goal. Ask at most one or two clarifying questions, and only when the answer genuinely changes the charter:

  • Which repository or worktree should the loop work in? A loop needs a clean git tree, so a dedicated worktree is strongly recommended (the loop reverts its own changes each cycle and refuses to run on a dirty tree, to avoid clobbering uncommitted work).
  • How long should it run? This becomes the lifetime cap of active work, for example 4h. The clock only advances while the loop is actually working, so a closed laptop or an idle wait does not burn it.

Do not over-question. If the goal is clear, proceed.

2. Compile the charter

Get the exact field list with coco-loops charter --schema, then produce a charter as JSON. Derive the principles from the goal, and add sensible safe defaults. Keep principles readable: they are what the person confirms and what we audit the loop against.

Read the full file on GitHub · 151 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3mo ago First seen · 151 lines · 99 tokens per session scan A d2ec628799e6

Subscribe to this mod's changes

coco-loop is a skill published in the GitHub repository coco-research/coco (323 stars, last pushed yesterday), licensed Apache-2.0. It adds 99 tokens to every session and 1,386 once invoked, about $0.0004 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.

Related

coco-loop compared with skills from other repositories

coco-loop next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
coco-loopcoco-research/cocoSkill323yesterdayApache-2.0A99Claude Code, Codex
session-handoffwanshuiyin/HERO-Anti-OverDefenseSkill92912d agoMITA34Claude Code, Codex
proxmox-fullmarcusquinn/aidevopsSkill476todayMITA27Claude Code
a-philosophy-of-software-designciembor/agent-rules-booksSkill3.4k2mo agoMITA33Claude Code, Codex
handoffChemaclass/agnostic-aiSkill31todayMITA14Claude Code, Codex
template-autopoiesisdocxology/templateSkill25todayApache-2.0A51Claude Code, Codex
template-publishdocxology/templateSkill25todayApache-2.0A52Claude Code, Codex