Pi Agent
45c572da5e
feat: implement rolling context compaction (issue #76 )
...
Add OrchestratorCompactor that monitors context size and automatically
compacts completed subtask results when the threshold is exceeded.
Uses Model Gateway inference for LLM-based summarization with truncation
fallback when gateway is unavailable.
- Create compaction.py with OrchestratorCompactor class
- Extend OrchestratorContext with compacted_summaries field and
get_pending_subtask_ids() method
- Add CompactionConfig to config.py with YAML loading
- Integrate compactor into SubagentDispatcher (async _safe_add_result)
- 25 tests covering threshold detection, compaction logic, gateway
interaction, context integrity, and dispatcher integration (97% coverage)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-10 21:04:11 +01:00
..
2026-03-10 21:04:11 +01:00
2026-03-08 20:57:53 +01:00
2026-03-08 21:40:36 +01:00
2026-03-08 21:47:24 +01:00
2026-03-09 07:31:37 +01:00
2026-03-09 07:31:37 +01:00
2026-03-09 07:31:37 +01:00
2026-03-09 07:31:37 +01:00
2026-03-09 07:31:37 +01:00
2026-03-09 07:31:37 +01:00
2026-03-09 07:31:37 +01:00
2026-03-09 07:43:40 +01:00
2026-03-09 07:43:40 +01:00
2026-03-09 07:49:12 +01:00
2026-03-09 07:52:55 +01:00
2026-03-09 07:59:04 +01:00
2026-03-09 07:59:04 +01:00
2026-03-09 08:02:35 +01:00
2026-03-09 08:06:18 +01:00
2026-03-09 11:15:23 +01:00
2026-03-09 08:09:16 +01:00
2026-03-09 08:16:18 +01:00
2026-03-09 11:18:29 +01:00
2026-03-09 18:52:57 +01:00
2026-03-09 19:35:14 +01:00
2026-03-09 21:28:06 +01:00
2026-03-10 07:02:40 +01:00
2026-03-10 07:09:05 +01:00
2026-03-10 00:45:37 +01:00
2026-03-10 10:54:38 +01:00
2026-03-10 10:55:49 +01:00
2026-03-10 12:07:23 +01:00
2026-03-10 13:30:10 +01:00
2026-03-10 13:43:50 +01:00
2026-03-10 13:57:40 +01:00
2026-03-10 14:05:38 +01:00
2026-03-10 14:12:45 +01:00
2026-03-10 15:09:03 +01:00
2026-03-10 15:15:08 +01:00
2026-03-10 15:18:27 +01:00
2026-03-10 15:25:39 +01:00
2026-03-10 15:31:18 +01:00
2026-03-10 15:34:42 +01:00
2026-03-10 15:41:08 +01:00
2026-03-10 15:48:11 +01:00
2026-03-10 15:51:13 +01:00
2026-03-10 15:55:53 +01:00
2026-03-10 15:59:34 +01:00
2026-03-10 16:02:33 +01:00
2026-03-10 16:04:43 +01:00
2026-03-10 16:08:28 +01:00
2026-03-10 16:12:11 +01:00
2026-03-10 16:14:56 +01:00
2026-03-10 16:18:51 +01:00
2026-03-10 16:22:34 +01:00
2026-03-10 16:26:23 +01:00
2026-03-10 16:29:57 +01:00
2026-03-10 16:33:08 +01:00
2026-03-10 16:35:29 +01:00
2026-03-10 16:43:32 +01:00
2026-03-10 16:47:36 +01:00
2026-03-10 16:51:27 +01:00
2026-03-10 16:54:34 +01:00
2026-03-10 20:08:58 +01:00
2026-03-10 20:22:02 +01:00
2026-03-10 20:30:04 +01:00
2026-03-10 17:06:20 +01:00
2026-03-10 20:37:01 +01:00
2026-03-10 20:52:23 +01:00
2026-03-10 20:43:21 +01:00
2026-03-10 21:04:11 +01:00
2026-03-10 07:30:39 +01:00
2026-03-10 07:36:34 +01:00
2026-03-10 07:46:19 +01:00
2026-03-10 09:38:27 +01:00
2026-03-10 09:46:00 +01:00
2026-03-10 10:36:50 +01:00