Skip to content

feat: agent controller#8783

Merged
jif-oai merged 2 commits into
mainfrom
jif/agent-control
Jan 6, 2026
Merged

feat: agent controller#8783
jif-oai merged 2 commits into
mainfrom
jif/agent-control

Conversation

@jif-oai

@jif-oai jif-oai commented Jan 6, 2026

Copy link
Copy Markdown
Collaborator

Added an agent control plane that lets sessions spawn or message other conversations via AgentControl.

AgentBus (core/src/agent/bus.rs) keeps track of the last known status of a conversation.

ConversationManager now holds shared state behind an Arc so AgentControl keeps only a weak back-reference, the goal is just to avoid explicit cycle reference.

Follow-ups:

  • Build a small tool in the TUI to be able to see every agent and send manual message to each of them
  • Handle approval requests in this TUI
  • Add tools to spawn/communicate between agents (see related design)
  • Define agent types

@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: afa4f6ff73

ℹ️ 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/codex.rs Outdated
@jif-oai

jif-oai commented Jan 6, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@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: 3e071c460d

ℹ️ 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/agent/control.rs
Comment thread codex-rs/core/tests/suite/remote_models.rs
Comment thread codex-rs/core/src/agent/control.rs
Comment thread codex-rs/core/src/agent/control.rs
Arc::clone(&parent_session.services.skills_manager),
initial_history.unwrap_or(InitialHistory::New),
SessionSource::SubAgent(SubAgentSource::Review),
parent_session.services.agent_control.clone(),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

we'll need to replace codex_delegate with agentcontrol

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

not blocking for this pr

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes agree

Comment thread codex-rs/core/src/conversation_manager.rs

@pakrym-oai pakrym-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'd prefer to move status into Conversation and not have to manage a separate Hash for them but not blocking.

@jif-oai

jif-oai commented Jan 6, 2026

Copy link
Copy Markdown
Collaborator Author

Will do in a follow-up PR to keep things clean

@jif-oai jif-oai merged commit 1dd1355 into main Jan 6, 2026
26 checks passed
@jif-oai jif-oai deleted the jif/agent-control branch January 6, 2026 19:08
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 6, 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.

2 participants