redcon_compress
Compresses a file to its task-relevant sections, reducing tokens by 3-10x compared to the full file.
Instructions
Task-scoped compressed view of one file: signatures, imports and the sections relevant to the task, typically 3-10x fewer tokens than the raw file. Default to this INSTEAD of reading a whole file; fetch the full file only if the compressed view turns out to be insufficient.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative path to the file | |
| repo | No | . | |
| task | Yes | Task description | |
| max_tokens | No | Max tokens for compressed output |