ccc-refresh

ccc-refresh is a command for Claude Code from KevinZai/commander. It costs 45 tokens per session (904 once invoked), scanned A, original, MIT.

A backward-compatible command for comparing your existing CLAUDE.md instructions with a newer template and proposing updates.

In plain words
What is it for?
Use it to find missing or outdated sections in CLAUDE.md and merge approved template changes.
Why use it?
It helps update shared agent instructions without losing custom sections you have written. It also shows proposed changes before applying them.

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 find missing or outdated sections in CLAUDE.md and merge approved template changes.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-refresh"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-refresh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 904 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.00045 $0.00904
Opus 5.5 $0.00018 $0.00362
Sonnet 5.5 $0.00009 $0.00181
Haiku 4.5 $0.00005 $0.00090

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

Security

Grade A, and why

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

commands/ccc-refresh.md · 61 lines

How it starts

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

/ccc-refresh — deprecated alias for /ccc-init

CC Commander · /ccc-refresh · the CLAUDE.md refresh path of /ccc-init, kept for backward compatibility.

⚠️ Deprecated. Use /ccc-init, which detects whether to scaffold a new CLAUDE.md or refresh an existing one. Print this notice once, then run the steps below; the behavior matches the /ccc-init refresh path.

When to use

  • After upgrading Commander.
  • When the claude-md-staleness hook reports that CLAUDE.md is missing, its template version is behind the installed Commander version, it has not changed in over 30 days, or key sections (Workflow, Core Principles) are missing.
  • After /ccc-makeover on a project.

If CLAUDE.md does not exist, stop and point to /ccc-init, which scaffolds it.

What happens

  1. Read the current file. Use the project CLAUDE.md when present, otherwise ~/.claude/CLAUDE.md; say which one. Extract the leading HTML version comment (if any), every H2 (## ) header with its content, and the user's name from the H1 line.

  2. Read the template. Read CLAUDE.md.template at the root of the Commander checkout the toolkit was installed from (the directory that also holds Commander's package.json). If it cannot be found, ask the user for its path in plain text and stop. Parse it into the same H2 structure, and read the installed Commander version from that package.json.

  3. Classify each section (header match is case-insensitive):

    • MATCH — in both files. Compare content; when the template adds subsections or rules, mark it UPDATE.
    • MISSING — in the template only; mark it ADD.
    • CUSTOM — in the user's file only; mark it KEEP and never touch it.
  4. Present the merge plan:

    | Action | Section       | Reason                          |
    |--------|---------------|---------------------------------|
    | ADD    | <section>     | In template, missing from file  |
    | UPDATE | <section>     | <what the template adds>        |
    | KEEP   | <section>     | Custom (not in template)        |
    

Read the full file on GitHub · 61 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. 1mo ago Changed · -65 lines · +18 tokens per session 442604ae6420
  2. 2mo ago First seen · 126 lines · 27 tokens per session scan A 63749ea5d092

Subscribe to this mod's changes

ccc-refresh is a command published in the GitHub repository KevinZai/commander (6 stars, last pushed yesterday), licensed MIT. It adds 45 tokens to every session and 904 once invoked, about $0.0002 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-09-04.

Related

ccc-refresh compared with commands from other repositories

ccc-refresh next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ccc-refreshKevinZai/commanderCommand6yesterdayMITA45Claude Code
loopskullninja/coco-workflowCommand71mo agoMITA28Claude Code
phaseskullninja/coco-workflowCommand71mo agoMITA21Claude Code
statusskullninja/coco-workflowCommand71mo agoMITA17Claude Code
justone-publishGodsB1025/justoneCommand26mo agoMITA22Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code