ccc-init

ccc-init is a command for coding agents from KevinZai/commander. It costs 32 tokens per session (713 once invoked), scanned A, original, MIT.

A project-initialisation and refresh workflow for creating or updating CLAUDE.md, task files, lessons, and project settings. CLAUDE.md is a project instruction file for the coding agent.

In plain words
What is it for?
Use it to scaffold project files, detect outdated templates, preview additions or updates, and apply confirmed changes.
Why use it?
It gives new projects a consistent starting structure and helps refresh stale instructions while preserving custom sections.

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/kevinzai/commander/ccc-init
Clone the repo
git clone --depth 1 https://github.com/KevinZai/commander

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-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/kevinzai/commander/ccc-init.svg)](https://agentmods.dev/commands/kevinzai/commander/ccc-init)
Your own site
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-init"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 713 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00032 $0.00713
Opus 5 $0.00016 $0.00357
Sonnet 5 $0.00006 $0.00143
Haiku 4.5 $0.00003 $0.00071

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

Security

Grade A, and why

ccc-init 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.

commands/ccc-init.md · 81 lines

How it starts

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

/ccc-init — Project Initialization + Refresh

One command for both new projects and existing stale CLAUDE.md refreshes. Replaces /ccc-refresh (kept as deprecated alias).

What this does

  1. Detects current project state:
    • No CLAUDE.md → scaffold from CLAUDE.md.template
    • CLAUDE.md older than 30 days OR template version mismatch → refresh proposal
    • CLAUDE.md current → report healthy + offer optional sections
  2. Creates tasks/ directory + tasks/lessons.md if missing
  3. Creates .claude/settings.json scaffold if missing (project-scoped permissions)
  4. Shows a merge plan with ADD / UPDATE / KEEP / CUSTOM classifications
  5. Applies only after explicit confirmation
  6. Updates version comment to: <!-- CC Commander Template v4.0.0-beta.1 | Generated: YYYY-MM-DD -->

Scaffold paths (new project)

project-root/
├── CLAUDE.md              # from CLAUDE.md.template
├── tasks/
│   ├── todo.md            # stub
│   └── lessons.md         # empty header
└── .claude/
    └── settings.json      # project-level scaffold

Refresh strategy (existing project)

Same H2-section merge behavior as legacy /ccc-refresh:

  • MATCH — header exists in both, compare bodies
  • MISSING — in template but not user's → recommend adding with <!-- Added by CC Commander v4.0.0-beta.1 -->
  • CUSTOM — user has it, template doesn't → preserved untouched
  • UPDATE — content drift → side-by-side proposal

Auto-prompt triggers

The session-start hook proactively nudges when:

  • CLAUDE.md missing entirely
  • Template version older than installed CC Commander
  • File unmodified >30 days
  • Key H2 sections missing (Workflow, Core Principles, Rules)

Override via CC_NUDGE_DISABLE=1.

Deprecated alias

/ccc-refresh is preserved as a deprecated alias — calling it emits a deprecation notice, then executes /ccc-init refresh behavior.

Example

User: /ccc-init

CC Commander:
# Project Initialization

## State detected
- CLAUDE.md: present, v2.1.0 → v4.0.0-beta.1 available
- tasks/lessons.md: missing
- .claude/settings.json: missing
- Last modified: 47 days ago

## Proposed actions
+ [SCAFFOLD] tasks/lessons.md
+ [SCAFFOLD] .claude/settings.json (project permissions scaffold)
~ [REFRESH]  CLAUDE.md — 6 new H2 sections, 4 updated
= [KEEP]     "My Custom Rules" section (untouched)

Apply? (yes / no / show-diff)

Read the full file on GitHub · 81 lines

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 · 81 lines · 32 tokens per session scan A f85fb2d658ce

Subscribe to this mod's changes

ccc-init is a command published in the GitHub repository KevinZai/commander (6 stars, last pushed today), licensed MIT. It adds 32 tokens to every session and 713 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-09-03.