Skip to content

Remove personal home-directory paths from scripts and agent docs #776

Closed

Description

@EVWorth

What's wrong

The repo is public, but four files hard-code a path under one person's home directory, which includes their local username:

  • scripts/dev.sh (line 4): a PATH export naming a personal ~/.cargo/bin and a Linuxbrew prefix
  • scripts/doc-keeper-sweep.sh (line 16): the default REPO_DIR
  • .opencode/AGENTS.md (line 206): the example SQLPILOT_REPO_DIR
  • .opencode/command/doc-keeper.md (line 86): the documented default for SQLPILOT_REPO_DIR

Find them with:

git grep -n -E '/(var/)?home/[a-z]+/' -- scripts .opencode

Besides identifying a person and their machine, these defaults are wrong for anyone else who clones the repo.

Fix

  • scripts/doc-keeper-sweep.sh: default REPO_DIR to the repo the script lives in, e.g. "$(git -C "$(dirname "$0")" rev-parse --show-toplevel)".
  • scripts/dev.sh: rely on the caller's PATH. If something must be added, use "$HOME/.cargo/bin".
  • .opencode/AGENTS.md and .opencode/command/doc-keeper.md: show a placeholder such as $HOME/repos/sqlpilot, or describe the new default.

The paths remain in git history. Rewriting history is a separate decision and probably not worth it for a home-directory path, but it's worth knowing.

Activity

  1. added
    documentation
    on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions