feat: add Explore mode as subagent-only modality#24448
Conversation
Introduce Explore mode for delegated read-only research subagents: - Add 'explore' to chat_mode ENUM (migration 000471) - Add deployment-config storage for Explore model override - Implement spawn_explore_agent tool with read-only allowlist - Add behavior-profile resolver for model selection hierarchy - Harden RBAC: use AsChatd for daemon reads, ActionRead/ActionUpdate for admin API calls - Add admin UI component for Explore model override settings - Add integration tests for subagent spawning and tool filtering
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 26f03cf826
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 55b71fe472
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 16d0cf2573
ℹ️ 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".
|
@codex review |
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1536eea8b0
ℹ️ 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".
|
@codex review |
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a8f0e28f3d
ℹ️ 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".
|
@codex review |
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4090169839
ℹ️ 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".
|
@codex review |
|
|
Codex Review: Didn't find any major issues. Chef's kiss. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Introduce Explore mode, a read-only subagent modality for delegated
discovery and code investigation.
What
Adds a
spawn_explore_agenttool that creates child chats restricted toread-only operations. An admin can optionally configure a deployment-wide
model override so Explore subagents use a model optimized for large context
or reasoning without changing the root chat's model.
Backend
ChatModeExploreenum value (migration 000471).spawn_explore_agenttool definition with read-only allowlist:read_file,execute,process_output,read_skill,read_skill_file.Write tools, file editors, and nested subagent spawning are blocked.
(
agents_chat_explore_model_overrideinsite_configs).then global default. Silent fallback with warning log when the override
becomes unavailable.
AsChatdfor daemon reads,ActionReadandActionUpdateonResourceDeploymentConfigfor admin API calls.spawn_explore_agentfor read-only research,matching the planning prompt guidance.
"treated as unset" so admins can clear them explicitly.
Frontend
ExploreModelOverrideSettingscomponent in admin agent behavior settings.Uses
ModelSelector, handles unavailable model warnings, and supportsexplicit Save and Clear actions.
clear, instead of Clear auto-submitting behind the scenes.
Tests
TestExploreSubagentIsReadOnly(full spawn flow, toolverification, prompt overlay, DB state).
unconfigured override scenarios.
dbauthz_test.goforGetChatExploreModelOverrideandUpsertChatExploreModelOverride.model rejection, non-admin denial.