Skip to content

Commit 68c382a

Browse files
ArielSmoliarclaude
andcommitted
docs(config): correct maxConcurrent default in agent-defaults type comments
The JSDoc on AgentDefaults.maxConcurrent and subagents.maxConcurrent said "Default: 1", but the resolvers default to 4 and 8 respectively (DEFAULT_AGENT_MAX_CONCURRENT=4, DEFAULT_SUBAGENT_MAX_CONCURRENT=8 in src/config/agent-limits.ts), applied via applyAgentDefaults and asserted by src/config/config.agent-concurrency-defaults.test.ts. The user-facing docs (docs/gateway/config-agents.md) already say 4. Align the type comments so the inline reference matches the resolver, the test, and the docs. AI-assisted (Claude + Codex), comment-only, no behavior change. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
1 parent 3c02c23 commit 68c382a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/config/types.agent-defaults.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,15 +455,15 @@ export type AgentDefaultsConfig = {
455455
*/
456456
includeReasoning?: boolean;
457457
};
458-
/** Max concurrent agent runs across all conversations. Default: 1 (sequential). */
458+
/** Max concurrent agent runs across all conversations. Default: 4. */
459459
maxConcurrent?: number;
460460
/** Sub-agent defaults (spawned via sessions_spawn). */
461461
subagents?: {
462462
/** Prompt-only guidance for how strongly the main agent should delegate work. Default: "suggest". */
463463
delegationMode?: SubagentDelegationMode;
464464
/** Default allowlist of target agent ids for sessions_spawn. Use "*" to allow any configured target. */
465465
allowAgents?: string[];
466-
/** Max concurrent sub-agent runs (global lane: "subagent"). Default: 1. */
466+
/** Max concurrent sub-agent runs (global lane: "subagent"). Default: 8. */
467467
maxConcurrent?: number;
468468
/** Maximum depth allowed for sessions_spawn chains. Default behavior: 1 (no nested spawns). */
469469
maxSpawnDepth?: number;

0 commit comments

Comments
 (0)