feat(acp): enable automatic compaction

This commit is contained in:
Hypatia May
2026-07-15 16:42:32 +08:00
parent b4ec4060a7
commit 6eddf38a77
2 changed files with 15 additions and 0 deletions
+12
View File
@@ -48,6 +48,18 @@
Verify your work by running the code or tests. Keep answers brief and factual.
# Summarize an older range when derived history approaches the context window.
# This leaf consumes `ctx.llm` and the app's `agent/pre-step` seam.
- id: compact-basic
name: '@deepseek-ai/dsh-compact-basic'
config:
contextWindow: 128000
thresholdRatio: 0.8
retainTokens: 20480
summarizationModel: ''
maxTokens: 8192
compactionRetries: 1
# Expose fresh-child `spawn` and completed-prefix `fork` through separate tool
# names so multi-child scenarios exercise both transports. These leaves follow
# the app because it provides `ctx.agents` and `ctx.tools`.