v1.3.124
v1.3.124
Released: 2026-07-04
Improvements
Context Window Usage Metrics in Reflection
Based on 2025-2026 context engineering research (Anthropic, Manus, LangChain),
context utilization metrics are essential for understanding agent performance
degradation in long sessions.
The reflection system now tracks and reports:
- Peak tokens: highest token count observed during the run
- Context utilization: peak tokens as percentage of context window
- Compaction events: number of compaction triggers (precompact, reactive, autopilot guard)
These metrics appear in the "Context usage" section of run reflections, giving
future sessions visibility into how context pressure affected previous runs.
Bug Fixes
- EndpointMetrics unbounded growth:
AppendMetricForEndpointappended a metric
event on every LLM API call without any cap. In long-running sessions (hours/days),
per-endpoint metric slices grew unboundedly, causing increasing memory consumption.
Capped to 200 most-recent entries per endpoint key. - OOM kills in CI tests: Added
GOMEMLIMITand reduced test parallelism (-p 1)
to prevent OOM kills duringmake teston memory-constrained CI runners.