Finding / pi-coding-agent
2026-10-24-pi-coding-agent-durable-can-tune-compaction-policy-for-each-provider-and-model
Durable can tune compaction policy for each provider and model. Durable 1.4.0 adds compaction.modelOverrides, keyed by exact provider/model ID. Each supplied field replaces the harness-wide policy for that model: automatic compaction, reserve, recent history and background threshold. The current model selects the policy at threshold checks, context overflow and summary selection. Durable still derives its summary-output cap from reserve tokens and the model limit; coding-agent’s cap removal does not apply here.
Channel: tagged-release. Half: capability. Date: 2026-10-21.
Operator consequence: Hosts serving different context windows can replace one global budget with route-specific settings. Recheck retained history, blocking thresholds and summary spend for small and large models separately. This removes custom policy switching without promising better task outcomes or cheaper summaries.
Receipt
- https://github.com/earendil-works/pi/blob/v1.3.0/packages/durable/README.md
- https://github.com/earendil-works/pi/blob/v1.4.0/packages/durable/README.md#L565-L582
- https://github.com/earendil-works/pi/blob/v1.4.0/packages/durable/src/harness/types.ts#L516-L522
- https://github.com/earendil-works/pi/blob/v1.4.0/packages/durable/src/harness/compaction.ts#L261-L270
- https://github.com/earendil-works/pi/blob/v1.4.0/packages/durable/src/harness/generation.ts#L173-L180
Finding metadata
Run: 2026-10-24-weekly-digest-2026-10-13_2026-10-24-frontier-v0
Finding ID: 2026-10-24-pi-coding-agent-durable-can-tune-compaction-policy-for-each-provider-and-model
Profile citations
- Pi Coding Agent / claim / durable-per-model-compaction
- Pi Coding Agent / posture / capability
Source links
Primary links, including exact changelog lines when available.
- tagged commit file2026-10-24-pi-coding-agent-durable-can-tune-compaction-policy-for-each-provider-and-modelearendil-works/pi / packages/durable/README.mdtagged commit file2026-10-24-pi-coding-agent-durable-can-tune-compaction-policy-for-each-provider-and-modelearendil-works/pi / packages/durable/README.md#L565-L582tagged commit file2026-10-24-pi-coding-agent-durable-can-tune-compaction-policy-for-each-provider-and-modelearendil-works/pi / packages/durable/src/harness/types.ts#L516-L522tagged commit file2026-10-24-pi-coding-agent-durable-can-tune-compaction-policy-for-each-provider-and-modelearendil-works/pi / packages/durable/src/harness/compaction.ts#L261-L270tagged commit file2026-10-24-pi-coding-agent-durable-can-tune-compaction-policy-for-each-provider-and-modelearendil-works/pi / packages/durable/src/harness/generation.ts#L173-L180