anomalyco / anomalyco/opencode

@explore agent can trigger broad scans of macOS home directory and privacy prompts when launched from $HOME

Open
#44,731 1 comment 0 reactions 1 assignee View on GitHub

@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
Image
Operating System

macos 26.6.2

Terminal

terminal macos

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.