Skip to content

Developer MCP incorrectly includes goose-specific setup instructions in external projects #5681

@sheikhlimon

Description

@sheikhlimon

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.md file, 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:

  1. Repository-aware hints: Only load goose-specific hints when actually in the goose repository (detect via remote URL or specific markers)
  2. Scoped hint files: Use different filenames for goose-specific vs general project hints
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    clarificationprovide explanation for goose's behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions