返回目录
模型与 MCP 插件

dsh-agent-bridge

wiiwings1988/dsh-agent-bridge

Use Claude Code and Codex sessions inside DeepSeek Harness (DSH): list, open, continue, pin, rename and archive them in the DSH Workspace browser.

Stars
1
Forks
0
Issues
0
更新
15 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:wiiwings1988/dsh-agent-bridge

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-agent-bridge

English | 中文

Use your Claude Code and Codex sessions inside DeepSeek Harness (DSH). They appear in the DSH Workspace browser next to your DSH sessions, grouped under the same project folders. You can open them, keep talking, and pin, rename or archive them there.

Unofficial community plugin. Not affiliated with DeepSeek, Anthropic or OpenAI.

Features

  • One sidebar for all your agents. Claude Code and Codex sessions are listed in the stock DSH Workspace browser under their project folder, with a small Claude or Codex mark on each row.
  • The row menu works on them. Pin, Rename and Archive appear in each row's menu and use DSH's own pin indicator and rename dialog. Pins and archives survive restarts.
  • Continue any session. Opening a row shows the full transcript. You can send messages, stop a turn, answer permission prompts and questions, pick the model and reasoning effort, and attach images. Claude runs through the Claude Agent SDK and Codex through codex app-server, so the sessions stay compatible with the CLIs.
  • Same controls as DSH. Enter sends and Shift+Enter starts a new line. A running session shows DSH's own spinner in its row, and a "Working for N s" line stays under your message until the turn ends. A turn that leaves a background task running, such as a server Claude started, still ends on time, and the task keeps running. For Claude and Codex, the permission menu beside the attach button chooses Default (ask each time), Read Only, Workspace Write or Full Access; Full Access needs confirming first, the choice is kept per engine, and scheduled messages always use Default. Claude's thinking summaries appear above its replies once each thinking block completes.
  • Start new sessions. Hover a workspace and click its New session button to pick a DSH, Claude or Codex session; Claude and Codex start right in that workspace's folder (DSH 0.2.2). You can also start one in any folder, or clone a repository first.
  • Search the contents of every session.
  • Workbench tabs next to each conversation:
    • Terminal.
    • Files: browse, edit and upload.
    • Git: status, diff, branches, worktrees, and drafting commit messages.
    • Extensions: Claude MCP servers, skills and your global git identity.
    • Tasks: TaskMaster.
  • Scheduled follow-ups. Send a message to a session at a set time.
  • Optional tools:
    • Screen control through Peekaboo (macOS).
    • A browser through Playwright MCP.
    • Voice dictation and read-aloud through any OpenAI-compatible speech endpoint.
    • Desktop notifications when a turn ends.
  • Pi sessions, off by default. Turn on piEnabled to list and continue Pi sessions too. Pi runs commands and edits files without asking, so a message sent from DSH acts with your user's rights. Only dialogs raised by Pi extensions appear as cards; dialogs that need typed text are cancelled.
  • Agent Bridge settings tab. Settings → Agent Bridge shows the plugin and DSH versions, the Claude Code, Codex and Pi executables the plugin starts with their versions, and the versions this release was verified with. A version outside that list is marked Not verified; it may still work.
  • Safe fallback. If a future DSH release changes the sidebar so the plugin cannot join it, the sessions move to a standalone "Claude / Codex" page instead of breaking the sidebar.

Requirements

  • DeepSeek Harness 0.2.x, desktop app or dsh web. It is tested with 0.2.1 and 0.2.2-rc.1.
  • Node.js 22.19 or newer. DSH ships its own Node.js.
  • Claude Code, installed and logged in. Tested with 2.1.319.
  • Codex CLI is optional. Without it, only Claude sessions are listed. Tested with 0.165.0.
  • Pi is optional and tested with 1.4.0.
  • Developed and tested on macOS. Linux should work; Windows is untested.

Install

Choose the DSH profile you run. The desktop app uses desktop; dsh web uses web.

dsh plugin --profile desktop add github:wiiwings1988/dsh-agent-bridge

Restart DSH. The desktop app ships the dsh command at /Applications/DeepSeek Harness.app/Contents/Resources/runtime/cli/bin/dsh on macOS.

To uninstall, run dsh plugin --profile desktop remove dsh-agent-bridge and restart DSH.

Configuration

Every option has a default, so no configuration is required. To change one, add an entry to your profile's cordis.patch.yml, for example ~/.dsh/profiles/desktop/cordis.patch.yml:

- id: agent-bridge
  config:
    claudeExecutable: /path/to/claude
    codexEnabled: false
Option Default Meaning
claudeExecutable claude Claude Code command or path. A bare name is looked up on PATH, then in ~/.local/bin, ~/.claude/local, /opt/homebrew/bin and /usr/local/bin.
codexEnabled true List and run Codex sessions.
codexExecutable codex Codex command or path, looked up the same way.
codexApprovalPolicy untrusted untrusted or on-request.
codexSandbox workspace-write read-only or workspace-write.
codexHistoryTurns 20 How many recent Codex turns to load when a session is opened.
piEnabled false List and run Pi sessions. Pi does not ask before acting.
piExecutable pi Pi command or path, looked up the same way.
permissionMode default Claude permission mode: default, acceptEdits or plan.
allowedTools [] Claude tools that run without asking.
sessionLimit 100 Most recent sessions listed per engine.
defaultCwd home folder Folder for new sessions when none is chosen.
memoryFile empty A file appended to the system prompt of new Claude sessions, for example the MEMORY.md of a DSH memory plugin.
computerUse true Give Claude screen control through Peekaboo, if Peekaboo is installed.
peekabooCommand peekaboo Peekaboo command or path.
browserUse true Give Claude a Playwright browser.
browserHeaded false Show the browser window.
voiceBaseUrl empty OpenAI-compatible speech endpoint. Empty turns voice off.
voiceApiKeyEnv VOICE_API_KEY Name of the environment variable that holds the speech API key.
voiceSttModel, voiceTtsModel, voiceTtsVoice whisper-1, tts-1, alloy Speech models and voice.
taskmasterCommand npx Command used to run TaskMaster.
watchIntervalMs 500 How often an open transcript is checked for changes.
heapWatchMb 0 For diagnosing memory problems: heap size in MB that writes one heap snapshot and a log under ~/.dsh/agent-bridge/heap. A snapshot can hold conversation text. 0 is off.

Data and privacy

  • The plugin reads sessions where the CLIs keep them: ~/.claude (or CLAUDE_CONFIG_DIR), ~/.codex, and, when Pi is on, ~/.pi/agent/sessions (or PI_CODING_AGENT_SESSION_DIR, PI_CODING_AGENT_DIR). It never uploads them.
  • Rename, fork and delete change the CLI's own session files, so the CLIs see the same result.
  • Pins, archives, drafts and scheduled messages are stored in ~/.dsh/agent-bridge/state.json.
  • The terminal, file and git tabs act on your machine with your user's rights. They are served only to the DSH UI, behind DSH's own login token.
  • Voice sends audio and text only to the speech endpoint you configure.

Known limits

  • Very long sessions use a lot of memory: opening a Claude session reads its whole file three times, and a Pi session twice. A 67 MB session peaks near 500 MB per request.
  • A Pi session with a malformed entry does not open.
  • Pi: commands run with ! and compaction summaries are not shown in the transcript, a custom sessionDir in Pi's settings is not followed, and file edits have no diff view.

Development

The build reuses the DSH client bundle preset and type definitions, so it needs a DeepSeek Harness source checkout. Clone this repository three folder levels below the checkout root:

git clone https://github.com/deepseek-ai/deepseek-harness.git dsh
cd dsh && pnpm install && pnpm run build:artifacts
git clone https://github.com/wiiwings1988/dsh-agent-bridge.git local/plugins/dsh-agent-bridge
cd local/plugins/dsh-agent-bridge && pnpm install
pnpm run typecheck && pnpm run build
  • Run your build: dsh plugin --profile web add link:$PWD installs the working copy into a profile.
  • Unit tests: run one file at a time, for example node --import tsx/esm --test tests/graft.test.mjs.
  • End-to-end tests: tests/e2e*.mjs drive a running dsh web instance with Playwright. Pass the instance through DEV_BASE (URL) and DEV_HOME (its DSH_HOME). tests/fixtures holds stand-ins for the Claude and Codex executables.

lib/ is committed, so installing from GitHub needs no build step. Rebuild it before committing source changes.

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: llm、deepseek、deepseek-harness、openai-codex。