openai / openai/codex

Allow users to create subagents directly from the Subagents panel

Open
#40,941 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app enhancement subagent
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

Feature request

Add a + button to the Subagents section so users can create a subagent directly from the interface, without first asking the main session to create one.

Problem

When the main session already has a large prompt or a long-running task, asking it to create a subagent adds more instructions and coordination overhead to the main context. This can consume useful context and delay the primary task, even when the user simply wants to delegate an independent piece of work.

The current workflow makes the main session the mandatory entry point for subagent creation. That is inconvenient for parallel work, especially when the user already knows which task should be delegated.

Proposed workflow

  1. The user clicks + beside Subagents.
  2. Codex opens a new side chat dedicated to the subagent.
  3. The user provides the subagent prompt in that side chat, without adding the full prompt to the main session.
  4. The main session receives a lightweight notification that the side chat exists, without importing the entire subagent conversation into its context.
  5. The subagent works independently and reports its status in the Subagents section.
  6. When the subagent finishes, its result becomes available to the main session.
  7. The main session can then take ownership of the result, review it, or continue the work based on the returned output.

Why this would help

This would make subagents useful for genuine parallel collaboration instead of requiring the main session to coordinate every delegation step. It would reduce unnecessary context growth, keep the primary task focused, and let users start independent work immediately from the visible Subagents panel.

The side chat should remain linked to the main session for status and final handoff, while keeping the full subagent prompt and intermediate work isolated unless the user or main session explicitly requests it.

Relationship to existing request

This complements #26227, which focuses on persisting side chats as child threads attached to the main thread. This request focuses on the user-facing creation flow: allowing a new subagent side chat to be started directly from the + button in the Subagents section.

UI reference

The intended location is the currently unused space on the right side of the Subagents row, matching the existing + buttons in the Outputs and Sources sections.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Subagents section and compare its row with the existing + buttons in Outputs and Sources. Read the relationship to #26227 before tracing how side chats are linked. Done means a + control opens an independent side chat, keeps it linked for status and handoff, and exposes the result to the main session.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.