Skip to main content
Glama

Delegate task to DeepSeek Harness

delegate_to_dsh

Delegates independent coding, analysis, debugging, or research subtasks to a local DeepSeek Harness agent that runs autonomously in the current workspace and returns its final result.

Instructions

Delegate an independent coding, analysis, debugging, research, or repository task to a local DeepSeek Harness agent.

The delegated DSH agent runs autonomously inside the current Claude Code project workspace and returns its final result when complete.

Use this tool for self-contained subtasks that can be executed independently. The delegated agent may inspect files, run commands, and modify files according to the task instructions.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "task": "<task>"
    },
    "name": "delegate_to_dsh"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoOptional absolute workspace path. Usually omit this when running from Claude Code.
taskYesA self-contained task to delegate to DeepSeek Harness.
timeoutMsNoPer-call timeout in milliseconds; overrides DSH_MCP_TIMEOUT_MS for this call. Omit to use the configured default (no timeout by default).
trackChangesNoSnapshot the workspace before and after the delegation and report which files changed. Defaults to true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden and does disclose the important behavior: the delegated agent runs autonomously, may inspect files, run commands, and modify files, and returns its final result on completion. The main omission is execution characteristics — whether the call blocks for the whole delegated run and what happens on timeout or failure — which matters for a potentially long-running autonomous agent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short, front-loaded paragraphs that lead with the action and scope, then add execution and capability notes. Minor redundancy between "independent" in the first sentence and "self-contained subtasks that can be executed independently" in the third, but no filler otherwise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter, mutation-capable delegation tool with no annotations and no output schema, the description covers what it does, where it runs, that it can modify files, and that it returns a final result. It falls short on sibling differentiation and on failure/timeout/concurrency expectations, and "returns its final result" is too vague to substitute for an output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents task, cwd, timeoutMs, and trackChanges thoroughly. The description only adds marginal semantic context by clarifying that execution is scoped to the current Claude Code project workspace, which lightly informs the cwd parameter; it adds nothing about trackChanges or timeoutMs beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a concrete verb and target — delegating an independent coding/analysis/debugging/research/repository task to a DeepSeek Harness agent — and states the run happens autonomously in the current Claude Code project workspace. It is clear what the tool does, but it never distinguishes itself from the four dsh_* siblings (execute/fix/investigate/status), whose names suggest overlapping delegation or execution roles.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Use this tool for self-contained subtasks that can be executed independently" gives a clear positive condition, but there are no exclusions (e.g. when not to delegate, or when a dependent/sequential task is unsuitable) and no named alternative despite four sibling tools that an agent must choose between.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.