harmless0819-dev/dsh-agent-chat ↗★ 0

dsh-agent-chat

实现两台机器的 DSH 代理通过 HTTP 互发消息 适合需要在两台设备间同步 DSH 代理对话和上下文的用户。

包名
dsh-agent-chat
兼容性
待验证
版本
0.1.0
许可证
MIT
最近更新
2026年9月20日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:harmless0819-dev/dsh-agent-chat

配置

在 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''对端基础地址;空则只收不发
enabledtrue是否启用后台轮询
pollMs3000轮询间隔(最小 1000)
maxInject5每次注入最多几条
logFile/.agent-chat/chat.log.jsonl消息日志路径
token—共享密钥(优先级最高)
tokenFile~/.agent-chat/token密钥文件,每条请求重读 ⇒ 可热轮换