Haruspex

Context during a long task

Why results get trimmed

A turn that reads many files or long pages can fill the model's context before it is done. When the prompt reaches about 70% of the context size, Haruspex replaces older tool results with short stubs until it is back near 55%. The three newest results are never trimmed.

What a stub keeps

Each stub names the call and its size, and keeps a few facts read from the output: the exit code, test totals, the first error line, the page address. Often that is enough to go on.

Read a trimmed result back

In Chat, Code and the Shell, the model can call recall_result with the stub's id to read the exact text again: a range of lines, numbered from 1 as fs_read_text numbers them, or only the lines that contain a word. It is the original output, not a new run: a command does not run twice and a page is not fetched again.

What it doesn't do