Smarter compaction (preserve tool-call/result pairs and other invariants) #11
Labels
No labels
bug
commercial
documentation
duplicate
enhancement
feature
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jasoncouture/llama-shears#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
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.