ccc-init

ccc-init is a command for Claude Code from KevinZai/commander. It costs 52 tokens per session (1,076 once invoked), scanned B, 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 for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

Good fit Use it to scaffold project files, detect outdated templates, preview additions or updates, and apply confirmed changes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kevinzai/commander/ccc-init
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.

Clone the repo
git clone --depth 1 https://github.com/KevinZai/commander

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/kevinzai/commander/ccc-init/github.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/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-init

Your own site · 80×15
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-init"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,076 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00052 $0.01076
Opus 5.5 $0.00021 $0.00430
Sonnet 5.5 $0.00010 $0.00215
Haiku 4.5 $0.00005 $0.00108

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

Security

Grade B, and why

ccc-init scanned grade B with 1 finding 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 5d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

8. Verify: `head -1 CLAUDE.md`, `ls tasks/ .claude/settings.json`, and `git diff --stat` inside git. Confirm `.claude/settings.json` parses with `node -e "JSON.parse(require('fs').readFileSync('.claude/settings.json'))"`
commands/ccc-init.md · 84 lines

How it starts

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

/ccc-init — project init and refresh

CC Commander · /ccc-init · one command that scaffolds a new project or merge-refreshes an existing CLAUDE.md, applied only after you approve the plan.

/ccc-refresh is a deprecated alias for the refresh path of this command.

What happens

  1. Locate the template: CLAUDE.md.template at the root of the CC Commander install or checkout. Read the installed version from that install's package.json (node -p "require('./package.json').version" run in that directory). If the template is not found, ask the user for its path and stop until it is given.

  2. Detect the project state from the repository root (git rev-parse --show-toplevel, or the current directory outside git):

    • No CLAUDE.md → scaffold.
    • CLAUDE.md unmodified for more than 30 days (date -r CLAUDE.md), or its header comment records a version different from the installed one → refresh.
    • Otherwise → report healthy and offer the optional template sections it lacks.
  3. Check the companions: tasks/, tasks/todo.md, tasks/lessons.md, .claude/settings.json.

  4. Build the merge plan:

    • Scaffold: the full layout below.
    • Refresh: compare H2 sections of CLAUDE.md with the template:
      • MATCH — header in both, bodies equal → keep
      • UPDATE — header in both, bodies differ → side-by-side proposal
      • MISSING — in the template only → add, marked <!-- Added by CC Commander <installed version> -->
      • CUSTOM — in the user's file only → preserved untouched
    • Preserve the user's name and every filled-in placeholder; never reintroduce [placeholder] text over real content.
  5. Show the plan:

    # Project Initialization
    
    ## State detected
    - CLAUDE.md: present, header <recorded version> → <installed version> available
    - tasks/lessons.md: missing
    - .claude/settings.json: missing
    - Last modified: <n> days ago
    
    ## Proposed actions
    + [SCAFFOLD] tasks/lessons.md
    + [SCAFFOLD] .claude/settings.json (project permissions scaffold)
    ~ [REFRESH]  CLAUDE.md — <n> new H2 sections, <n> updated
    = [KEEP]     "My Custom Rules" section (untouched)
    

Read the full file on GitHub · 84 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. 5d ago Changed · +3 lines · +20 tokens per session scan A → B aef91fe255b3
  2. 1mo ago 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 52 tokens to every session and 1,076 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.