Skip to content

Commit 226215f

Browse files
authored
feat: list_dir tool (#4817)
Add a tool to list_dir. It is useful because we can mark it as non-mutating and so use it in parallel
1 parent 338c2c8 commit 226215f

File tree

7 files changed

+1001
-13
lines changed

7 files changed

+1001
-13
lines changed

codex-rs/core/src/model_family.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ pub fn find_family_for_model(mut slug: &str) -> Option<ModelFamily> {
120120
base_instructions: GPT_5_CODEX_INSTRUCTIONS.to_string(),
121121
experimental_supported_tools: vec![
122122
"read_file".to_string(),
123+
"list_dir".to_string(),
123124
"test_sync_tool".to_string()
124125
],
125126
supports_parallel_tool_calls: true,
@@ -133,7 +134,7 @@ pub fn find_family_for_model(mut slug: &str) -> Option<ModelFamily> {
133134
reasoning_summary_format: ReasoningSummaryFormat::Experimental,
134135
base_instructions: GPT_5_CODEX_INSTRUCTIONS.to_string(),
135136
apply_patch_tool_type: Some(ApplyPatchToolType::Freeform),
136-
experimental_supported_tools: vec!["read_file".to_string()],
137+
experimental_supported_tools: vec!["read_file".to_string(), "list_dir".to_string()],
137138
supports_parallel_tool_calls: true,
138139
)
139140

0 commit comments

Comments
 (0)