Replies: 6 comments 5 replies
-
|
I've found using CLAUDE.md in the project directory to tell Claude to check which directory it's in before it does anything seems to fix this but yeah idk why Goose thinks this is good default behavior. If I start a chat in a directory idk why default behavior is to look outside that directory. It might be bringing irrelevant context with it when you start a new chat. If you found a better solution lmk. |
Beta Was this translation helpful? Give feedback.
-
|
Has anyone recently learned any additional system prompts we should tell Goose or have you adjusted your prompts to ensure this doesn't happen? I recently found Goose created a whole user directory on my C drive - absolutely scared the heck out of me - it was a reference in another open source solution... it did it again later in the conversation! I had to tell it explicitly not to. |
Beta Was this translation helpful? Give feedback.
-
|
Yea I've had that happen. We should have a some kind of setting or boundary where anything inside the selected folder is auto approved and outside requires approval. |
Beta Was this translation helpful? Give feedback.
-
|
Isn't that exactly what the goose ignore file is for? Or am I missing something? |
Beta Was this translation helpful? Give feedback.
-
|
I'm seeing the same thing, it's the developer extension which doesn't enforce the current workspace path when path's are provided in tool calls. Also believe the ignore file is just that, a way to ignore files, not a way to enforce actions to stay within a specific folder. Goose happily created temp files and folders all over my hard drive, which felt kind of dangerous. My solution was to disable the developer extension and instead use an MCP which provides file operations with folder enforcement. In my case, something I developed my self, and now Goose stays within it's folder. My advice would be to look for an MCP that is safer and provides the tools you need. |
Beta Was this translation helpful? Give feedback.
-
|
I've finally found a simple way to detain goose inside the CWD (current working directory). I use MCP official "Filsystem" extension. Please check this out. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When I'm running goose cli from a directory, I'd expect it to stay in it's directory or sub-directories. (Claude cli and Gemini cli do this, for example). This way the only files and folders the AI can wreck are contained to where I started it. But this is not the case.
For example, if I'm starting goose in ~/Documents/AI_generated_software/Sample1/ , I find goose writing files in ~/Documents/AI_generated_software/ .
This is super dangerous. It means goose can effectively delete all my config files and archived files, any documents, and so on. It's not just theoretical, in a prior session goose ran "cd ~/Documents/AI_generated_software && rm -rf Sample1 && mkdir -p Sample1/app/src/main/java/com/sample1" and completely deleted something.
I also had the same situation using the desktop app, although my main use is cli.
Yes, I COULD review every command and so on, but my idea is vibe coding and I don't really mind if it does crazy stuff, as long as it stays within the directory I can choose.
Am I missing some obvious way to restrict goose to the current working directory and subdirectories (and obviously being able to run things in path)? I am reading up on .gooseignore, but it seems for the developer tools only (and therefore not cli or desktop modes? I use mostly cli and think maybe developer is the way to go?).
I'm really new to goose and loving it so far.
Beta Was this translation helpful? Give feedback.
All reactions