feat: introduce subagent architecture and CLI enhancements#58
Open
feat: introduce subagent architecture and CLI enhancements#58
Conversation
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.
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.
.gitignoreto 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.