Skip to main content
Glama
songzhifei512

multi-agent-bridge

run_dsh

Execute tasks asynchronously with a headless DeepSeek agent inside an isolated sandbox, handling rate-limit retries and timeouts. Supports plan-only mode and custom working directories.

Instructions

Async call DeepSeek DSH CLI (dsh --profile headless) to run a task. Provider-rotatable across the configurable // backends (same agent loop; pick backend via ~/.dsh settings/patch). Runs with cwd = workdir, which is the workspace-write sandbox boundary: it can REALLY write files and run bash/pwsh inside workdir, non-interactive (no approval stall). Non-blocking. Auto-tracks task. NOTE: no resume (session_id is accepted but starts a fresh run, like opencode). Retries on 429/timeout with exponential backoff (default 2, 3 attempts total); set max_retries=0 to disable. Pass a bounded isolated workdir, never the main repo / a sensitive volume.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYes
task_idNo
workdirNo隔离工作目录 = workspace-write 沙箱边界。DSH 会在其中写文件/执行工具,务必传受限的独立目录,勿指向主仓库/敏感盘。
plan_modeNo Plan 模式:只读调研,强制关 auto,产出方案不落盘
session_idNo仅接受、实际全新运行(DSH 无 --resume)
max_retriesNoMax retries after first attempt on 429/timeout (0-5, default 2). 0 = fail on first error.
timeout_secNo
fork_on_failNo A 失败自动 fork:真失败时父 superseded + 生成备选子任务给此 agent 承接(仅工作流任务,≤3 上限)。不传不自动 fork。
retry_max_msNo
capture_traceNo 捕获完整推理 step 流存 task.trace,默认 false
retry_base_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/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 so thoroughly. It discloses that it can REALLY write files, runs bash/pwsh, is non-interactive with no approval stall, is non-blocking, auto-tracks tasks, has no resume despite accepting session_id, and retries on 429/timeout with exponential backoff. This is far beyond minimal behavioral disclosure.

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?

The description is dense but every sentence earns its place: purpose, backend rotation, sandbox boundary, async behavior, no-resume caveat, retry policy, and security warning. The core purpose is front-loaded in the first sentence, and the critical security constraint is placed at the end for emphasis.

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?

The description covers safety, retry behavior, async execution, and no-resume semantics well, but it does not explain how results are returned or how an agent should retrieve the output of the tracked task. With no output schema and no annotations, and 11 parameters, this is a meaningful gap despite the otherwise rich description.

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

Parameters4/5

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

Schema coverage is 55%, and the description adds meaningful semantics beyond the schema: it explains that workdir is the sandbox boundary, clarifies max_retries as 3 total attempts by default and 0 to disable, and notes session_id is accepted but starts a fresh run. It does not explain timeout_sec, retry_base_ms, retry_max_ms, or task_id, so it does not fully compensate for all undocumented parameters.

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?

Opens with a specific verb+resource: 'Async call DeepSeek DSH CLI (dsh --profile headless) to run a task.' It clearly distinguishes from siblings by emphasizing provider-rotatable backends, non-blocking execution, and workspace-write sandbox behavior, which sets it apart from run_codex, run_claude, and run_qwen.

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 description gives clear operational context: use it for async, non-interactive tasks that need real file writes and bash/pwsh execution inside workdir. It also provides an explicit guardrail: 'Pass a bounded isolated workdir, never the main repo / a sensitive volume.' It stops short of explicitly naming when not to use it versus specific siblings, but the context is strong enough.

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