Install
Install with PiG
pig install npm:@srobroek/pi-external-repo-workerInstall with Pi
pi install npm:@srobroek/pi-external-repo-workerPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"subagents": {
"agents": [
"./agents"
]
},
"extensions": [
"./_kit/prereqs.ts"
]
}README
Written by the package's publisher, shown as published in version 0.12.0 (README.md). PiG does not review it.
build
An external-repo-worker subagent for work in a repository outside the caller's
project.
Agent
external-repo-worker (mode subagent, steps 150) is for a task that names a repo URL,
org/name or an external checkout path. It:
- clones into a unique
mktemp -d /tmp/agentic/external-repos/<repo>-XXXXXXcheckout (or uses the exact path the parent gives), and refuses to work inside the caller's repository tree; - reads the target's own
AGENTS.md,CLAUDE.md,CONTRIBUTING.md,README.mdand tooling before editing, and does not import the caller's conventions; - makes the bounded change, runs the target's verification, and reports changed files and the check result;
- commits, pushes or opens a PR only when the parent delegated that, and keeps internal ids (beads, agents, gates) out of text written to an external repo.
It may read, search, edit, run shell commands, search the web and pack a repo with
repomix_pack (from the repomix plugin); it may not spawn subagents. Its checkouts live outside the project, so OpenCode asks for
external_directory access unless your config allows /tmp/agentic/**.
Converted from the omp-plugins build agent with scripts/convert-agent.ts. The
agent pins no model. It declares the standard model tier through the
x-opencode-model-role request header, so with the model-roles plugin the standard
tier picks its model. Without it the agent inherits the caller's model; set
agent.external-repo-worker.model to pin one.
Pi tools
Pi external-repo-worker is allowlisted for symbol_search, module_report, project_report, read_symbol, read_enclosing, ast_grep_search, ast_grep_outline, lens_diagnostics, and pi_lens_activate_tools from required companion pi-lens, web_search, fetch_content, get_search_content, and source_check from required companion pi-web-access, and repomix_pack from required companion @srobroek/pi-repomix. pi-subagents is required for the subagent runtime. context7 must be configured as a Pi MCP server in ~/.pi/agent/mcp.json; it is selected by mcp:context7.
pi-lens keeps ast_grep_* tools inactive until pi_lens_activate_tools runs; they are available starting the next turn. This agent's allowlist omits lsp_navigation and ast_grep_replace.
Install
Install the Pi package from npm:
pi install npm:@srobroek/pi-external-repo-worker
opencode plugin add 'github:srobroek/harness-plugins::path:plugins/build/opencode'
OMP installs the agent from the generated OMP directory:
omp plugin install /path/to/harness-plugins/plugins/build/omp
This plugin ships no skills, so it is not in the Claude Code marketplace.
Works with
This package works with these pi packages. Install them next to it.
| Package | Required | For | Install |
|---|---|---|---|
pi-subagents | yes | the subagent tool | pi install npm:pi-subagents |
pi-lens | yes | code-intelligence tools for the subagent | pi install npm:pi-lens |
pi-web-access | yes | web search and fetch tools for the subagent | pi install npm:pi-web-access |
@srobroek/pi-repomix | yes | repository packing for the subagent | pi install npm:@srobroek/pi-repomix |