-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
The hints system loads any AGENTS.md file it finds in the current directory tree, regardless of whether the project is actually the goose repository. This causes goose-specific setup instructions (like source bin/activate-hermit) to be applied to external projects where they don't belong.
Current Behavior:
- When working in any directory containing an
AGENTS.mdfile, goose loads it as "Project Hints" - The system walks from current directory up to git root, collecting all AGENTS.md files found
- These get embedded into the agent's instructions, leading to goose-specific commands being suggested in unrelated projects
Problem Scenario:
I'm working on a personal project using fnm for Node.js version management, but goose keeps trying to run source bin/activate-hermit because it's loading goose's AGENTS.md content.
Suggested Solutions:
- Repository-aware hints: Only load goose-specific hints when actually in the goose repository (detect via remote URL or specific markers)
- Scoped hint files: Use different filenames for goose-specific vs general project hints
- Explicit opt-in: Require a flag or config to load AGENTS.md from external projects
Root Cause:
The load_hint_files() function in crates/goose/src/hints/load_hints.rs treats all AGENTS.md files equally, without context about whether they belong to goose or an external project.
Edit: I told goose why its doing this and it removed it
What was causing the hermit issue:
- The Goose Desktop environment had a wrapper /opt/goose-desktop/resources/bin/node that automatically invoked hermit
- This was not something you set up - it was forced by the environment
What I did:
✅ Removed the hermit directory: rm -rf ~/.config/goose/mcp-hermit