Repository navigation
feat(subagents): List child agents from agent invocation state - #2109
Merged
Merged
Conversation
Add a read-only listAgents tool beside spawnAgent. It reads each direct child agent's status and latest task from SQL agent invocation records, so a coordinating conversation sees real child state instead of what the model remembers. Move the nested child result scenario to its own test file so the work suite stays under the file length limit. Refs #2105, #881 Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Assert listAgents output directly in the nested test instead of in a helper, use the repo's truncate name, and split the nested rules in the agent-invocations README into a list. Co-Authored-By: David Cramer <[email protected]>
Contributor
|
5 screenshot changes — 5 changed · 0 added · 0 removed Review screenshots in Frameshift
|
dcramer
approved these changes
Oct 13, 2026
4 tasks
This branch was successfully deployed
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.
A coordinating conversation could not see which child agents it started or what state they are in. It had only what the model remembered. This adds a read-only
listAgentstool besidespawnAgent. It is the next slice of #2105 and the listing part of #881.listAgentsreturns each direct child agent:conversation_id, optionalname,status, latesttask,errorwhen blocked or failed, andupdated_at. The data comes from SQL agent invocation records. The tool is registered only wherespawnAgentis, so it stays behindexperimental.subagents.Two rules apply only to nested child agents (
limits.maxAgentDepth> 0):replacedshowspending, because its open child work starts another agent invocation on it.The nested child test moved to
agent-invocation-nested.test.tssoagent-invocation-work.test.tsstays under the 1,000-line limit. It now also checks both rules through the tool.stopAgentis the next follow-up on #881.via David Cramer.
--
View Junior Session [Sentry]