compress_file
Compress a UTF-8 text or markdown file into a structured, auditable context capsule that preserves goals, constraints, decisions, and risks for LLM agent handoffs.
Instructions
Compress a UTF-8 text/markdown file into a context capsule.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| budget | No | Target section token budget. | |
| title | No | Capsule title. | OpenCode Context Capsule |
| format | No | markdown | |
| loss_report | No | Include kept/omitted shard audit data in JSON metadata. | |
| tokenizer_profile | No | generic | |
| path | Yes | Path to a UTF-8 text or markdown file. |