Skip to content

feat: add reference agent for searching external repositories#13692

Open
thdxr wants to merge 2 commits intodevfrom
feat/reference-agent
Open

feat: add reference agent for searching external repositories#13692
thdxr wants to merge 2 commits intodevfrom
feat/reference-agent

Conversation

@thdxr
Copy link
Copy Markdown
Member

@thdxr thdxr commented Feb 15, 2026

Summary

  • Adds ability to configure external git repositories or local paths in opencode.json under a new references field
  • Creates a reference subagent that can search across referenced projects using glob, grep, and read tools
  • Git references are automatically cloned (shallow) to a cache directory and kept fresh (stale threshold: 1 hour)
  • Supports branch specification via url#branch syntax

Example Configuration

{
  "references": [
    "git@github.com:Effect-TS/effect.git",
    "https://github.com/some/repo#main"
  ]
}

This enables querying external codebases without needing to clone them locally or add them as workspace dependencies.

Add ability to configure external git repositories or local paths that
subagents can search across. References are configured in opencode.json
and automatically cloned/fetched to a cache directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant