DeepSeek Harness
DeepSeek Harness (dsh) is an open-source
Cordis-based agent harness. The Librarian ships a single prebuilt Cordis bundle
(@the-librarian/cordis-plugin) that works on both DeepSeek Harness and Aeven — on dsh, it
mounts @deepseek-ai/dsh-mcp-client alongside awareness and journal injection, slash commands,
and in-process automatic capture.
When you’d use this: you run DeepSeek Harness (dsh) and want shared memory, handoffs,
journal context, and automatic capture alongside your other Librarian-connected tools.
Option 1 — Install with the Librarian CLI (recommended)
Section titled “Option 1 — Install with the Librarian CLI (recommended)”npx @the-librarian/cli install # choose DeepSeek Harness; paste your MCP URL + tokennpx @the-librarian/cli update # later: pull the latest bundleThis runs dsh plugin add @the-librarian/cordis-plugin and writes LIBRARIAN_MCP_URL and
LIBRARIAN_AGENT_TOKEN to your shell environment.
Option 2 — Install directly with dsh
Section titled “Option 2 — Install directly with dsh”dsh plugin add @the-librarian/cordis-pluginThen export your server URL and agent bearer token before starting dsh (or add them to
$DSH_HOME/.env):
export LIBRARIAN_MCP_URL="https://librarian.example.com/mcp"export LIBRARIAN_AGENT_TOKEN="your-agent-token"If LIBRARIAN_MCP_URL is unset, the bundle disables the mcp-librarian row automatically so dsh
boots cleanly without errors.
What the bundle adds
Section titled “What the bundle adds”- 8 native MCP tools (
mcp__librarian__recall,remember,flag_memory,store_handoff,list_handoffs,claim_handoff,search_references,journal) bridged by@deepseek-ai/dsh-mcp-clientwithfailOnStartupError: false.dsh-mcp-clientinjects the Librarian primer (initialize.instructions) into the system prompt automatically. - System prompt injection —
/healthzawareness and the recent 9,500-character journal window (LIBRARIAN_JOURNAL=offdisables the journal). - Slash commands —
/handoff,/takeover, and/toggle-privateregistered onctx.commands. - Automatic capture — listens to
session/eventin-process and posts committed prose turns onturn/end, respecting[librarian:private=on|off],/toggle-private, andsession/rewind. SetLIBRARIAN_AUTO_SAVE=falseto disable capture on this machine.
Verify
Section titled “Verify”- Run
dsh --dump-configand confirm the# == @the-librarian/cordis-pluginlayer appears. - Start DeepSeek Harness and ask it to
recallsomething from your vault. - Run
/toggle-privateto confirm private mode toggles cleanly.
For configuration overrides in cordis.patch.yml, see the
Cordis integration README.