Skip to content

Bug: Agent references hardcoded to default opencode path when using custom --config-dir #122

Description

@mariodian

When installing GSD with a custom config directory:

npx gsd-opencode@latest install --config-dir ~/.gsd/

The generated agent files (e.g. gsd-executor.md) contain hardcoded references to the default opencode path instead of the custom one.

Expected: References should point to the custom config directory:

@$HOME/.gsd/get-shit-done/references/mandatory-initial-read.md

Actual: References point to the default path:

@$HOME/.config/opencode/get-shit-done/references/mandatory-initial-read.md

Steps to reproduce

  1. Run npx gsd-opencode@latest install --config-dir ~/.gsd/
  2. Open the generated gsd-executor.md agent file
  3. Observe that @ references still point to $HOME/.config/opencode/get-shit-done/... instead of $HOME/.gsd/get-shit-done/...

Expected behavior

When --config-dir is provided, all generated agent files should use that path as the base for any internal references, rather than falling back to the default ~/.config/opencode/ path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions