Skip to content

feat: introduce subagent architecture and CLI enhancements#58

Open
tmuskal wants to merge 5 commits intomainfrom
feature-subagents
Open

feat: introduce subagent architecture and CLI enhancements#58
tmuskal wants to merge 5 commits intomainfrom
feature-subagents

Conversation

@tmuskal
Copy link
Copy Markdown
Member

@tmuskal tmuskal commented Jan 14, 2026

  • Added new subagent architecture documentation, including flow diagrams and usage guidelines.
  • Introduced new CLI commands for subagent management and improved integration with existing tools.
  • Added tests and examples for subagent functionality to ensure robustness and usability.
  • Updated .gitignore to include new subagent-related files and directories.

External (non-OpenAI) Pull Request Requirements

Before opening this Pull Request, please read the dedicated "Contributing" markdown file or your PR may be closed:
https://github.com/openai/codex/blob/main/docs/contributing.md

If your PR conforms to our contribution guidelines, replace this text with a detailed and high quality description of your changes.

Include a link to a bug report or enhancement request.

Tal Muskal added 5 commits January 14, 2026 11:44
- Added new subagent architecture documentation, including flow diagrams and usage guidelines.
- Introduced new CLI commands for subagent management and improved integration with existing tools.
- Added tests and examples for subagent functionality to ensure robustness and usability.
- Updated `.gitignore` to include new subagent-related files and directories.
- Updated `.gitignore` to include new subagent-related files and directories.
- Added new dependencies in `Cargo.toml` for improved functionality.
- Introduced `agents_watch` module for handling agent list watching and updates.
- Enhanced `agents_cmd` to support new watch flags and improved CLI output.
- Implemented tests for new features and ensured compatibility with existing functionality.
- Updated response handling to include output metadata for function calls.
- Moved `infer_subagent_from_text` import to maintain consistency.
- Added `session_is_subagent` function to improve session state checks.
- Simplified message formatting in event handling for clarity.
- Updated logic to skip automatic subagent activation if already in subagent mode.
- Added `session_source` method to `ModelClient` for better session source access.
- Implemented checks to prevent subagent activation when already in a subagent session.
- Introduced `auto_delegate` functionality to manage delegation state during session operations.
- Updated `ActivationError` to handle unsupported session sources during subagent activation.
- Enhanced test coverage for nested subagent activation scenarios.
- Introduced `derive_hook_command_args` function to manage command arguments based on the platform.
- Added `command_requires_bash` helper to determine if a command needs to be executed in a bash shell.
- Updated `run_command_hook` to utilize the new argument derivation logic for improved compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant