feat: promote allowSubAgents to top-level with default true - #276
Merged
Conversation
- Move allowSubAgents from experimental namespace to top-level config - Change default from false to true (subagent compression is now on by default) - Full backward compat: old experimental.allowSubAgents still read - Update hooks.ts (3 sites), index.ts (1 site), config.ts, config-validation.ts - Update dcp.schema.json, README.md, README.zh-CN.md, CONFIGURATION.md/zh-CN - Update AGENTS.md §2.4 default config
…G.md Oracle review finding: validateConfigTypes validated the deprecated experimental.allowSubAgents but not the new preferred top-level key. Added boolean type check for top-level allowSubAgents. Also updated TESTING.md config examples to use new top-level form.
This was referenced Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Promotes
allowSubAgentsfrom the experimental namespace to a top-level config field, and changes the default fromfalsetotrue.Changes
config.allowSubAgents: boolean(wasconfig.experimental.allowSubAgents)true(wasfalse) — subagent compression is now on by defaultexperimental.allowSubAgentsconfigs still work (top-level takes priority)index.ts:111,hooks.ts:89/110/166allowSubAgentsinvalidateConfigTypesallowSubAgents+ deprecatedexperimental.allowSubAgentsWhy
The feature is stable and well-tested. Subagent sessions benefit from compression just like main sessions.
Dual-Agent Review
Test Results