ccc-claw

ccc-claw is a command for Claude Code from KevinZai/commander. It costs 50 tokens per session (543 once invoked), scanned A, a copy of claw, MIT.

A command-line interactive AI coding session with saved Markdown history and controls for models, skills, branches, compaction, exports, and metrics.

In plain words
What is it for?
Use it to manage saved sessions, load skills, change models, create branches, compact old history, export conversations, and view metrics.
Why use it?
It lets you preserve, search, split, shorten, and measure coding conversations instead of treating each session as temporary.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: reads .claude/ paths.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node vendor/everything-claude-code/scripts/claw.js.

Good fit Use it to manage saved sessions, load skills, change models, create branches, compact old history, export conversations, and view metrics.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/KevinZai/commander
agentmods
npx agentmods add commands/kevinzai/commander/ccc-claw

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-claw"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-claw.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 543 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 95% copy Near-identical to another mod 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.00050 $0.00543
Opus 5.5 $0.00020 $0.00217
Sonnet 5.5 $0.00010 $0.00109
Haiku 4.5 $0.00005 $0.00054

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

Security

Grade A, and why

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

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.

Origin

This is a copy

95% identical to claw — 70 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

commands/ccc-claw.md · 67 lines

How it starts

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

/ccc-claw — NanoClaw REPL

CC Commander · /ccc-claw · launches NanoClaw from the vendored everything-claude-code package.

What happens

  1. Confirm the script exists.

    ls vendor/everything-claude-code/scripts/claw.js
    

    If it is missing, report that the everything-claude-code vendor package is not present in this checkout and stop.

  2. Tell the user to start it in their own terminal (it is interactive and needs a TTY), optionally with the variables below:

    node vendor/everything-claude-code/scripts/claw.js
    # or, inside vendor/everything-claude-code:
    npm run claw
    

    Example: CLAW_SESSION=api-refactor CLAW_SKILLS=tdd-workflow,coding-standards node vendor/everything-claude-code/scripts/claw.js

Environment variables

Variable Default Meaning
CLAW_SESSION default Session name (letters, digits, hyphens)
CLAW_SKILLS empty Comma-separated skills loaded at startup
CLAW_MODEL sonnet Model alias for the session; the user's choice is kept

REPL commands

/help                          Show help
/clear                         Clear the current session history
/history                       Print the full conversation history
/sessions                      List saved sessions
/model [name]                  Show or set the model
/load <skill-name>             Hot-load a skill into context
/branch <session-name>         Branch the current session
/search <query>                Search across sessions
/compact                       Compact old turns, keep recent context
/export <md|json|txt> [path]   Export the session
/metrics                       Show session metrics
exit                           Quit

Notes

  • Sessions are stored at ~/.claude/claw/<session>.md.
  • Compaction keeps the most recent turns and writes a compaction header.
  • Export supports markdown, JSON turns and plain text.

Done when

The script path check has passed and the user has the exact launch command.

Read the full file on GitHub · 67 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 · +15 lines · +16 tokens per session 5e6770c2ffa9
  2. 1mo ago First seen · 52 lines · 34 tokens per session scan A d241e07e72ff

Subscribe to this mod's changes

ccc-claw is a command published in the GitHub repository KevinZai/commander (6 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 543 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 95% identical to claw, differing in 70 lines, and is treated as a copy.