ccc-loop

ccc-loop is a skill for Claude Code, Codex from KevinZai/commander. It costs 63 tokens per session (2,287 once invoked), scanned A, original, MIT.

A guide for CC Commander, a collection of skills for Claude Code. It helps choose between different kinds of repeated work, such as goal-based tasks, timed loops, and scheduled tasks.

In plain words
What is it for?
Use it to learn how CC Commander handles loops, goals, schedules, verification, and saved state.
Why use it?
It helps you select a suitable way to run recurring or ongoing agent work and decide when that work is finished.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also agents/openai.yaml present. Also seen: names the AskUserQuestion tool; mentions Claude Code; runs codex exec.

Good fit Use it to learn how CC Commander handles loops, goals, schedules, verification, and saved state.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kevinzai/commander/ccc-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 KevinZai/commander --skill ccc-loop
Clone the repo
git clone --depth 1 https://github.com/KevinZai/commander

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 ccc-loop

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kevinzai/commander/ccc-loop"><img src="https://agentmods.dev/badge/skills/kevinzai/commander/ccc-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,287 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 17
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Rogue Agent · line 97
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00063 $0.02287
Opus 5.5 $0.00025 $0.00915
Sonnet 5.5 $0.00013 $0.00457
Haiku 4.5 $0.00006 $0.00229

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

Security

Grade A, and why

ccc-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 1mo 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.

commander/cowork-plugin-codex/skills/ccc-loop/SKILL.md · 154 lines

How it starts

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

$ccc-loop — pick the right loop

CC Commander · $ccc-loop · the loop taxonomy hub: one gate before building a loop, a verifier that is not the worker, and a state file so a resumed loop does not repeat itself.

Claude Code has several loop primitives. Choose one deliberately instead of reaching for /loop by habit.

When to use / when not to

  • Use when work should repeat: poll a system, iterate until a measurable condition holds, or run on a cadence while nobody watches.
  • Do not loop destructive operations ($ccc-deploy, $ccc-rollback, deletions); route them through $ccc-ship's gate.
  • Do not loop skills that write files without idempotency guards; repeated writes accumulate.
  • One-off work that a single good prompt finishes is turn-based: run the skill directly.
  • To chain separate loop sessions (spec → build → review → merge), use $ccc-relay.

The loop types

Type Trigger Stops when Primitive Best for
Turn-based A user prompt Claude judges the task done Run the skill; encode manual checks in its SKILL.md Short one-off tasks
Goal-based A prompt, in real time The goal is met or the turn cap hits; an evaluator checks the condition on every stop attempt /goal Work with a verifiable exit (test count, score, build passing)
Interval A fixed interval You cancel it, or the work completes /loop 5m <prompt> (local session) Active monitoring while you are at the keyboard
Self-paced / dynamic The model picks the next wake-up each iteration Same as interval /loop <prompt> with no interval, which schedules each next tick with ScheduleWakeup Polling whose right cadence depends on what the last check found (CI ETA, queue depth)
Routine A cron schedule or a one-time time, in the cloud You turn the Routine off /schedule (Routines) Recurring or unattended work that must survive the laptop closing
Proactive An event or schedule, no human in real time Each task exits on its own goal Routine heartbeat + /goal for done + a Workflow to orchestrate + auto permission mode Streams of well-defined work: triage, migrations, dependency upgrades

Read the full file on GitHub · 154 lines

Files

What ships with it

2 files 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. 1mo ago Changed · -1 lines 8bae4403ba17
  2. 1mo ago Changed · -10 lines · +20 tokens per session 731e98394bb4
  3. 3mo ago First seen · 165 lines · 43 tokens per session scan A 1214fc3459fd

Subscribe to this mod's changes

ccc-loop is a skill published in the GitHub repository KevinZai/commander (6 stars, last pushed yesterday), licensed MIT. It adds 63 tokens to every session and 2,287 once invoked, about $0.0003 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-31.

Related

ccc-loop compared with skills from other repositories

ccc-loop next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ccc-loopKevinZai/commanderSkill6yesterdayMITA63Claude Code, Codex
logingreenpolo/cc-multi-cli-pluginSkill1972d agoApache-2.0A10Claude Code
skill-devandisab/swe-marketplaceSkill232d agoMITA86Claude Code
coordinatorandisab/swe-marketplaceSkill232d agoMITA193Claude Code
mcp-tool-devandisab/swe-marketplaceSkill232d agoMITA158Claude Code
debt-ops-addbcanfield/agentic-tech-debtSkill9yesterdayMITA115Claude Code, Codex
spec-syncchipfighter/coding-disciplineSkill2513d agoMITA33Claude Code