Files
paseo/packages
jackos1998andClaude Opus 5.5 caecb4e135 agent/compaction: Compact idle agents before the cache expires
An idle agent's next prompt resends its whole context uncached once
the provider's prompt cache expires. Compact large idle contexts
shortly before that, following Claude Code's own idle compaction:
at 90% of a one-hour cache lifetime, from 200,000 tokens of context,
and not when the sweep is more than a minute late.

Providers opt in by reporting their cache through
`getPromptCacheState()`. Claude reads the lifetime from each
request's `cache_creation` usage. The daemon runs `/compact` as its
own turn without recording a prompt, and restores the agent's
attention afterwards so it neither notifies nor changes unread
state. `agents.idleCompaction` in `config.json` turns it off or sets
the context threshold.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 10:49:57 +00:00
..
2026-11-26 07:42:07 +01:00
2026-11-26 07:42:07 +01:00
2026-11-26 07:42:07 +01:00
2026-11-26 07:42:07 +01:00