knitbrain_optimize
Compress JSON, code, or prose into a token-efficient skeleton while preserving the original locally for lossless recovery. Skips compression when not beneficial.
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 ⟨recall:hash⟩. Returns the original unchanged if compression wouldn't help.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The payload to optimize. |