xujiping/dsh-plugins--packages-dsh-llm-agent-bridge0

dsh-llm-agent-bridge

DSH LLM 适配器桥接插件:把对话框的模型路由接到本机外部智能体 CLI(claude code 的 stream-json、hermes 的 one-shot 等),在原对话框中直接与外部 agent 对话。

包名
dsh-llm-agent-bridge
版本
0.1.2
最近更新
2026年8月21日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xujiping/dsh-plugins#1adc7e76acdbef227d539c496cca5adf7a53d43e&path:packages/dsh-llm-agent-bridge

配置

默认无需配置即可用。要改 agent 或新增 agent,在 ~/.dsh/profiles/ /cordis.patch.yml 里加:

- insert:
    - id: llm-agent-bridge
      name: 'dsh-llm-agent-bridge'
      config:
        agents:
          - id: claude-code
            label: Claude Code
            protocol: claude-code
            command: /opt/homebrew/bin/claude
            cwd: ~/AiProjects
            contextWindow: 200000
          - id: hermes
            label: Hermes
            protocol: plain
            command: /opt/homebrew/bin/hermes
            promptVia: arg
            extraArgs: ['-z']
          - id: my-custom
            label: 我的 CLI
            protocol: plain
            command: /path/to/agent
            promptVia: arg

每个 agent 的配置项

字段默认说明
id—(必填)provider 路由名,唯一
label= id界面显示名
protocolplainclaude-code(stream-json JSONL)或 plain(stdout 原文即答案)
command—(必填)可执行文件路径
args[]固定参数
extraArgs[]附加参数(如 hermes 的 ['-z']
promptViaclaude-code→stdin,plain→argstdin(prompt 写 stdin)或 arg(prompt 作为最后一个参数)
cwd继承 hostCLI 工作目录(支持 ~
modelIddefault该 provider 下的模型 id
contextWindow200000展示用的上下文窗口
idleTimeoutMs600000CLI 无输出多久后强杀(防止挂起拖死对话)
showToolsfalse是否在对话框里展示外部 agent 的工具活动(claude-code 协议):false 只看最终回答(推荐);true 显示精简单行摘要

每个 agent 的配置项

字段默认说明
id—(必填)provider 路由名,唯一
label= id界面显示名
protocolplainclaude-code(stream-json JSONL)或 plain(stdout 原文即答案)
command—(必填)可执行文件路径
args[]固定参数
extraArgs[]附加参数(如 hermes 的 ['-z']
promptViaclaude-code→stdin,plain→argstdin(prompt 写 stdin)或 arg(prompt 作为最后一个参数)
cwd继承 hostCLI 工作目录(支持 ~
modelIddefault该 provider 下的模型 id
contextWindow200000展示用的上下文窗口
idleTimeoutMs600000CLI 无输出多久后强杀(防止挂起拖死对话)
showToolsfalse是否在对话框里展示外部 agent 的工具活动(claude-code 协议):false 只看最终回答(推荐);true 显示精简单行摘要