Skip to content
This repository was archived by the owner on Oct 21, 2026. It is now read-only.

feat(server): delegate tasks to nested Codex agents - #54

Merged
donnes merged 4 commits into
mainfrom
t3code/show-nested-codex-agents
Oct 1, 2026
Merged

donnes merged 4 commits into
mainfrom
t3code/show-nested-codex-agents

Conversation

@donnes

@donnes donnes commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

Problem

Agents cannot hand independent tasks to another provider while keeping the work in the caller’s working copy. This limits parallel investigation and makes it difficult to return delegated results to the original thread.

Change

Add a delegate_task MCP tool that starts a child thread with a selected provider and model in the caller’s working copy. The parent’s Agents panel tracks the child, and the child’s result is delivered to the parent when its turn is idle. Delegations are recovered after server restarts, and delegated threads cannot delegate further. Document the behavior in the thread sidebar guide.

Scope and approval

This adds a focused server capability through the existing MCP toolkit and orchestration services, with a corresponding Agents panel update and user guidance. No approval reference was included in the supplied change details.

Verification

Added focused delegation service tests covering thread creation, result delivery, prevention of nested delegation, provider lookup, status mapping, and recovery after restart. The supplied change details do not include test run results.

Model and harness: Codex, GPT-6.

- Add an MCP tool to run provider tasks in the caller’s working copy
- Track delegated threads in the Agents panel and return their results to the parent
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XL labels Oct 1, 2026
- Finalize buffered assistant output before terminal session updates
- Keep delegated threads from spawning nested tasks across restarts
@donnes
donnes enabled auto-merge (squash) October 1, 2026 02:55
@donnes
donnes merged commit d5788cf into main Oct 1, 2026
14 checks passed
@donnes
donnes deleted the t3code/show-nested-codex-agents branch October 1, 2026 02:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size:XL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant