github / github/copilot-cli

Automatically create missing directories with a tool call!

Offen
#1,123 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:tools
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

### Describe the feature or problem you'd like to solve

When copilot-cli calls “Create” tool with a filepath which includes intermediate directories which are not existing, the tool call fails!

### Proposed solution

The “Create” tool and the other tools which create or update a file, could be smarter, and check in one go if all required directories for the given filepath are existing, and if not it creates them. I don’t understand why we have to see each time a error, then the AI has to get again asked how to handle and it starts to think again then it creates the missing directories first and finally it calls “Create” again with the content and the same filepath.

That’s so stupid, I think. Why does the tool not support the AI and just create the missing directories while it creates the file, and stops the tool from failing, because the full path wasn’t existing in forehand.

I think often that would save a lot of tokens / context window space and it would make the Agent much faster and might also reduce energy consumption in the server farm where the AI is running. It would reduce a lot of requests and save my time.

### Example prompts or workflows

I have not a specific prompt which can show this improvement / feature. But a screenshot from a session which shows the issue.

Imagehich would

### Additional context

We can make it configureable via copilot-cli config to enable or disable this feature if that would be easier for everyone.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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