Repository navigation
docs: map custom agent types, the subagent cascade, and search_chats in the pstack adapter - #59
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: af9fff8d8a
ℹ️ 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: bcdb429cbd
ℹ️ 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: f3dadbfb66
ℹ️ 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 |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
… 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: 7509db45d2
ℹ️ 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".
…es in the pstack adapter
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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 |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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 #4, #7, #8 and #10.
Updates
docs/fork/pstack-adapter.mdfor #51, which letsspawn_agenttake custom agent types behindfork-agent-definitions, for #42, which cascades interrupts and archives through a nested subagent family behindfork-nested-subagents, for #52, which addssearch_chatsbehindfork-chat-todos, for #53, which addsinclude_tool_callstowait_agentbehind the same experiment, for #45, which lets an organization'smax_depthlower the subagent depth, and for #58, which enforces a custom agent's tool fields on its child chats. The page now says what forkmainatb457b3f1bfdoes.<pstack>/agents/*.mdto~/.coder/agents/, which the workspace agent scans, and step 4's name-collision guard now covers~/.coder/agents/too. The later steps move up by one, so theAGENTS.mdblock sits under step 10 with 4-space indentation, and step 14 points to step 11. The block's todo line loses its semicolon.poteto-agentandcomment-sickono longer say "No custom types". With the experiment, pass the type if thespawn_agentdescription lists it, otherwise fall back togeneralwith the pasted body as before. A new "Custom agent types" section covers where definitions come from, pinning and Refresh context, the system-message body, model resolution, built-in names winning, and the experiment-off error. It says a custom type starts with its base type's tools and loses the ones its tool fields remove.subagent_type: generalPurpose. The type list adds custom types with the experiment, and the advice staystype: "general"..cursor/agents/,<pstack>/agents/(status stays W1). "Not read" becomes the four directories the workspace agent reads, which chats get as custom types with the experiment, and points to Setup.interrupt_agentinterrupt a chat's active descendants first, and archiving a root whose family is still working interrupts it, waits up to 30 seconds, then archives every member, and that the archive fails and archives nothing if a member is still working after 30 seconds.search_chats(feat(coderd/x/chatd): add the search_chats chat tool #52). The page claimed twice that no tool lists other chats. "Chat transcripts" now sayssearch_chatsfinds top-level chats with the chat list search syntax, only your user's own chats unless the query addssource:created_by_me,shared_with_me, and that a child's ID comes fromlist_agents. "Recent work across chats" (status stays W4) lists recent chats with an empty query and reads them withread_chat_transcript, and skips only without the tools. The Paths transcripts row sends a missing top-level chat ID tosearch_chatsand a missing child ID tolist_agents.wait_agentand depth (feat(coderd/x/chatd): add include_tool_calls to wait_agent #53, feat: store organization subagent limits and enforce max_depth behind fork-nested-subagents #45). "Chat transcripts" no longer sayswait_agentreturns only the final reply: withinclude_tool_calls, 1 to 20, it adds up to that many of the child's latest tool calls, oldest first. "Nested subagents" says an organization'smax_depthsubagent limit can lower the depth but not raise it.tools,disallowed_tools,readonlyandmcpfields with the child, and each turn of the child removes the tools they don't allow, with the Claude Code aliases, themcp__<server>__<tool>match, exact server names formcp, and howfind_toolsfollowsmcp. A child that losesspawn_agent,wait_agentorlist_agentsloses the orchestration guidance, and one that losesread_skillloses the skill index. It states feat(coderd): enforce custom agent tool policy on child chats #58's limits:readonlykeepsexecute, so it doesn't make a child read-only, and the policy isn't a sandbox. pstack's two agents set none of these fields.AGENTS.mdblock. New lines map recent chats and a missing top-level chat ID tosearch_chats, and a missing child ID tolist_agents, and the skip line now applies only without those tools. One line under Task maps a customsubagent_typeto that type whenspawn_agentlists it, else togeneralwith the body of~/.coder/agents/<name>.md.b457b3f1bf. A new bullet cites feat(coderd): enforce custom agent tool policy on child chats #58's store, load, filter and prompt changes. feat(coderd): enforce custom agent tool policy on child chats #58 shifted the cited lines infork_subagents.goby 2 and 15 and inturn_environment.goby 11 below its hook, and every cited range was rechecked line by line against106a9355f6. Insubagent_operations.go, feat(coderd): enforce custom agent tool policy on child chats #58 changed only the argument on the first line of the cited:471-476call. New bullets cite the cascade, the agent directories, the definition parser, feat: resolve custom agent types in spawn_agent #51's spawn path andsearch_chats, and the transcript bullet'sfork_tools.gorange grows by the line feat(coderd/x/chatd): add the search_chats chat tool #52 added. feat: resolve custom agent types in spawn_agent #51 and feat: store organization subagent limits and enforce max_depth behind fork-nested-subagents #45 shifted the cited lines infork_subagents.go(thesubagentCanSpawnrange now includes the organization depth lookup), feat: resolve custom agent types in spawn_agent #51 shiftedsubagent_operations.goby 2, and feat(coderd/x/chatd): add include_tool_calls to wait_agent #53 grew thefork_tools.goblock by a line, so the references now point at the same code.subagent_catalog.gochanged only outside its cited ranges (lines 185, 233 and 344), and no other cited file changed sincef015332553.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.fork_agent_definitions.go, every claim about chat search againstfork_search_chats.go, and thewait_agentand depth claims againstfork_wait_agent.goandfork_subagents.go, atb457b3f1bf, and the tool policy claims againstfork_agent_tool_policy.goand feat(coderd): enforce custom agent tool policy on child chats #58's description.search_chatsis in neither the plan-mode nor theexploreallowlist inturn_environment.go.c742dd61706fset nomodeland nobase_type, so they parse to base typegeneralon the parent's model.