Skip to main content
Glama

Fix / modify code via DeepSeek Harness

dsh_fix

Delegate code changes to a local DeepSeek Harness agent to fix bugs, refactor, migrate, or implement a specified task; it analyzes, edits, runs verification, and reports modified files.

Instructions

Modify code on the local DeepSeek Harness agent: fix bugs, refactor, migrate, or implement a well-specified change. The agent analyzes first, applies the change, runs the verification command from the task (if any), and lists every file it modified. Use this when the workspace must change.

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": "dsh_fix"
  }
}

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

A4/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does substantial work: it discloses the execution sequence (analyze first, then apply), states that it runs the verification command embedded in the task, and promises a list of every modified file. Gaps remain around permissions, reversibility/rollback, and whether arbitrary shell commands can be executed as part of verification.

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

Conciseness5/5

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

Four short sentences, no redundancy, and the core purpose is stated in the first clause. The workflow sentence and the selection-condition sentence each earn their place.

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

Completeness4/5

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

For a four-parameter mutating delegation tool with no output schema, the description covers purpose, workflow, return behavior (file list), and usage trigger. The remaining shortfall is error/timeout behavior and safety expectations, which are relevant given it edits a workspace.

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 explains cwd, task, timeoutMs, and trackChanges, making 3 the baseline. The description adds modest value by implying the task string should embed a verification command and by echoing the trackChanges behavior of listing modified files, but it does not clarify timeout handling or when to set cwd.

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 specific verb plus resource ("Modify code on the local DeepSeek Harness agent") and enumerates the task types it covers: bug fixes, refactoring, migration, and well-specified changes. It implicitly separates itself from read-oriented siblings via "Use this when the workspace must change," though it never names an alternative outright.

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

Usage Guidelines4/5

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

The closing sentence "Use this when the workspace must change" supplies a clear selection condition that distinguishes this mutating tool from investigation-style siblings. It stops short of explicit when-not guidance or naming a specific alternative such as dsh_investigate.

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