Partial / non-blocking compaction #107
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#107
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?
Compactor takes a high-water-mark argument ("compact up to message X") and runs concurrently with the agent's main loop instead of stalling it. While compaction is in flight, the agent continues serving turns; new turns past X aren't touched by the in-flight pass. When compaction completes, the result is spliced in: entries ≤ X replaced by the summary, entries > X kept verbatim.
Why: full compaction today stalls the loop. With agents responding to channel input, a multi-second compaction window is a visible hang.
Considerations:
Depends on concurrency limits per model/provider (sibling) so that compaction doesn't fight the main turn loop for the same provider slot.
Pairs with: #11 (tool-pair preservation in cuts), compactor heuristics (sibling), compactor tool (sibling).