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
Support per-agent compaction overrides (agents[].compaction.maxHistoryShare) #14446
Currently cfg.agents.defaults.compaction.maxHistoryShare applies globally. In multi-agent systems, coordinator agents (e.g., orchestration layer) benefit from higher retention, while execution agents benefit from earlier compaction to avoid degradation.
We need per-agent compaction overrides, similar to how memorySearch, heartbeat, and humanDelay already support per-agent configuration.
Proposed Change
Extend the schema to allow optional per-agent compaction configuration, for example:
Pass effectiveMaxHistoryShare to setCompactionSafeguardRuntime() instead of only the default value.
Acceptance Criteria
Backward compatible if per-agent compaction is not specified.
Allows coordinator agents to retain longer history while execution agents compact earlier.
No changes required to existing configs.
If you're comfortable submitting a small PR implementing this (~10-15 lines of code), that would be ideal. Do not modify minified JS locally — we want maintainability and update safety.
Activity
sebslight commentedon Feb 13, 2026
Closing as duplicate of #13736. If this is incorrect, comment and we can reopen.