knitbrain_optimize
Compresses JSON, code, or prose into a token-efficient skeleton with local storage for lossless recovery via the returned hash.
Instructions
Compress a payload (JSON / code / prose) into a token-cheap skeleton. The exact original is stored locally and recoverable via knitbrain_retrieve using the returned ⟨ccr:hash⟩. Returns the original unchanged if compression wouldn't help.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The payload to optimize. |