anomalyco / anomalyco/opencode
@explore agent can trigger broad scans of macOS home directory and privacy prompts when launched from $HOME
@jlongster is already working on this.
Since Aug 24, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
When OpenCode is started from $HOME, the built-in @explore agent may perform broad filesystem searches across the home directory.
Example:
@explore models
This can traverse unrelated directories and trigger macOS privacy prompts for protected locations.
Expected
@explore should default to the detected project/worktree, not the entire home directory.
Suggested improvements:
Warn when launched from $HOME without a detected project.
Restrict Explore to the project/worktree by default.
Exclude protected/user-data directories from broad searches.
Require explicit approval before expanding outside the project scope.
Do not follow symlinks outside the project boundary.
Plugins
terminal - none
OpenCode version
1.18.22
Steps to reproduce
in terminal, try "@explore agents".
Screenshot and/or share link
Operating System
macos 26.6.2
Terminal
terminal macos
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.