You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(harness): context compaction for long-running missions #440
Mission mode chains turns under step/token/minute budgets, but the context
window itself is still the hard ceiling for very long missions. Once history
approaches the model's limit, a mission either degrades or dies regardless of
remaining budget. (Large-window models postpone this; they don't remove it.)
Proposal
Threshold-triggered compaction: when history nears a configurable fraction of
the context window, summarize settled turns into a durable compaction
session entry and continue from system prompt + summary + tail
Compaction entries are ordinary transcript entries → the existing
replay/hydrate machinery stays truthful (crash mid-compaction resumes
pre-compaction; compaction completes atomically as one entry)
Budget accounting keeps counting real tokens; report compacted-before-X in tole status
--no-compaction opt-out; --compact-at 0.8 knob
If a compaction pass already exists internally, happy to close this in favor
of docs.
Prior KV-cache finding: the append-only wire body is optimal for provider
caching (95–98% hit on multi-step). Compaction trades cache warmth for
window headroom — acceptable once above the threshold, never compact
eagerly.
Activity
fix(core): fence the compaction summary as untrusted data (#440)
feat(core): context compaction — summary entry, compacted wire view (#…
feat(cli): context compaction in chat, resume and mission (#456)
fix(turn): surface context-overflow recovery and warn when the window…
feat(tools): read-only history search over the session's own ledger (#…