honey-ccr

Featured

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.

AI & Automation 295 stars 17 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
82
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# 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 ```sh 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...

Details

Author
Green-PT
Repository
Green-PT/honey-for-devs
Created
2 months ago
Last Updated
4 days ago
Language
JavaScript
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

ccr

ccr — reversible payload compression: shrink any blob (tool output, log, RAG chunk, file) BEFORE it enters an LLM's context, while caching the full original locally so it can be expanded byte-for-byte on demand. The payload-axis counterpart to a knowledge-graph loader (the retrieval axis): the model sees a compact lossy view + a handle (ccr://<sha256>), and calls retrieve(handle) only when it needs the bytes back. Content-routed deterministic compactors (json skeleton / code outline / text head-tail); stdlib-only, no ML. Lifted from the CCR component of github.com/chopratejas/headroom. USE WHEN — a tool output / log / RAG chunk / file is too large for context and you want to compress it reversibly; "compress this payload", "shrink this before the model", "reversible compression", "cache the original and give me a handle". NOT FOR — loading knowledge-graph entities (that's the kg loader, the retrieval axis); lossless whole-file compression (use gzip); semantic summarization that does not need byte-exact recove

3 Updated today
broomva
AI & Automation Featured

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 tokens every session, without losing meaning. Backs up the original first. Use when asked to shrink or compress context files, trim CLAUDE.md, or cut per-session input cost. Prose only — never code, config, or data.

295 Updated 4 days ago
Green-PT
AI & Automation Featured

honey-memory

Create and maintain one committed per-project memory file (PROJECT.md) so agents stop re-discovering the same facts every cold session. Stores only the stable, expensive-to-rediscover, not-in-the-code context — architecture + why, build/test/run commands, decisions and dead-ends — as human-readable markdown, versioned with the code so it can't silently rot. Use when asked to set up project memory/context, stop agents re-grepping the codebase, scaffold or refresh a PROJECT.md / CLAUDE.md memory section, or cut cold-start rediscovery cost. Prose context only — never code, config, or data.

295 Updated 4 days ago
Green-PT