Repository navigation
docs: map subagent concurrency and live limits in the pstack adapter - #70
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d3a6790ec9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: afe876cce9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6fc271bcb5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 314c35e640
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…qualify the licensed cap in the pstack adapter
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5b090d0085
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Merge evidence for head
|
Part of #7 and #8.
Updates
docs/fork/pstack-adapter.mdfor #47 and #49, which add subagent concurrency and live limits behindfork-nested-subagents, and for #65, which adds user-tier agent definition routes behindfork-agent-definitions. The page now says what forkmainate155b422a2does.--chat-max-concurrent-subagentsand--chat-max-concurrent-subagents-per-familyalso queue children, and a child's own ancestors don't count against the default cap or these limits, so a coordinator inwait_agentdoesn't block its workers and more than 10 subagent turns can run at once.--chat-max-live-subagents-per-familycounts unarchived subagents that arerunning,interrupting,requires_action, orpaused. At the limit,spawn_agentfails withcannot create a child agent: this chat family has, andmessage_agentto a finished child fails withcannot resume the child agent:. The agent then pages throughlist_agentswithhas_moreandoffset, and waits on arunning,interrupting, orpausedchild, keeping apausedchild unless the user says otherwise. Otherwiserequires_actionchildren or the children's own workers, whichlist_agentsdoesn't show, hold the limit, so the agent callsinterrupt_agenton each child whose remaining work it doesn't need. That interrupts the child's active descendants for any status. An interruptedrequires_actionchild runs again before it stops, so the agent waits on it before retrying. For descendants it can't wait on, it runssleep 30and retries, and tells the user only after several retries fail. The flags default to 0, which means no limit, and the organization'smax_concurrent,max_concurrent_per_family, andmax_live_per_familyvalues apply too, with the lower value winning.spawn_agentdoesn't offer stored definitions yet. The catalog still reads only the chat's pinned context.e155b422a2. feat: enforce subagent concurrency limits behind fork-nested-subagents #47 and feat: enforce the live subagent limit per family behind fork-nested-subagents #49 shifted the cited lines infork_subagents.go,subagent_operations.go,worker.goandcodersdk/fork_chat_config.go, and every cited range was rechecked line by line againste2f73afa5d. feat: enforce subagent concurrency limits behind fork-nested-subagents #47 replacedmaxSubagentDepthwithsubagentLimitsinfork_capacity.go, so the organizationmax_depthreference and thesubagentCanSpawnrange now point there and at the new function body. New bullets cite the flags,subagentLimits, the admission wrapper, the live limit on spawn and resume, its error, the live-status query, the user routes, and the catalog's pinned-context read.Validation
markdown-table-formatter1.6.1 andmarkdownlint-cli20.16.0 on the page: 0 errors. The diff has no semicolons, em dashes, en dashes, or spaced double hyphens.e155b422a2infork_capacity.go,fork_subagents.go,chat_capacity.sql,fork_chat_config.go,coderd/fork_agent_definitions.go, andcoderd/x/chatd/fork_agent_definitions.go, and checked against the descriptions of feat: enforce subagent concurrency limits behind fork-nested-subagents #47, feat: enforce the live subagent limit per family behind fork-nested-subagents #49, and feat: serve user-tier agent definitions behind fork-agent-definitions #65.