Skip to main content

Module auto

Module auto 

Source
Expand description

Unified automatic compaction orchestration.

This is the single entry point used by every runtime (the binary unified runloop and the vtcode-core AgentRunner) for automatic context compaction: when token pressure crosses the configured threshold, the conversation trace is compressed (provider-native or local LLM summary), a recoverable history artifact is written, and a session memory envelope is built and injected so the model keeps its conversational continuity.

Structs§

AutoCompactionInput
Inputs for auto_compact_messages.
AutoCompactionOutcome
Result of a successful automatic compaction pass.

Functions§

auto_compact_messages
Compress history in place when automatic compaction should fire.