Skip to main content
Glama

Run the full DSH coding agent in a workspace

run_agent_task

Execute complex coding tasks in a workspace using a full agent with shell, file editing, and sub-agent delegation. Ideal for real code modifications, not quick Q&A.

Instructions

Run a complete DeepSeek Harness coding agent on a task. The agent has a shell, file read/write/edit, sub-agent delegation, workflow, todo, and session persistence — it can actually modify files in the given workspace. This spawns a one-shot dsh --profile headless process; it needs a built deepseek-harness checkout (set DEEPSEEK_HARNESS_ROOT, or pass harness_root). Use this for real coding/workspace work; use delegate_task for quick model-only questions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYesThe task for the agent. Be specific: goal, files, acceptance criteria.
profileNodsh profile to boot (headless = one-shot coding agent).headless
workspaceNoDirectory the agent operates on (default: the server process cwd).
timeout_msNoKill the run after this many milliseconds (default 10 minutes).
harness_rootNoPath to the deepseek-harness checkout (default: $DEEPSEEK_HARNESS_ROOT).
Behavior4/5

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

With no annotations, the description carries the full burden of disclosing side effects. It clearly warns 'it can actually modify files in the given workspace' and explains it spawns a one-shot `dsh --profile headless` process. It does not describe return values or blocking behavior, but the key safety-relevant aspects are covered.

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?

Three sentences, each earning its place: first states purpose, second lists capabilities and side effects, third gives usage guidance and alternative. Front-loaded with the core action, no filler or repetition.

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?

Given the tool's complexity (agent with shell, file modifications, sub-agents) and lack of output schema/annotations, the description is thorough: it covers capabilities, side effects, prerequisites, and alternative tools. It does not mention the return/result format, which would be helpful, but it is otherwise complete for an agent-invocation tool.

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 parameters (task, profile, workspace, timeout_ms, harness_root) are already fully documented. The description adds minimal extra meaning beyond schema; it mentions the harness_root environment variable and the workspace scope, which aligns with but does not exceed schema descriptions.

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

Purpose5/5

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

The description opens with a specific verb+resource: 'Run a complete DeepSeek Harness coding agent on a task.' It also explicitly distinguishes from the sibling tool, noting 'use delegate_task for quick model-only questions,' which clarifies its unique scope.

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

Usage Guidelines5/5

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

Provides explicit when-to-use guidance: 'Use this for real coding/workspace work; use delegate_task for quick model-only questions.' It also states prerequisites (a built deepseek-harness checkout, DEEPSEEK_HARNESS_ROOT or harness_root) which tells the agent when this tool is appropriate and what setup is required.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mbj733/deepseek-agent-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server