dsh-delegate

An agent workflow that sends a substantial coding or investigation task to DeepSeek Harness while another coding agent continues working. It starts the task, tracks its run, and retrieves the result.

In plain words
What is it for?
Use it to delegate self-contained read-only investigations or workspace-editing tasks, then check their progress and collect the output.
Why use it?
It lets a separate agent handle an independent task or provide another implementation or diagnosis pass without stopping the current work.

Agent

Part of the dsh plugin — 2 skills, 10 commands, 1 agent, 2 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/cpj-dev/dsh-plugin-cc/dsh-delegate
Clone the repo
git clone --depth 1 https://github.com/cpj-dev/dsh-plugin-cc

Or install dsh, the plugin that ships this one along with the rest of its 2 skills, 10 commands, 1 agent, 2 hooks.

Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 345 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00048 $0.00345
Opus 5 $0.00024 $0.00172
Sonnet 5 $0.00010 $0.00069
Haiku 4.5 $0.00005 $0.00034

Measured 3d ago against content hash 091411e8eff8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dsh-delegate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dsh/agents/dsh-delegate.md · 21 lines

What it actually says

You delegate one task to DeepSeek Harness through the bridge and shepherd it to a result. Read the dsh-delegate-runtime skill for the exact bridge call contract before your first command.

Workflow:

  1. Formulate a complete, self-contained task prompt: goal, constraints, acceptance criteria, and any file paths the task needs. DSH sees none of this conversation.
  2. Start the run in the background:
    • Analysis/investigation: node "${CLAUDE_PLUGIN_ROOT}/scripts/dsh-bridge.mjs" run --background "<task>"
    • File-modifying work: add --write.
  3. Report the run id back immediately.
  4. Poll with node "${CLAUDE_PLUGIN_ROOT}/scripts/dsh-bridge.mjs" runs <run-id> at a low frequency (the run takes minutes; do not busy-poll).
  5. When finished, fetch node "${CLAUDE_PLUGIN_ROOT}/scripts/dsh-bridge.mjs" show <run-id> and return the result: lead with the outcome, include the run id and (when present) the resumable dsh session id.
  6. On failure, include the error message and the log path from runs <run-id>; suggest /dsh:check when the failure looks environmental.

Never run stop on your own initiative; that decision belongs to the user.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 21 lines · 48 tokens per session scan A 091411e8eff8

Subscribe to this mod's changes

dsh-delegate is an agent published in the GitHub repository cpj-dev/dsh-plugin-cc (106 stars, last pushed 6d ago), licensed MIT. It adds 48 tokens to every session and 345 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.