Skip to content
Development
Skill

/honey-ccr

Compress-Cache-Retrieve for huge, repetitive array tool output (logs, scan results, time series, event streams) before it enters context. Keeps an informative sample — endpoints, anomalies/change-points, head/tail — drops the redundant rest to a local cache, and leaves a

From plugin
honey
34714 skills3 agents3 hooks

Claude Code

$ npx -y skills add Green-PT/honey-for-devs --skill honey-ccr --agent claude-code

SKILL.md

honey-ccr.SKILL.md
name: honey-ccr
description: >-
  Compress-Cache-Retrieve for huge, repetitive array tool output (logs, scan
  results, time series, event streams) before it enters context. Keeps an
  informative sample — endpoints, anomalies/change-points, head/tail — drops the
  redundant rest to a local cache, and leaves a retrievable hash. Use when a
  tool returns a long uniform JSON array you must read but mostly skim, and the
  full set is one command away if needed. Lossy-but-recoverable.
license: MIT

Honey CCR

The cheapest token is the one not sent. A 500-row log read for one error line costs 500 rows of context. CCR keeps the rows that carry signal and caches the rest — recoverable by hash, so nothing is lost.

Borrowed from headroom's SmartCrusher. **Lossy by design** — only for data you skim, never for payloads where every row matters (e.g. a code-review handoff where the implementer needs all findings; use `eson encode` losslessly there).

When to use

  • A tool returns a **uniform JSON array** of many records (≥ ~5 items, redundant).
  • You need to read it but mostly skim — logs, search hits, metrics, events.
  • The full data stays reachable, so dropping the boring middle is safe.

Don't use

  • Small arrays (passes through untouched anyway) or non-array data.
  • Any array where every element is load-bearing — encode it, don't crush it.

How

tool-that-spews-json | eson crush          # → sampled view + sentinel; originals cached
eson retrieve <hash>                        # → the full original array, verbatim

`crush` prints the kept sample plus a sentinel `{"_ccr":"<<ccr:HASH N_rows_offloaded>>"}`. When you need a dropped row, read the hash from the sentinel and run `eson retrieve <hash>`.

  • Cache dir: `.honey-ccr/` (override with `HONEY_CCR_DIR`).
  • Below the size gate, `crush` returns the array unchanged with no sentinel — safe to pipe anything.

Always-on hook (entry-time GC)

While Honey is active, a registered PostToolUse hook applies this automatically to Bash output — no opt-in per call. Big uniform JSON arrays (≥20 items, ≥2k chars) are crushed; repetitive text (≥25 lines) gets consecutive repeats collapsed to `⟨×N⟩`. The original is always stashed first, and the rewritten result ends with the exact `eson retrieve <hash>` command that restores it. `/honey off` disables the hook; history already in context is immutable — this fires at entry, the only place a hook can act.

Caveat: the hook needs Claude Code 2.1.121+; older builds can't rewrite Bash output (a session-start warning tells you). Manual `some-tool | eson crush` piping works on any version — prefer it there.

Read more
@green-pt
Ships withhoney

Write less code and say less about it. Honey (I Shrunk the AI) by GreenPT is a cross-tool coding skill that cuts the output tokens AI coding agents spend — making them emit less code and less prose without losing correctness.

34714 skills3 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
347
Star history of Green-PT/honey-for-devs on GitHub, a chart by star-history.com

Other skills on honey.

honey-chat

honey-chat

Honey for plain Claude — the terse-prose core with no agent-harness features. Paste into a claude.ai Project's custom…

@green-pt@green-ptInstall Skill
honey-compress

honey-compress

Rewrite a memory or context file (CLAUDE.md, AGENTS.md, a todo or notes file) into Honey-terse form so it costs fewer input…

@green-pt@green-ptInstall Skill
honey-debt

honey-debt

Harvest every `shortcut:` comment (and legacy `honey:` ones) in the codebase into a debt ledger, so the deliberate shortcuts…

@green-pt@green-ptInstall Skill
honey-design

honey-design

Same pixels, fewer tokens — for user-facing deliverables where visual polish is the spec. Use when building or editing a landing…

@green-pt@green-ptInstall Skill
honey-eco

honey-eco

Report this session's output tokens and CO₂ by running the repo's committed EcoLogits port, plus the modelled CO₂/$ saved vs a…

@green-pt@green-ptInstall Skill
honey-gain

honey-gain

Show Honey's benchmark scoreboard — the committed quality and token results per task tier (code, user-facing, agent-to-agent)…

@green-pt@green-ptInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc11d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about honey-ccr.

Which coding agents can use honey-ccr?
honey-ccr installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.