Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

chore: nit explorer (#12315)

jif-oai03ff04cd658b
diff --git a/codex-rs/core/src/agent/builtins/explorer.toml b/codex-rs/core/src/agent/builtins/explorer.toml
index 0b6def0323..e69de29bb2 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 97cde2c8a3..16460fb7fd 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 2180574cc5..38aa22b6c4 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 {