Skip to content

feat: structured multi-agent output#15515

Merged
jif-oai merged 3 commits into
mainfrom
jif/structured-multi-agent-message
Mar 23, 2026
Merged

feat: structured multi-agent output#15515
jif-oai merged 3 commits into
mainfrom
jif/structured-multi-agent-message

Conversation

@jif-oai

@jif-oai jif-oai commented Mar 23, 2026

Copy link
Copy Markdown
Collaborator

Send input now sends messages as assistant message and with this format:

author: /root/worker_a
recipient: /root/worker_a/tester
other_recipients: []
Content: bla bla bla. Actual content. Only text for now

@jif-oai

jif-oai commented Mar 23, 2026

Copy link
Copy Markdown
Collaborator Author

@codex reveiw

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f10e576f08

ℹ️ 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".

Comment thread codex-rs/core/src/tools/handlers/multi_agents/send_input.rs
Comment thread codex-rs/core/src/tasks/mod.rs
Comment on lines +68 to +72
fn is_instruction_text(text: &str) -> bool {
text.starts_with("author: ")
&& text.contains("\nrecipient: ")
&& text.contains("\nother_recipients: [")
&& text.contains("]\nContent: ")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Tighten inter-agent instruction detection to avoid false boundaries

Instruction detection is substring-based, so any assistant message containing these labels is treated as an inter-agent instruction. That feeds into is_user_turn_boundary, which drives rollback and token/turn accounting. A normal assistant response that prints this template can therefore be miscounted as a turn boundary and distort history behavior.

Useful? React with 👍 / 👎.

@jif-oai jif-oai merged commit 37ac0c0 into main Mar 23, 2026
34 of 36 checks passed
@jif-oai jif-oai deleted the jif/structured-multi-agent-message branch March 23, 2026 18:53
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant