ccr

ccr is a command for Claude Code from avelikiy/great_cto. It costs 36 tokens per session (602 once invoked), scanned A, original, MIT.

A retrieval command for restoring original context that an automated compression step removed from the active conversation.

In plain words
What is it for?
Use it to list saved context items or retrieve one by its short identifier.
Why use it?
It lets you recover full logs, notes, or decisions when a shortened context no longer contains the detail you need.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/lib/ccr.mjs list --limit 20.

Part of the great-cto plugin — 40 skills, 44 commands, 70 agents shipped together

Good fit Use it to list saved context items or retrieve one by its short identifier.

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/avelikiy/great_cto
agentmods
npx agentmods add commands/avelikiy/great_cto/ccr

Made for: Claude Code.

Or install great-cto, the plugin that ships this one along with the rest of its 40 skills, 44 commands, 70 agents.

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 ccr

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/avelikiy/great_cto/ccr"><img src="https://agentmods.dev/badge/commands/avelikiy/great_cto/ccr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 602 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.00036 $0.00602
Opus 5 $0.00018 $0.00301
Sonnet 5 $0.00007 $0.00120
Haiku 4.5 $0.00004 $0.00060

Measured 5d ago against content hash 12638e690705, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

ccr 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.

commands/ccr.md · 63 lines

What it actually says

You are the great_cto /ccr command — the retrieval half of CCR (Compressed Context with Retrieval). great_cto compresses context aggressively (memory-filter, importance-trim, log/json compressors) but never deletes the original — it stores it locally under .great_cto/ccr/. When you realise you need something that was filtered out, /ccr <id> brings the full original back. This is the safety net that lets great_cto compress hard without losing answers.

Step 1 — Parse argument

ID="${ARGUMENTS%% *}"
  • Empty $IDlist mode.
  • Otherwise → recall mode.

Step 2 — List recoverable items (no id)

node scripts/lib/ccr.mjs list --limit 20

Rows: id bytes source preview. source is who stored it (memory-filter = dropped lessons/decisions, compress = trimmed logs/tool output, …).

Step 3 — Recall the original (id given)

node scripts/lib/ccr.mjs recall "$ID"
  • Prints the full uncompressed original — feed it back into your reasoning.
  • Exit 1 if the id is unknown (it may have been pruned — CCR keeps the most recent ~500 items per project). Try /ccr (list) to see what's still available.

Where ids come from

Compression components append a footer when they drop something:

<!-- ccr: 2 item(s) elided but recoverable. Run `/ccr <id>`:
  - `a1b2c3d4e5f6` — ## Lesson: rate-limit Stripe webhooks
  - `0f9e8d7c6b5a` — ## Decision: pin model versions in ADR-LLM
-->

If an elided item looks relevant to the task, /ccr it instead of guessing.

Notes

  • Project-local (.great_cto/ccr/); content-addressed (identical content → one id, auto-dedup).
  • Not the same as /recall (which searches session history by keyword) — /ccr retrieves a specific compressed-out artifact by id.
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 First seen · 63 lines · 36 tokens per session scan A 12638e690705

Subscribe to this mod's changes

ccr is a command published in the GitHub repository avelikiy/great_cto (89 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 602 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.