Comfy-Cozy: Command for Claude Code

.claude/commands/cozy-cycle.md

cozy-cycle is a command for Claude Code from JosephOIbrahim/Comfy-Cozy. It costs 21 tokens per session (501 once invoked), scanned A, original, MIT.

A command that runs the complete Cozy multi-agent chain, from scouting and planning through the final written handoff. The chain is a sequence of specialist agents that pass work to one another.

In plain words
What is it for?
Use it to run one full project pass from a user request, including self-healing and a final saved confirmation when the chain changes project state.
Why use it?
It coordinates the specialists, checks their handoffs, retries temporary failures, and stops when a serious blocker is found.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions subagents.

This is JosephOIbrahim/Comfy-Cozy's own configuration. It tells Claude Code how to work on Comfy-Cozy itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Comfy-Cozy configures →

Reuse

Borrowing it

Nothing to install: this file belongs to JosephOIbrahim/Comfy-Cozy. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/JosephOIbrahim/Comfy-Cozy/master/.claude/commands/cozy-cycle.md
Clone the repo
git clone --depth 1 https://github.com/JosephOIbrahim/Comfy-Cozy

Made for: Claude Code.

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 cozy-cycle

README.md
[![agentmods](https://agentmods.dev/badge/commands/josephoibrahim/comfy-cozy/cozy-cycle/github.svg)](https://agentmods.dev/commands/josephoibrahim/comfy-cozy/cozy-cycle)
Your own site
<a href="https://agentmods.dev/commands/josephoibrahim/comfy-cozy/cozy-cycle"><img src="https://agentmods.dev/badge/commands/josephoibrahim/comfy-cozy/cozy-cycle/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 cozy-cycle

Your own site · 80×15
<a href="https://agentmods.dev/commands/josephoibrahim/comfy-cozy/cozy-cycle"><img src="https://agentmods.dev/badge/commands/josephoibrahim/comfy-cozy/cozy-cycle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 501 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.00021 $0.00501
Opus 5 $0.00010 $0.00251
Sonnet 5 $0.00004 $0.00100
Haiku 4.5 $0.00002 $0.00050

Measured 10d ago against content hash 9e898fd990e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

cozy-cycle 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 10d 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.

.claude/commands/cozy-cycle.md · 59 lines

What it actually says

/cozy-cycle — One MoE chain pass with self-healing

You are about to drive one full MoE chain pass governed by .claude/COZY_CONSTITUTION.md and the 10 commandments in agent/stage/constitution.py.

User Intent

$ARGUMENTS

Protocol

  1. Classify the intent using the keyword sets in agent/stage/moe_dispatcher.py:_TASK_KEYWORDS. Pick the matching TaskType and resolve its chain via TASK_CHAINS.

  2. Dispatch each specialist in order, using the Agent tool with subagent_type set to the matching cozy-* subagent (e.g. cozy-scout, cozy-architect, ...). Pass the prior specialist's typed handoff artifact as input.

  3. After each specialist returns, validate:

    • Artifact artifact_type matches the expected type for that specialist (commandment 6, explicit_handoffs).
    • No constitutional violations were emitted in the result.
    • If a TERMINAL was raised, halt and emit a BLOCKER summary.
  4. The chain MUST end with cozy-scribe if any specialist mutated state (Article II). The Scribe produces the final persistence_receipt confirming the flush.

  5. Self-healing ladder (Article III):

    • TRANSIENT: backoff and retry up to 3 times within the same specialist invocation.
    • RECOVERABLE: re-dispatch the appropriate specialist (FORGE for build errors, PROVISIONER for missing assets, ARCHITECT for plan errors).
    • TERMINAL: halt the chain, summarize, exit.

Output

Produce a single chain-summary block at the end:

Chain: <task_type>
Specialists: <names in order>
Halt reason: <budget|completed|TERMINAL:reason>
Artifacts produced: <list of artifact_types>
Persistence: <flushed_at from persistence_receipt | NOT_FLUSHED>

Do NOT push to remote. Do NOT run destructive git operations. Do NOT bypass commandment gates.

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. 10d ago First seen · 59 lines · 21 tokens per session scan A 9e898fd990e6

Subscribe to this mod's changes

cozy-cycle is a command published in the GitHub repository JosephOIbrahim/Comfy-Cozy (24 stars, last pushed 1mo ago), licensed MIT. It adds 21 tokens to every session and 501 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.