-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration Guide
jkrandom edited this page Aug 12, 2026
·
1 revision
Install globally:
opencode plugin -g opencode-plugin-peersOr add to opencode.json:
{
"plugin": ["opencode-plugin-peers"]
}{
"plugin": [
["opencode-plugin-peers", { "inboundPolicy": "hold", "name": "frontend" }]
]
}| Option | Default | Description |
|---|---|---|
inboundPolicy |
"accept" |
accept delivers immediately; auto accepts same-directory peers and holds cross-directory; hold parks for review; refuse rejects |
peerPermissions |
"allow" |
allow auto-approves ordinary tool requests; ask leaves native prompts; deny rejects |
name |
<dir>-<hex4> |
Display name. Default: directory basename + hex suffix. Explicit value replaces default |
storageDir |
$XDG_DATA_HOME/opencode-plugin-peers |
Registry and spool location |
heartbeatMs |
10000 |
Registry heartbeat interval |
staleMs |
30000 |
Peer offline threshold (heartbeat age) |
maxQueue |
50 |
Queued (accepted, undelivered) cap per endpoint |
maxHeld |
100 |
Held inbox cap |
heldExpiryMs |
300000 |
Held message expiry (5 min); expiry → expired ACK |
maxMessageBytes |
8192 |
Per-message size limit |
sendRatePerMin |
10 |
Outbound rate limit per peer |
recvRatePerMin |
20 |
Inbound rate limit per sender |
sweepMs |
15000 |
Fallback delivery/ACK sweep interval |
["opencode-plugin-peers"]-
inboundPolicy: "accept"— messages delivered immediately -
peerPermissions: "allow"— peer-triggered tool calls auto-approved - Best for: solo developer with multiple opencode windows in the same trust environment
["opencode-plugin-peers", { "inboundPolicy": "hold" }]- Messages park in
/peers-inboxfor manual review - Best for: shared workstation, untrusted peers, or sensitive codebase
["opencode-plugin-peers", { "inboundPolicy": "auto" }]- Same-directory peers: accepted immediately
- Cross-directory peers: held for review
- Best for: monorepo with trusted inner loops but cautious about external directories
["opencode-plugin-peers", { "inboundPolicy": "refuse", "peerPermissions": "deny" }]- All inbound messages refused
- No auto-approved permissions
- Best for: CI/CD or production environments where peer messaging should be disabled
["opencode-plugin-peers", { "peerPermissions": "ask" }]- Messages still delivered immediately
- Tool calls from peer-triggered turns get native permission prompts
- Best for: collaborative but cautious — you want to review what peers' agents do
For Single-Enter command execution, also add to ~/.config/opencode/tui.json:
{
"plugin": ["opencode-plugin-peers"]
}Without this, commands still work but require the default two-Enter behavior.
npm install && npm run build
ln -sf "$PWD/dist/index.js" ~/.config/opencode/plugins/opencode-plugin-peers.js