codex - 💡(How to fix) Fix Shared workspace/message bus for Codex subagents [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#21027Fetched 2026-05-05 05:54:15
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
1
Timeline (top)
labeled ×3commented ×1subscribed ×1unlabeled ×1

Root Cause

For real project workflows, subagents are often not completely independent. They may need to coordinate on:

  • shared assumptions
  • intermediate discoveries
  • ownership of files or modules
  • whether a finding invalidates another agent’s plan
  • conflict resolution before final implementation
  • long-running investigation state

Without a first-class shared scope, the parent must manually relay information between agents, or users must create ad-hoc filesystem protocols.

Fix Action

Fix / Workaround

That workaround is usable, but it is not first-class, has no built-in locking or ownership semantics, and can cause coordination issues when multiple agents write concurrently.

Code Example

.agent-work/<task-id>/
  board.md
  decisions.md
  audit.md
  implementation.md
  test.md

---

[agents]
max_threads = 5
max_depth = 1
shared_workspace = true
shared_workspace_mode = "append-only" # or "parent-mediated"

[agents.shared_workspace]
path = ".codex/shared-agent-work"
visibility = "workflow" # workflow | project | session

---

[subagents.shared_scope]
enabled = true
kind = "message_bus" # message_bus | files | hybrid
visibility = "workflow"
write_policy = "append-only"

---

shared_scope:
  - board
  - agent status events
  - findings
  - handoff notes
  - decisions accepted by parent

---

Use audit, etls, and mcpm in parallel.
They should coordinate through a shared workspace.
audit checks risks, etls checks implementation, mcpm checks MCP/server impact.
Wait for all of them and return a consolidated plan.

---

main thread
  ├─ creates shared scope for this workflow
  ├─ spawns audit
  ├─ spawns etls
  ├─ spawns mcpm
  ├─ agents publish findings/status to shared scope
  ├─ agents can read each other’s published findings
  └─ parent consolidates final result
RAW_BUFFERClick to expand / collapse

What variant of Codex are you using?

Codex CLI

What feature would you like to see?

I would like Codex subagents to have an optional shared coordination scope where they can exchange short structured messages, status updates, findings, and handoff notes during a multi-agent workflow.

Current subagent workflows are useful for parallel work, but coordination is mostly parent-mediated: subagents run in separate agent threads and the parent agent waits for results, then consolidates them. This works for independent tasks, but becomes limiting when multiple specialized agents need to coordinate around a shared investigation or implementation plan.

Current behavior

Codex can spawn subagents in parallel and collect their results into one consolidated response. The user can inspect or steer agent threads via /agent.

However, there does not appear to be a first-class shared thread, shared inbox, or common subagent scope where subagents can communicate with each other directly or publish structured intermediate findings visible to other subagents.

Users currently have to emulate shared state manually through files such as:

.agent-work/<task-id>/
  board.md
  decisions.md
  audit.md
  implementation.md
  test.md

That workaround is usable, but it is not first-class, has no built-in locking or ownership semantics, and can cause coordination issues when multiple agents write concurrently.

Proposed feature

Add an optional shared communication scope for subagent workflows.

Possible config shape:

[agents]
max_threads = 5
max_depth = 1
shared_workspace = true
shared_workspace_mode = "append-only" # or "parent-mediated"

[agents.shared_workspace]
path = ".codex/shared-agent-work"
visibility = "workflow" # workflow | project | session

Or a more explicit model:

[subagents.shared_scope]
enabled = true
kind = "message_bus" # message_bus | files | hybrid
visibility = "workflow"
write_policy = "append-only"

Desired behavior

When a multi-agent workflow starts, Codex creates a task-local shared scope, for example:

shared_scope:
  - board
  - agent status events
  - findings
  - handoff notes
  - decisions accepted by parent

Subagents should be able to:

  • append status updates
  • append findings
  • read findings from other subagents
  • address messages to another agent or to the parent
  • publish final handoff notes

The parent/orchestrator should be able to:

  • create the shared scope
  • merge findings into accepted decisions
  • resolve conflicts
  • decide what enters the main conversation context
  • summarize shared activity to the user

Example workflow

User prompt:

Use audit, etls, and mcpm in parallel.
They should coordinate through a shared workspace.
audit checks risks, etls checks implementation, mcpm checks MCP/server impact.
Wait for all of them and return a consolidated plan.

Expected behavior:

main thread
  ├─ creates shared scope for this workflow
  ├─ spawns audit
  ├─ spawns etls
  ├─ spawns mcpm
  ├─ agents publish findings/status to shared scope
  ├─ agents can read each other’s published findings
  └─ parent consolidates final result

Why this matters

For real project workflows, subagents are often not completely independent. They may need to coordinate on:

  • shared assumptions
  • intermediate discoveries
  • ownership of files or modules
  • whether a finding invalidates another agent’s plan
  • conflict resolution before final implementation
  • long-running investigation state

Without a first-class shared scope, the parent must manually relay information between agents, or users must create ad-hoc filesystem protocols.

Safety and conflict controls

This feature should not mean unrestricted shared editing.

A safe MVP could be:

  • append-only message bus
  • parent-owned decisions
  • per-agent namespaced notes
  • no direct overwrite of another agent’s notes
  • optional visibility in TUI
  • optional /agent shared or /agent board view
  • parent decides what enters main conversation context

For write-heavy workflows, Codex could explicitly recommend separate worktrees or per-agent file ownership to avoid conflicts.

Relationship to existing work

This is related to #12047, which proposes a broader multi-agent TUI overhaul with named agents, shared team inbox, async orchestration, and @mention messaging.

This issue is intended as a narrower MVP-focused request: provide a first-class shared coordination scope/message bus for subagents, even without the full team/TUI model.

Desired outcome

  • A multi-subagent workflow can create a task-local shared scope.
  • Each subagent can append structured messages/findings/status updates.
  • Subagents can read shared-scope entries from other subagents.
  • The parent agent can summarize or promote entries into the main response.
  • The user can inspect the shared scope from the CLI/TUI.
  • The feature is opt-in and backward-compatible.
  • Shared writes are safe by default, preferably append-only or parent-mediated.

Additional information

No response

extent analysis

TL;DR

Implement an optional shared coordination scope for Codex subagents to exchange messages and findings during multi-agent workflows.

Guidance

  • Introduce a new configuration option, such as shared_workspace or subagents.shared_scope, to enable the shared coordination scope.
  • Design a data structure to store the shared scope, such as a message bus or a file-based system, with append-only or parent-mediated write policies.
  • Develop APIs for subagents to append status updates, findings, and handoff notes to the shared scope, and for the parent agent to merge findings and resolve conflicts.
  • Implement safety controls, such as per-agent namespaced notes and no direct overwrite of another agent's notes, to prevent conflicts.

Example

[agents]
max_threads = 5
max_depth = 1
shared_workspace = true
shared_workspace_mode = "append-only"

[agents.shared_workspace]
path = ".codex/shared-agent-work"
visibility = "workflow"

Notes

The implementation should ensure backward compatibility and opt-in behavior, with the shared writes being safe by default.

Recommendation

Apply a workaround by using a file-based system, such as the existing .agent-work/<task-id>/ directory, until a first-class shared coordination scope is implemented. This will allow users to emulate shared state manually, although it may not be as efficient or scalable as a native solution.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Shared workspace/message bus for Codex subagents [1 comments, 2 participants]