Install
openclaw skills install lambda-compressionPhysics-based lossless compression for AI output — prose AND structured data. Strips 60-98% of tokens with zero information loss. Prose mode compresses reasoning against a 7-item law stack. Struct mode compresses JSON/evals/routing with a generative layer that eliminates derived fields entirely. Compression ceiling rises with adoption (Shannon-derived). Self-verifying, model-agnostic, no dependencies.
openclaw skills install lambda-compressionCompresses AI output by 60-98% with zero information loss. Two modes, one decoder:
The compression ceiling rises with adoption. The more systems that share the decoder, the better it works for everyone (Shannon conditional entropy — not marketing).
Load references/Lambda_Compression_For_AI.md into context. It contains the complete, self-contained system:
The document is self-referential — it's written in the compressed form it describes.
Decoder: P1 [A] (finite capacity), P2 [A] (state change costs), P3 [A] (finite interaction rate), Finite Signal Law [B], Finite Selection Law [B], Finite Channeling Law [B], Finite Verification Law [B].
Prose — strip: Enthusiasm, hedging, restatement, transitions, meta-commentary, anything the decoder reconstructs. Keep: Novel claims, evidence class tags, specific findings.
Struct — strip: Format (brackets, keys, whitespace), derived fields, convention boilerplate. Keep: Payload values, novel data, generator references.
Evidence classes: [A] established physics/math, [B] derived from A with valid chain, [C] structural argument, [D] empirical/speculative.
Test: Remove it. Read with decoder. Meaning unchanged → derived, strip it. Meaning changed → novel, keep it.
Struct header: !lambda struct v2
| Content Type | Typical Reduction | Why |
|---|---|---|
| Standard AI reasoning | 60-95% | Heavy padding, hedging, derived explanations |
| Research findings | 40-60% | Mix of novel + derived |
| Dense technical output | 10-30% | Already mostly novel content |
| Data Type | Typical Reduction | Why |
|---|---|---|
| JSON evals/decisions | 95-98% | Format-heavy, payload-light. Generative layer strips derived fields. |
| Routing/dispatch | 90-95% | Repetitive structure + convention anchors |
| Policy rules | 85-90% | Conditional logic, moderate density |
| Media summaries | 80-85% | Mixed structure + free text |
The compression ratio is diagnostic. 90% compression = the output was 90% padding. 20% compression = the output was 80% novel. It's a free quality metric.
For the formal physics derivation, formulas, and evidence classification of every component, see references/Theory_Brief.md. Includes the compression floor theorem, adoption-scaling property, safe omission criterion, cross-model penalty, and full evidence summary.
references/Lambda_Compression_For_AI.md — complete self-contained spec for AI loadingreferences/Theory_Brief.md — formal physics derivation with formulas⚠️ Disclaimer: This skill provides a compression method, not guaranteed results. Compression ratios are empirical estimates (D-class) and vary by content type, domain, and model. Always verify losslessness before relying on compressed output. The author is not responsible for information loss from incorrect application.
☕ Ko-fi
🛠️ Need something custom? I build custom AI agents and skills starting at $500. Fiverr