zzhzz/dsh-ask-peer0

dsh-ask-peer

Peer-to-peer 'ask a colleague's agent' plugin for DeepSeek Harness

包名
dsh-ask-peer
版本
0.1.0
许可证
MIT
最近更新
2026年8月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zzhzz/dsh-ask-peer

Configuration

The full schema lives in src/config.ts; the table below is the summary. The profile patch is the bootstrap; UI-owned knobs are persisted to /settings-.json and override these values live.

KeyTypeDefaultMeaning
callerNamestring'local'Identity presented to peers on outbound asks; peers allowlist this name.
keyDirstring~/.dsh-ask-peer/keysDirectory holding this agent's Ed25519 signing keys (private key never leaves).
descriptionstring''Self-advertised description shown to asking agents (what you know).
tagsstring[][]Self-advertised topic tags used by asking agents for peer selection.
rosterRefreshMsnumber60000Roster refresh interval in ms; 0 disables periodic refresh (initial fetch still runs).
listenbooleanfalseStart the inbound ask server.
listenHoststring'127.0.0.1'Bind host for the ask server; keep loopback unless you trust the LAN.
listenPortnumber3877Bind port for the ask server.
peersPeerConfig[][]Friends we may ask; also the inbound caller allowlist.
requireTokenbooleantrueRequire a matching shared token on every inbound ask.
workspacestringprocess.cwd()Workspace the answering agent runs in.
providerstringProvider route for answering agents; harness default when omitted.
modelstringModel for answering agents; harness default when omitted.
timeoutMsnumber120000Default outbound ask timeout in ms.
maxAnswerCharsnumber48000Answer character cap; longer answers are cut and marked truncated.
approvalTimeoutMsnumber120000How long an inbound ask in ask mode waits for the owner before failing closed.
allowExecutionbooleanfalseLet ask-owned agents request tool permissions (future execute-mode hook; not wired yet).

Each PeerConfig entry:

KeyTypeDefaultMeaning
namestringPeer name, matching the peer's callerName on its own side.
hoststringHost or IP of the peer's ask server.
portnumber3877Port of the peer's ask server.
tokenstringOptional shared secret; the peer requires it when requireToken is on.
publicKeystringThe peer's sign (ed25519:...); replaces the shared token as the trust root (asks/adverts must be signed by it).
mode'ask' | 'auto' | 'deny''ask'Inbound policy for this friend.
descriptionstringOptional note describing whose agent this is.