hexum_shrink
Shrink workspace files into AST-valid skeletons (hot / call-chain / peripheral / manifest). Returns compressed sources plus token stats. Prefer workspace= when the server can see the disk; otherwise pass files. Default budget 8000. Pass since_hash from the prior snap to skip unchanged files. Use this before reading a repo. If architecture.hexum has a skill line and SKILL.md is not installed, call hexum_skill first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| paths | No | ||
| stderr | No | ||
| workspace | No | Workspace root. When files/paths are empty and the path exists on the server, Hexum reads the tree from disk. | |
| since_hash | No | Prior snap hash. Unchanged files are omitted. Session remembers the last snap if omitted. | |
| active_file | No | ||
| user_prompt | No | ||
| max_token_budget | No | Soft cap on tokens_out. Default 8000 when omitted. |