CORE CONCEPTS
Compaction
Every model has a limit on how much it can read at once: its context window. When a long conversation gets close, Uno shortens it so the work can carry on.
What happens, in order
- Prune. Old tool output (file contents, test logs) is the bulk of most long conversations, and the model has already acted on it. Uno replaces old results with a short note. The newest ones stay.
- Summarise. If that is not enough, Uno asks the same model, on the same cached prefix, for a summary in fixed sections: the goal, decisions made, files touched, work still open, and the exact next step. The summary replaces everything after your first message, and the current text of up to five recently touched files is attached so the work can carry on.
- Carry on. Tool calls and their results always stay in pairs, and a resumed session loads the short history.
- Last resort. If even a summary will not fit, the run stops with
too_long, the work so far saved, and tells you to start a new run with what is left.
Type /compact to shorten now, for example before starting the next part of a big task. --window <tokens> sets the window for a model Uno does not know, or makes shortening happen earlier.
Use cases
A long migration
Hours of edits and test runs in one chat. The old logs get pruned, the plan and decisions survive in the summary.
unoBefore the next chapter
Finished one feature, starting another in the same chat? Compact first so the new work starts lean.
/compactSummarise with the same model on the same prefix, not a cheaper model: the cached prefix makes it cheap anyway, and a cheaper model forgets more. Prune before summarising, because dropping old output loses almost nothing and costs nothing. Use fixed sections, because free-form summaries quietly drop the things you need later.