Skip to content

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.

Section titled “Option 1 — Install with the Librarian CLI (recommended)”
Terminal window
npx @the-librarian/cli install # choose DeepSeek Harness; paste your MCP URL + token
npx @the-librarian/cli update # later: pull the latest bundle

This runs dsh plugin add @the-librarian/cordis-plugin and writes LIBRARIAN_MCP_URL and LIBRARIAN_AGENT_TOKEN to your shell environment.

Terminal window
dsh plugin add @the-librarian/cordis-plugin

Then export your server URL and agent bearer token before starting dsh (or add them to $DSH_HOME/.env):

Terminal window
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.

  • 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-client with failOnStartupError: false. dsh-mcp-client injects the Librarian primer (initialize.instructions) into the system prompt automatically.
  • System prompt injection — /healthz awareness and the recent 9,500-character journal window (LIBRARIAN_JOURNAL=off disables the journal).
  • Slash commands — /handoff, /takeover, and /toggle-private registered on ctx.commands.
  • Automatic capture — listens to session/event in-process and posts committed prose turns on turn/end, respecting [librarian:private=on|off], /toggle-private, and session/rewind. Set LIBRARIAN_AUTO_SAVE=false to disable capture on this machine.
  1. Run dsh --dump-config and confirm the # == @the-librarian/cordis-plugin layer appears.
  2. Start DeepSeek Harness and ask it to recall something from your vault.
  3. Run /toggle-private to confirm private mode toggles cleanly.

For configuration overrides in cordis.patch.yml, see the Cordis integration README.