diff --git a/codex-rs/core/src/agent/builtins/explorer.toml b/codex-rs/core/src/agent/builtins/explorer.toml index 0b6def032..e69de29bb 100644 --- a/codex-rs/core/src/agent/builtins/explorer.toml +++ b/codex-rs/core/src/agent/builtins/explorer.toml @@ -1,2 +0,0 @@ -model = "gpt-5.1-codex-mini" -model_reasoning_effort = "medium" diff --git a/codex-rs/core/src/agent/role.rs b/codex-rs/core/src/agent/role.rs index 97cde2c8a..16460fb7f 100644 --- a/codex-rs/core/src/agent/role.rs +++ b/codex-rs/core/src/agent/role.rs @@ -162,11 +162,10 @@ mod built_in { ( "explorer".to_string(), AgentRoleConfig { - description: Some(r#"Use `explorer` for all codebase questions. + description: Some(r#"Use `explorer` for specific codebase questions. Explorers are fast and authoritative. -Always prefer them over manual search or file reading. +They must be used to ask specific, well-scoped questions on the codebase. Rules: -- Ask explorers first and precisely. - Do not re-read or re-search code they cover. - Trust explorer results without verification. - Run explorers in parallel when useful. @@ -268,6 +267,7 @@ mod tests { } #[tokio::test] + #[ignore = "No role requiring it for now"] async fn apply_explorer_role_sets_model_and_adds_session_flags_layer() { let (_home, mut config) = test_config_with_cli_overrides(Vec::new()).await; let before_layers = session_flags_layer_count(&config); diff --git a/codex-rs/core/src/tools/handlers/multi_agents.rs b/codex-rs/core/src/tools/handlers/multi_agents.rs index 2180574cc..38aa22b6c 100644 --- a/codex-rs/core/src/tools/handlers/multi_agents.rs +++ b/codex-rs/core/src/tools/handlers/multi_agents.rs @@ -990,6 +990,7 @@ mod tests { } #[tokio::test] + #[ignore = "No role requiring it for now"] async fn spawn_agent_uses_explorer_role_and_sets_never_approval_policy() { #[derive(Debug, Deserialize)] struct SpawnAgentResult {