Tool to check for directory -`mkdir` tool call could use either repair or to be allowed or not

Offen
#531 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@ahmadbilaldev arbeitet bereits daran.

Seit 29.6.2026.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

Summary

Had a case where DeepkSeep 4 Pro tried to see if a directory exist via mkdir -p which raised error:

 BASH  [{"command":"mkdir -p /Users/me/projects/some/project/docs","description":"Ensure docs directory exists"}]
 └ Error: Tool "bash" not found. Available tools: read_file, edit_file, read_directory, write_file, read_multiple_files, grep, glob, shell_command,
   monitor_command, monitor_events, shell_tasks, todo_write, ask_user_question, kill_shell, exit_plan_mode, enter_plan_mode, diagnostics, get_self_knowledge,
   web_search, web_fetch, explore, plan

✻ Thought for 1 second
  I need to use shell_command instead of bash. Let me also use the todo_write to track progress.```

Probably don't want to allow (maybe?) but it can use shell instead?


### Expected Behavior

Some safe way to check if directory exists but not create directory if not allowed; unsure of proper permissions.

### Actual Behavior

Error it tool call.

### Steps to reproduce the issue

I had the agent try to write up a guide in a /docs directory so it decided to see if the directory existed first.

### Command Code Version

0.40.10

### Operating System

macOS

### Terminal/IDE

ghostty

### Shell

zsh

### Additional context

_No response_
Vorherrschende Sprache
Keine Sprachdaten
Sterne
4k
Forks
350
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus CommandCodeAI/command-code

Alle Issues in CommandCodeAI/command-code

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.