- Preserves system initialization instructions and primary user queries.
- Strips intermediate tool payloads and replaces them with a summarized indicator.
- Keeps active tasks intact at the top of the context buffer.
Actor-Critic & State
State Compaction
Sustaining prompt context longevity through message trimming boundaries
When message array sizes exceed token thresholds, the engine compacts past records to keep prompts lightweight: