feat: Claude Code-style team orchestration for Codex#1
Open
abhishekgahlot2 wants to merge 6 commits intomainfrom
Open
feat: Claude Code-style team orchestration for Codex#1abhishekgahlot2 wants to merge 6 commits intomainfrom
abhishekgahlot2 wants to merge 6 commits intomainfrom
Conversation
Enable team_orchestration as Stable/default-on. Add --teammate-mode CLI flag (auto/tmux/in-process). Add system prompt hint so model includes agents array in team_create calls. Include all 8 console-* crates: team (63), provider (75), runtime (28), tui (35), persist (23), plugin (21), security (48), cli (14). Key changes: - Feature::TeamOrchestration: Experimental -> Stable, default true - --teammate-mode flag on codex CLI, wired via CONSOLE_TEAMMATE_MODE - System prompt teaches model to pass agents array to team_create - 9 team tools register by default (no flag needed) - Lead delegation hard enforcement (tool-surface + dispatch lock) - Tmux pane lifecycle (spawn/close on shutdown/cleanup) - Safe subslice_offset replacing unsafe pointer math in wrapping.rs
…sults 5 bugs fixed from live testing: 1. Stale cross-process state: try_load_from_disk() now always reloads from disk so agents see tasks added by the lead process. 2. Lead pane untitled: added select-pane -T @lead during tmux team creation so agents can find the lead's pane. 3. Cross-process thread_id: in tmux mode, skip send_prompt for message delivery since thread_ids from disk belong to other processes. 4. Input injection: removed all send_message_to_pane calls from team_message and team_broadcast handlers. Messages are persisted to shared state only — no tmux send-keys for any content. 5. Task results: added result field to TeamTask. team_complete_task now accepts optional result text so the lead reads outputs directly from the task board via team_list_tasks.
a3c1a49 to
dd2439f
Compare
- Run cargo +nightly fmt with imports_granularity=Item - Remove unused dep serde_json from console-cli - Remove unused dev-dep tokio from console-provider, console-runtime - Add console-cli to cargo-shear ignore (not yet wired to any crate) - Remove unused imports in collab.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
What's included
10 team tools registered by default when
Feature::TeamOrchestrationis enabled:team_create— spawn a team with agents in tmux split panesteam_add_task/team_claim_task/team_complete_task— shared task board with dependency graph and auto-unblockteam_list_tasks— query tasks with status + results inlineteam_message/team_broadcast— persisted messaging (no tmux input injection)team_status/team_shutdown_agent/team_cleanup— lifecycle managementKey design decisions:
resultfield — lead reads outputs directly fromteam_list_tasksTeamStatealways reloads from disk so agents see changes from other processestmux send-keysfor message delivery — clean panes, same pattern as Claude Code teamsteam_complete_task(result: "...")instead of messaging the leadFiles changed
codex-rs/console-team/,console-provider/,console-runtime/,console-tui/,console-persist/,console-plugin/,console-security/,console-cli/core/src/team/handler.rs(825 lines),core/src/tools/spec.rs,core/src/features.rscore/src/codex.rs,core/Cargo.toml,Cargo.toml,Cargo.lockTest plan
cargo test -p console-team— 68 tests passcargo check -p codex-core— compiles cleancargo testfull workspace (CI)