Repository navigation
v2.3.0 - Batch Consolidation & Token Efficiency
Large memory sets are now split into smaller LLM prompts via chunk-based processing, with optimizations to minimize token costs across multi-chunk passes.
New
- Chunk-based consolidation: ChunkPlanner partitions memory files respecting
maxPromptCharsandmaxFilesPerBatchlimits - ChunkMerger with last-chunk-wins strategy and order preservation
- Prompt caching support for Bedrock (Anthropic
cachePoint) and OpenAI (system/user message split) - Pre-computed shared context eliminates redundant filesystem reads per chunk
- Config:
max_prompt_chars(default 120K) andmax_files_per_batch(default 30)
Changed
- Default
maxPromptCharsraised from 60K to 120K LlmBackend.consolidate()accepts optionalConsolidateOptionswithsystemPromptConsolidationResultnow includeschunksTotalandchunksCompleted
Testing
- 231 tests across 21 files, including 10 property-based tests