Introduction¶
If you use DeepSeek Harness (DSH) for conversational programming and Herdr Core (hc) to orchestrate multiple agents, the two sides often have separate interfaces and states: a conversation may be running in DSH while Herdr cannot see it; conversely, if you want another agent in Herdr to initiate a DSH task, there is no unified entry point. The community plugin dsh-herdr-bridge (repository Hariketsu/dsh-herdr-bridge) maps each DSH session to an hc terminal within Herdr. This allows for real-time status visibility in both the Herdr App and the command line, and enables other agents to drive DSH just like they drive Claude Code or Codex. It is maintained by Hariketsu and classified as a client-side plugin in the SkillHub directory; it has 3 GitHub stars (as of data scraping).
What is this¶
dsh-herdr-bridge is a Cordis plugin for DSH: when running DSH Desktop or dsh web, it synchronizes sessions to Herdr Core (hc), with each session corresponding to a terminal named dsh-<short id>. Bidirectional capabilities include: viewing DSH sessions (working, done, needs you, error) in Herdr; allowing agents that possess hc to start DSH, send follow-up messages, read replies, or take over sessions already opened in DSH; using hc within the DSH session shell to have the DSH-side model launch other agents and report back; approvals can be completed on either the DSH window or hc side, with the first responder taking effect.
The plugin’s current package version is 0.3.0 (see repository package.json), license MIT. The runtime environment requires Node >= 24.9.
Environment and Dependencies¶
The test combinations given in the official README are as follows:
| Component | Tested Version |
|---|---|
DSH Desktop or dsh web |
0.2.2-rc.2 |
herdr-core (hc) |
0.1.21, must be located in the PATH of the login shell |
| Herdr App (Optional) | 0.1.15 |
Tested on macOS; Windows and Linux are implemented but not declared as tested in the documentation. The DSH plugin interface is still evolving, so upgrading DSH may require synchronously upgrading the plugin.
Installation and Enablement¶
Before installing, exit DSH Desktop (⌘Q) or stop dsh web, then add the plugin to the profile actually being used (desktop or web). The following uses desktop as an example:
dsh plugin --profile desktop add dsh-herdr-bridge
Reopen DSH, send a message in any session, and you should see a dsh-<short id> terminal appear in Herdr App and hc ls, with the dsh template listed in hc templates.
The plugin loads inside the DSH process, with permissions consistent with the current DSH; it is recommended to read the repository source code and MIT license before installing to ensure consistency with local security policies.
Typical Usage¶
Working as usual in DSH¶
Sessions first appear in Herdr when they run. If a session hasn’t synced yet, you can type /herdr in that session to pull.
Driving DSH with agents on the Herdr side¶
Agents familiar with herdr-core skills can call DSH like any other terminal:
hc run --bg --name fix --cwd ~/repo dsh "Fix the failing test in x.rs"
hc wait fix
hc read fix
hc send --wait fix "Also cover the edge cases"
hc interrupt fix
Messages sent when a session is in “working” state are merged into the current turn, behaving similarly to steering within DSH. The session can still be viewed in DSH; if started by an agent in Herdr, it will display under that agent in the App.
Taking over sessions already opened in DSH¶
~/.dsh/herdr-bridge/bin/dsh-hc ls
hc run --bg --name login ~/.dsh/herdr-bridge/bin/dsh-hc attach 3b729fc9
The ID or title fragment in the second command is used to attach to an existing session.
Using other agents within a DSH session¶
The shell inside a DSH session can use hc just like agents running in hc. Helpers started from the DSH side will attach to that session and report back to it.
Approval and Bidirectional Messaging¶
When approval or a choice is needed, you can answer in the DSH window or hc; the first responder wins, and the dialog box on the other side will close. To reply to a pending session via hc, you must use --force:
hc send --force fix y
hc send --force fix n
hc send --force fix 1,3
Content sent via hc enters the DSH model as a user message. Any tool or agent capable of operating your hc theoretically can drive a bridged DSH session; please assess the risks yourself before use.
Configuration¶
Open Plugins → Herdr Bridge in DSH to configure how it appears in the Herdr App: grouped by folder (default), all placed in a space named DSH with one tag per session, or not displayed at all. You can also write to ~/.dsh/profiles/<profile>/cordis.patch.yml:
- id: herdr-bridge
config:
herdrPlacement: folder
herdrSpace: sp123
reconnectGraceSeconds: 30
hc: /path/to/hc
Where herdrPlacement takes values folder, dsh, or none; herdrSpace can specify a fixed Herdr App space ID; if hc is not in the login shell PATH, use the hc item to point to the executable.
Troubleshooting and Known Limitations¶
Log path: ~/.dsh/herdr-bridge/bridge.log.
| Symptom | Suggestion |
|---|---|
hc ls has no sessions |
Check logs; confirm DSH can find hc (set hc in config if necessary); do not run Desktop and dsh web simultaneously |
hc ls has sessions but none in App |
Check if herdrPlacement is none |
hc templates has no dsh |
Plugin not loaded, check logs; custom dsh templates are preserved if modified |
| Protocol version mismatch | Mostly terminals opened before upgrading, close and re-attach after closing |
| Broken after DSH upgrade | Submit an issue with logs in the repository |
Known limitations: Desktop and dsh web can only have one connection to Herdr, with the first one starting occupying it; seeing a session in Herdr does not clear the sidebar reminder on the DSH side; terminals opened before upgrading the plugin still use the old protocol until reopened.
Uninstall: After exiting DSH, run dsh plugin --profile <profile> remove dsh-herdr-bridge, and clean up the herdr-bridge entry in cordis.patch.yml and paths listed in README like ~/.dsh/herdr-bridge/.
Further Reading¶
docs/architecture.md in the repository (Chinese) explains design, state mapping, and test coverage; development instructions are in docs/development.md and AGENTS.md.
The DSH ecosystem follows the philosophy of “everything is a plugin”; the SkillHub plugin directory is a community site and has no official affiliation with DeepSeek / Hypersphere. If you need to treat DSH as a first-class terminal in unified agent orchestration, you can install dsh-herdr-bridge by following the steps above and reproduce the behavior using the commands in the official README.