knitbrain_optimize
Compress JSON, code, or prose into a token-efficient skeleton while storing the original locally. Retrieve it later using the returned recall: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 ⟨recall:hash⟩. Returns the original unchanged if compression wouldn't help.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The payload to optimize. |