Wolfloiz / dsh-janus
Janus bridge plugin: control Herdr from DeepSeek Harness, and DeepSeek Harness from Herdr
About this plugin
Written by the registry from verified metadata, not from the README.
dsh-janus is a DSH plugin published from the dsh-janus package in the Wolfloiz/plugin-janus repository.
Capabilities and topics
Janus
Two faces, one bridge: control Herdr from DeepSeek Harness, and DeepSeek Harness from Herdr.

Janus is a DeepSeek Harness plugin plus a Herdr mod. Each side can drive the other:
- The DSH agent can list and read Herdr spaces, tabs, terminals, and agents; send text or keys; start agents; focus; notify; and (with explicit confirmation) kill or close things.
- Herdr can list live DSH sessions, send follow-up / steer / inject prompts,
cancel turns, create persistent sessions in the web process, and launch
visible one-shot
dsh headlessjobs — including resuming them by session id.
Português · Publishing guide · Herdr recipe · Plan
How it works
┌──────────────────────── DSH (dsh web process) ────────────────────────┐
│ agent ──tools──> dsh-janus ──execFile──> herdr-app / hc ───────────┼──> Herdr
│ │ │
│ ├── HTTP 127.0.0.1:<port> + bearer token │
│ │ GET /v1/state, /v1/events, /v1/terminal │
│ │ POST /v1/prompt, /v1/spawn, /v1/job… │
│ └── agent.followup / steer / cancel │
└──────────────────────────────▲────────────────────────────────────────┘
│ fetch, token from ~/.dsh/janus/bridge.json (0600)
┌──────────────────────────────┴────────────────────────────────────────┐
│ Herdr mod: 150 px dock in the sidebar + 560×720 panel (ctrl-shift-j) │
└───────────────────────────────────────────────────────────────────────┘
The plugin writes a discovery file with a fresh random token on every start. The mod reads it, polls state every 3 seconds, and shows status changes as Herdr toasts. The bridge binds loopback only; all routes require the token.
Features
DSH → Herdr (janus_herdr tool)
| Action | What it does |
|---|---|
status | Herdr app status plus hc terminals |
list | Spaces, tabs, terminals, agents |
read | A terminal's screen and history |
send | Paste text and press Enter |
keys | Named keys (enter, esc, ctrl+c, …) |
run | Start a program/agent in a new terminal |
open | New space/tab with an agent and optional first task |
focus | Focus a space, tab, or terminal |
notify | Toast in Herdr through the mod |
kill / close | Destructive; require confirm: true |
Herdr → DSH (janus_dsh tool and the mod)
| Action | What it does |
|---|---|
sessions | Live sessions: title, status, cwd, model, last text |
prompt | followup, steer, or inject into another session |
cancel | Cancel the active turn |
spawn | New persistent session in the DSH web process |
job | Visible dsh headless run in a Herdr tab |
job_continue | Resume a job with dsh headless --session-id |
notify | Herdr toast |
The Herdr panel also has a dock, notifications, a prompt input, a two-click Cancel, New session / New job forms, and a job list with Terminal and Continue.
Requirements
- DeepSeek Harness
0.2.2-rc.1(or a compatible0.2.x) with thewebprofile. - Herdr with
herdr-appandhconPATH. - Node.js 22+ (DSH ships its own runtime).
Install
From this checkout (complete setup)
git clone https://github.com/Wolfloiz/plugin-janus.git
cd plugin-janus
bash scripts/install.sh
The installer:
- installs the
dsh-janusbundle withdsh plugin --profile web add; - re-enables the saved sign-in in the
headlessprofile and points its default model atdeepseek-account/deepseek-flash; - symlinks
mods/janusinto~/.config/herdr-app/mods/janus; - inserts the 150 px
janus-dockinto the active layout, with backups; - binds
ctrl-shift-j → janus.openinkeys.json; - links the
janusCLI.
Then restart the DSH web process:
# in the terminal running dsh web
Ctrl+C
dsh web
Reopen http://127.0.0.1:3080 and resume the session. The Herdr side applies
live; the DSH side needs the restart to load the final module.
As a DSH bundle (plugin only)
Once dsh-janus is on npm:
dsh plugin --profile web add dsh-janus
Or install the repository root from Git at a pinned commit:
dsh plugin --profile web add \
"git+https://github.com/Wolfloiz/plugin-janus.git#<sha>"
The repository root is a bundle: it declares dsh.bundle, and its main
re-exports the implementation from dsh-janus/lib/index.js. The npm package in
dsh-janus/ is the same version/name for npm installs. dsh plugin add
appends the bundle to dsh.profile.bundles. See Publishing.
Herdr mod only
Clone the repo and symlink the mod, then add the dock/keys (the installer does both):
cd plugin-janus
ln -sfn "$PWD/mods/janus" ~/.config/herdr-app/mods/janus
herdr-app check ~/.config/herdr-app/mods/janus
The gallery version of this repo follows the Herdr sharing convention:
mods/janus/, RECIPE.md, preview.png, and the GitHub topic herdr-mod.
Use
In DSH, ask in natural language:
- “List the Herdr spaces and agents, and tell me which one is blocked.”
- “Read the last 80 lines of terminal
t2j.” - “Open a Codex agent in Herdr in this repo with the task: review the diff.”
- “Send
run the teststo terminalt7.” - “List my DSH sessions and send a follow-up to the one that is working.”
- “Start a headless job to run the suite and tell me when it finishes.”
In Herdr:
- The JANUS strip shows the bridge state and up to three sessions; click
openfor the panel. ctrl-shift-jopens the panel; Esc closes it.- Select a session, type a prompt, and choose Send; the chips switch the delivery mode to Steer or Inject.
- New session creates a persistent web session; New job opens a visible headless run. Jobs have Terminal and Continue.
done/job_done/noticeevents become toasts.
Security
- The bridge listens on
127.0.0.1only, on an ephemeral port. - A 32-byte random bearer token lives in
~/.dsh/janus/bridge.jsonwith mode0600; the directory is0700. - Every route requires
Authorization: Bearer <token>. - Destructive Herdr actions (
kill,close) requireconfirm: true; the panel asks for a second click on Cancel. - The plugin does not log prompts or terminal contents.
- Herdr mods are trusted code with network access. Keep
bridge.jsonprivate.
Verified
Live on 2026-11-11, with the DSH web running:
- DSH → Herdr:
status,run,send,read,kill(echo terminal round trip). - Herdr → DSH: prompt on an idle session (
JANUS-PROMPT-OK), headless job (JANUS-HEADLESS-OK), and Continue with--session-id(JANUS-CONTINUE-OK). - In-process spawn (
JANUS-SPAWN-OK). - Notifications:
janus notifyproduced a Herdr toast. - Tests: 16/16 with
npm test;herdr-app check mods/januspasses.
Development
npm test # controller, bridge, and plugin wiring
npm run check # node --check on all sources
npm run check:mod # herdr-app check mods/janus
npm run dev:bridge # fake DSH + fake Herdr for the mod
npm run build:index # docs/index.json + docs/icons/janus.svg
The dev bridge writes a discovery file and serves two fake sessions, so you can work on the Herdr UI without restarting DSH:
node scripts/dev-bridge.js --discovery "$HOME/.dsh/janus/bridge.json"
Project layout
package.json Git bundle: dsh.bundle + main -> dsh-janus/lib/index.js
cordis.patch.yml root bundle patch (inserts the janus row)
dsh-janus/ npm package + plugin implementation (Cordis, no runtime deps)
lib/index.js plugin entry
lib/bridge.js HTTP + token + discovery
lib/controller.js sessions, jobs, Herdr actions
lib/herdr.js JSON-first herdr-app / hc wrapper
lib/tools.js janus_herdr / janus_dsh definitions
cordis.patch.yml bundle layer
bin/janus.js debug CLI
test/ node:test + doubles
mods/janus/ Herdr mod (gpui-kit)
main.js dock + full panel
mod.json
RECIPE.md Herdr gallery recipe
preview.png 960×600 gallery preview
keys.json suggested global binding
scripts/ install / uninstall / patch / dev bridge / index
docs/ GitHub Pages index + assets
Publishing
See PUBLISHING.md for the three channels:
- Herdr Gallery — GitHub topic
herdr-mod, rootRECIPE.md,preview.png,mods/janus/; appears at herdr.dev/mods within the hour. - DeepSeek Harness plugin index — publish the
dsh-janusbundle to npm or use the default Git source, generatedocs/index.json, enable GitHub Pages, and share the index URL; users add it in Plugins → Custom plugin indexes → Discover. The index URL is a list, not a tarball: add it as a source, then install the Janus card. - Trendshift — sign in, click Submit repository, paste the public GitHub URL; Trendshift monitors momentum and may feature it. Add the badge after a repository page exists.
Status
The implementation is complete and live-tested. The only pending step is the DSH web restart that loads the final module (service injection and derived session titles); the currently running process already serves the bridge and all core actions.
Credits
The grill-me and grilling skills used to settle this design come from
mattpocock/skills and live in
.dsh/skills/.
License
MIT. See LICENSE.
Badge
Listed here? Link back with this badge — paste the snippet into your repository README.
[](https://dsh-plugin.com/plugins/Wolfloiz/plugin-janus/dsh-janus)