feat: change multi-agent to use path-like system instead of uuids#15313
feat: change multi-agent to use path-like system instead of uuids#15313
Conversation
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 85edb9527f
ℹ️ 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: aa2b1d17db
ℹ️ 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".
| .get_agent_path() | ||
| .unwrap_or_else(AgentPath::root) |
There was a problem hiding this comment.
Derive child task paths from the true parent path
thread_spawn_source falls back to AgentPath::root() when parent_session_source.get_agent_path() is missing. Since spawn_agent.task_name is optional, non-root agents can be pathless; when they spawn a named child, that child is incorrectly created under /root/... instead of under the caller. This breaks relative tree semantics and can cause cross-branch path collisions.
Useful? React with 👍 / 👎.
This PR add an URI-based system to reference agents within a tree. This comes from a sync between research and engineering.
The main agent (the one manually spawned by a user) is always called
/root. Any sub-agent spawned by it will be/root/agent_1for example whereagent_1is chosen by the model.Any agent can contact any agents using the path.
Paths can be used either in absolute or relative to the calling agents
Resume is not supported for now on this new path