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
Commit 6d460a4
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/gateway/config-agents.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -662,7 +662,9 @@ Periodic heartbeat runs.
662
662
-`mode`: `default` or `safeguard` (chunked summarization for long histories). See [Compaction](/concepts/compaction).
663
663
-`provider`: id of a registered compaction provider plugin. When set, the provider's `summarize()` is called instead of built-in LLM summarization. Falls back to built-in on failure. Setting a provider forces `mode: "safeguard"`. See [Compaction](/concepts/compaction).
664
664
-`timeoutSeconds`: maximum seconds allowed for a single compaction operation before OpenClaw aborts it. Default: `900`.
665
-
-`keepRecentTokens`: agent cut-point budget for keeping the most recent transcript tail verbatim. Manual `/compact` honors this when explicitly set; otherwise manual compaction is a hard checkpoint.
665
+
-`reserveTokens`: token headroom kept available for the model response and future tool output after compaction. When the active model context window is known, OpenClaw caps impossible reserve values so smaller local models still keep usable prompt budget.
666
+
-`reserveTokensFloor`: minimum reserve enforced by the embedded runtime. Set `0` to disable the floor. The floor is also capped against the active model context window when that window is known.
667
+
-`keepRecentTokens`: agent cut-point budget for keeping the most recent transcript tail verbatim. Manual `/compact` honors this when explicitly set; otherwise manual compaction is a hard checkpoint. When the active model context window is known, OpenClaw caps impossible values to the prompt budget left after reserve tokens and summary overhead.
666
668
-`identifierPolicy`: `strict` (default), `off`, or `custom`. `strict` prepends built-in opaque identifier retention guidance during compaction summarization.
667
669
-`identifierInstructions`: optional custom identifier-preservation text used when `identifierPolicy=custom`.
668
670
-`qualityGuard`: retry-on-malformed-output checks for safeguard summaries. Enabled by default in safeguard mode; set `enabled: false` to skip the audit.
"Id of a registered compaction provider plugin used for summarization. When set and the provider is registered, its summarize() method is called instead of the built-in summarizeInStages pipeline. Falls back to built-in on provider failure. Leave unset to use the default built-in summarization.",
1460
1460
"agents.defaults.compaction.reserveTokens":
1461
-
"Token headroom reserved for reply generation and tool output after compaction runs. Use higher reserves for verbose/tool-heavy sessions, and lower reserves when maximizing retained history matters more.",
1461
+
"Token headroom reserved for reply generation and tool output after compaction runs. Use higher reserves for verbose/tool-heavy sessions, and lower reserves when maximizing retained history matters more. When the active model context window is known, impossible reserves are capped so prompt content still has usable budget.",
1462
1462
"agents.defaults.compaction.keepRecentTokens":
1463
-
"Minimum token budget preserved from the most recent conversation window during compaction. Use higher values to protect immediate context continuity and lower values to keep more long-tail history.",
1463
+
"Minimum token budget preserved from the most recent conversation window during compaction. Use higher values to protect immediate context continuity and lower values to keep more long-tail history. When the active model context window is known, impossible keep-recent budgets are capped to leave room for reserve headroom and summary overhead.",
1464
1464
"agents.defaults.compaction.reserveTokensFloor":
1465
1465
"Minimum floor enforced for reserveTokens in embedded OpenClaw compaction paths (0 disables the floor guard). Use a non-zero floor to avoid over-aggressive compression under fluctuating token estimates.",
0 commit comments