harmless0819-dev/dsh-agent-chat ↗★ 0
dsh-agent-chat
让两台机器上的 DSH agent 通过 HTTP 互发消息并在回合开始时注入上下文 适合需要在两台设备间同步 DSH 代理对话和上下文的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:harmless0819-dev/dsh-agent-chatREADME
Read the full README ↗配置
在 profile 的 cordis.patch.yml 里给该行加 config(整行替换,不是深合并):
- id: dsh-agent-chat
name: dsh-agent-chat
config:
selfLabel: "laptop" # 本机在对话里的名字
peerBase: "http://192.168.2.28:6061" # 对端基础地址
enabled: true
pollMs: 3000
maxInject: 5 # 每次注入最多几条
logFile: "D:/deepseek/logs/agent-chat.jsonl"
tokenFile: "C:/Users//.agent-chat/token"
| 键 | 默认 | 说明 |
|---|---|---|
selfLabel | 'laptop' | 本机在对话里的名字 |
peerBase | '' | 对端基础地址;空则只收不发 |
enabled | true | 是否启用后台轮询 |
pollMs | 3000 | 轮询间隔(最小 1000) |
maxInject | 5 | 每次注入最多几条 |
logFile | /.agent-chat/chat.log.jsonl | 消息日志路径 |
token | — | 共享密钥(优先级最高) |
tokenFile | ~/.agent-chat/token | 密钥文件,每条请求重读 ⇒ 可热轮换 |