Smarter compaction (preserve tool-call/result pairs and other invariants) #11

Closed
opened 2026-05-07 01:28:26 -04:00 by jasoncouture · 1 comment
jasoncouture commented 2026-05-07 01:28:26 -04:00 (Migrated from github.com)

Improve the compactor so it safely preserves tools — tool-call ↔ tool-result pairs, schema-anchored entries, framework-injected turns — rather than letting summarization break those invariants.

The current compactor can produce a window where a tool call lands without its matching result (or vice versa), which trips the model on the next turn.

Tracked in TASKS.md.

Improve the compactor so it safely preserves tools — tool-call ↔ tool-result pairs, schema-anchored entries, framework-injected turns — rather than letting summarization break those invariants. The current compactor can produce a window where a tool call lands without its matching result (or vice versa), which trips the model on the next turn. Tracked in [TASKS.md](../blob/main/TASKS.md).
jcouturest commented 2026-05-26 15:06:29 -04:00 (Migrated from github.com)

This was done via promptiing.
The compacting agent now lists out tool calls and their results. It isn't perfect, but it's good enough.

This was done via promptiing. The compacting agent now lists out tool calls and their results. It isn't perfect, but it's good enough.
Sign in to join this conversation.
No description provided.