openpencil
ZSeven-W
The world's first open-source AI-native vector design tool and the first to feature concurrent Agent Teams. Design-as-Code. Turn prompts into UI directly on the live canvas. A modern alternative to Pencil.
ZSeven-W/dsh-crew
DeepSeek Harness (DSH) plugin: dispatch work to DSH agents from Claude Code / Codex — native subagent progress, in-host worker sessions with per-tier presets, and a multimodal bridge that lends the text-only harness vision and image generation.
PROJECT TOPICS
PROJECT README
A DeepSeek Harness plugin: dispatch work to DSH agents from Claude Code / Codex, without giving up the host's native subagent UI.
Native Progress UI • Tier Policy & Escalation • In-Host DSH Sessions • Vision & Image Generation • One-Click Install
npm: @zseven-w/dsh-crew · Current plugin release: 0.1.0-rc.1 · Tested with DSH 0.1.0-rc.6
English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Français · Español · Deutsch · Português · Русский · हिन्दी · Türkçe · ไทย · Tiếng Việt · Bahasa Indonesia
The DSH Crew settings page — host integrations, dispatch policy, execution and the multimodal bridge
DSH Crew is a plugin for DeepSeek Harness (DSH) — an open-source agent harness. It makes DSH agents dispatchable from Claude Code and Codex: the orchestrator keeps its own model, the work runs on a real DSH agent with that harness's tools, sandbox, presets and session history, and the host still shows it as a native subagent with live progress.
What runs the work is a DSH agent, not a bare model call. Tiers (flash / pro) select how much capability that agent gets from the harness's configured roster — DeepSeek V4 Flash and V4 Pro today — so a change of model in DSH needs no change here.
🧵 Native Progress UIWorkers appear as regular subagents in Claude Code / Codex — dispatch count, running step, tool calls and token usage all show up in the host's own task panel, plus a claude-hud statusline segment: |
🎚️ Tier Policy and Escalation
|
🏛️ In-Host DSH SessionsWith the bundle installed in a DSH profile, each worker is a first-class DSH session: visible in the Web UI, grouped by working directory, mounted with the Agent preset you choose per tier. Without DSH running, dispatch falls back to a standalone DSH runtime, so CI and headless environments still work. |
👁️ Vision and Image GenerationDSH's models are text-only. |
🔌 Custom ProvidersBring your own endpoint (Base URL + API key + models) or a local command template. Each provider has a connectivity test that checks reachability and auth, then makes one real vision call so you find out now, not mid-task. |
📦 One-Click InstallThe settings page installs and updates the Claude Code plugin and the Codex role files for you — marketplace registration, permission allowlist, HUD wiring, absolute paths rendered for this machine — and restores them just as easily. Every settings file is backed up first. |
Claude Code / Codex (orchestrator, keeps its own model)
└─ ds-flash / ds-pro ← native subagent shell (progress shows in the host's task UI)
└─ MCP: dsh_run_worker(tier, effort, cwd)
├─ hub reachable → session inside DSH (visible in the Web UI, grouped by cwd)
└─ otherwise → dsh-jsonrpc-agent runtime (worker.cordis.yml)
└─ DeepSeek V4 Flash / Pro (DSH SDK, event stream → progress and token stats)
Dispatch fans out. Below, eighteen workers translate this README in parallel: the host counts them as its own subagents, while the harness runs them as real sessions.
Claude Code sees dsh-crew workers as native subagents, with a statusline segment tracking running tiers, elapsed time and tokens.
The DSH Crew panel sees the same run from the harness side: which host dispatched each job, its tier and effort, live progress and token usage.
Install into a DSH profile from npm:
dsh plugin --profile web add @zseven-w/dsh-crew@latest
dsh web
Or, for local development straight from the source tree:
dsh plugin --profile web add link:/path/to/dsh-crew
dsh web
The link: protocol symlinks the profile dependency to this repository, so rebuilds are visible immediately.
In hub mode — the installation above — workers run inside the DSH instance and use the DeepSeek credentials it is already configured with. Nothing else to set up.
Only the standalone fallback needs a key of its own: dispatching from Claude Code / Codex with no DSH instance running launches a worker runtime as a separate process. Obtain an API key from platform.deepseek.com and write it to ~/.config/dsh-crew/.env:
DEEPSEEK_API_KEY=sk-...
node scripts/smoke.mjs
The smoke test dispatches one cheap job through whichever path is available — the hub when a DSH instance is running, standalone otherwise — and prints which one it used. Within about ten seconds you should see smoke test passed — configuration OK. On failure the reason is printed, scoped to the path that was tested.
Then open Settings → DSH Crew and install the Claude Code / Codex integrations with one click.
flash is fast and cheap (simple tasks), pro reasons harder (complex problems). Today they map to DeepSeek V4 Flash and V4 Pro; swap models in DSH and nothing changes here.off = no reasoning, high = high reasoning investment, max = maximum reasoning investment.One-click installation (choose one):
node src/install/cli.mjs allBoth do the same thing: register local marketplace (parent directory dsh-plugins/ as marketplace root) + claude plugin install + MCP tool permission allowlist + claude-hud worker status segment config (auto-backup settings.json before changes, idempotent). Restart the session after installation for changes to take effect.
⚙dsh 1▶pro 2m14s 21.7k/606 ✓3 (current tier / elapsed time / token usage / completion count)statusline/statusline.sh or statusline/worker-segment.sh can be independently integratedMCP_TOOL_TIMEOUT adjustable), long tasks can have orchestrator use dsh_spawn_worker + dsh_worker_result(wait_seconds) pollingclaude --plugin-dir /path/to/dsh-crew to temporarily loadThese override the global defaults for the current session only, and are enforced at the tool layer rather than by prompting:
| Command | What it does |
|---|---|
/dsh-crew:config |
Show or set this session's defaults: tier=flash\|pro, effort=off\|high\|max, mode=auto\|hub\|standalone, timeout=<seconds>, policy=auto\|flash-only\|pro-only, escalate=true\|false, reset |
/dsh-crew:on · /dsh-crew:off |
Turn dispatch for this session on or off (off is a hard switch: the tool refuses) |
/dsh-crew:status |
Live status of worker jobs: tier, progress, tokens, current tool |
Recommended to use the installer (auto-renders paths for this machine, copies /dsh-config, /dsh-status commands):
node src/install/cli.mjs codex
Or manually copy (requires manual path modification after copying):
cp codex/agents/*.toml ~/.codex/agents/ # global or project-level .codex/agents/
Role files come pre-configured with:
default_tools_approval_mode = "approve" (required, otherwise tool calls are auto-cancelled in exec mode)tool_timeout_sec = 3600Note: When manually copying, absolute paths in the args field must be updated to match actual installation location; the installer handles this automatically.
codex exec mode can also directly call dsh_run_workerThe same two prompts are installed for Codex:
| Command | What it does |
|---|---|
/dsh-config |
Show or set this session's defaults: tier=flash\|pro, effort=off\|high\|max, mode=auto\|hub\|standalone, timeout=<seconds>, policy=auto\|flash-only\|pro-only, escalate=true\|false, reset |
/dsh-status |
Live status of worker jobs: tier, progress, tokens, current tool |
| Tool | Description |
|---|---|
dsh_run_worker |
Synchronous task dispatch (tier: flash/pro, effort: off/high/max, cwd), waits for result |
dsh_spawn_worker |
Asynchronous task dispatch, returns job id (for parallel fan-out) |
dsh_worker_status |
Query real-time progress of all jobs (turn/step/current tool/token) |
dsh_worker_result |
Fetch result, can specify wait_seconds to wait |
dsh_worker_cancel |
Cancel specified job, terminate its runtime process |
Progress is simultaneously mirrored to ~/.config/dsh-crew/status.d/ (one shard file per writer, can be read by statusline / external monitoring).
DeepSeek is a text-only model and does not support image input or generation. This plugin sources these capabilities externally through MCP tools:
| Tool | Description |
|---|---|
describe_image |
Answer questions by viewing images (screenshots, designs, charts, etc.), results cached by provider + model + image + question |
generate_image |
Generate image from text description, save to specified absolute path; output is flat bitmap (requires OpenPencil for layer editing) |
Session image pasting: In DSH, switch model to DeepSeek (vision) ◉ to directly paste images. Images remain in session and display normally; the plugin appends transcribed text after them and strips images before sending—you see the image, the model reads the text.
In DSH settings page → DSH Crew → Multimodal (or directly edit ~/.config/dsh-crew/config.json):
Vision provider (image viewing):
claude-code (default, uses haiku, inexpensive)codex (uses GPT, can specify specific model)grok (uses Grok)agy (Antigravity)custom (OpenAI-compatible API or local command)off (disabled)Image generation provider (image generation):
codex ($imagegen, gpt-image-2)agy (Nano Banana)grok (Imagine)custom (OpenAI-compatible API or local command)off (disabled)Two integration methods:
API: Any OpenAI-compatible endpoint
/chat/completions with inline base64 images/images/generationsCLI: Local command template, placeholders substituted with safe references
{image} {question} {model} → stdout as answer{prompt} {output} {size} → command must write file to {output}Connectivity test: Each custom provider has a test button
Borrowed subscription CLIs (claude / codex / grok / agy) require you to be logged in locally; the plugin won't bypass their permissions for you.
This package is also a valid DSH bundle (dsh.bundle + cordis.patch.yml). After installing into DSH Web profile with dsh plugin add dsh-crew:
agents.create + per-session model/effort waterfall + default preset), appear in Web UI session list, can be opened anytime to view complete executionPOST/GET /_dsh/dsh-crew/jobs: spawn tasks, list, long-poll results, cancelGET /_dsh/dsh-crew/ping: health check (MCP shim uses this to detect if hub is running)POST /_dsh/dsh-crew/install: one-click install Claude Code / Codex integration (backend of src/install/)DSH_CREW_HUB env var, default http://127.0.0.1:3080)mode: "hub")dsh plugin add dsh-crew installed into DSH Web profile, jobs run as first-class sessions in host, appear in Web UI session listmodel_provider pointing directly to DeepSeek (unverified); this bridge doesn't depend on it@modelcontextprotocol/sdk and zod; @deepseek-ai/* are peerDependencies (provided by DSH host)default_tools_approval_mode = "approve", otherwise tool calls are auto-cancelledpnpm install
node_modules/.bin/tsdown src/client/index.tsx --format cjs --platform browser \
--target es2022 --tsconfig tsconfig.client.json --out-dir .client-build --clean
node scripts/build-client.mjs # wraps the bundle for the DSH module loader
node scripts/smoke.mjs # dispatches one real flash task end to end
Runtime dependencies are only @modelcontextprotocol/sdk and zod; every @deepseek-ai/* package is a peer dependency provided by the DSH host, which keeps the plugin inside the host's single module realm.
.op design documents inside a conversationMIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: coding-agent、claude-code、mcp、multimodal、subagent。