nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
MJorgin/dsh-agent-conductor
⚡ DSH 指挥家 / Conductor for DeepSeek Harness — in-session dispatch to 11 external agent CLIs (Codex, Claude Code, TraeCode, OpenCode, Gemini, Cursor, Kimi, Qwen, Copilot, WorkBuddy, Grok). Zero-dep skill + host-only bundle.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:MJorgin/dsh-agent-conductor
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Your AI fleet, ready when you are.
Delegate tasks from DeepSeek Harness to 11 external agent CLIs, follow their progress in the Big Fat Fish Commander, and bring results back to your conversation.
大肥鱼指挥官 · Big Fat Fish Commander
A small fleet for big tasks.
English · 简体中文
Open Plugins in the left sidebar, then select Installed.
Click Add plugin and enter the package name:
dsh-agent-conductor
Click Install, then follow DSH's prompts. Restart DSH if it asks you to.
Open Commander in the left sidebar. Install and sign in to the CLI you want to use separately.
If the Commander panel is missing after installation, check that npm has updated to 0.4.1. You can also install the current source from
https://github.com/MJorgin/dsh-agent-conductor.

From the 指挥官 entry in the DSH sidebar, see your crew, check whether each CLI is available, and follow dispatches as they happen. Select Connect for an installation or sign-in guidance draft, or Dispatch to start with an editable task example. The draft is never sent automatically.
The captain and crew are AI-generated interpretations made for this project; they are not official characters of the CLI vendors. Artwork is shown here as a visual collection; the panel assigns each portrait to its agent.
Availability is not authentication. Finding a CLI executable does not confirm that it is signed in or ready to run. The panel labels sign-in as unverified.
DeepSeek Harness is a great reasoning engine — but sometimes the job is better done by another coding agent: a Codex translation, a Claude Code investigation, a Cursor refactor. This plugin lets your DSH agent recognize when to delegate (by skill-description matching), dispatch a self-contained task to one of 11 external agent CLIs in headless mode, and bring the stdout result back as the answer — while the 大肥鱼指挥官 panel shows the fleet's live status.
Inspired by Multica — the "agent squad" idea as a zero-install DSH skill.
| Capability | What it does | Cost |
|---|---|---|
| 🧠 Auto-triggered dispatch | Say "have Codex translate this README" — the model matches the skill, runs the dispatch script, and answers from the result | Free (uses the target CLI's quota) |
🔧 conductor_dispatch tool (optional bundle) |
The same registry as a first-class DSH tool, installed into a profile with one command | Free |
| 🐟 大肥鱼指挥官 panel (bundle) | Sidebar tab just above 更多: 11 chibi crew cards with live status, elapsed time and output tail, a ship log, per-run detail and a 终止 button, and adjustable history retention | Free |
🩺 doctor self-check |
python3 dispatch.py doctor probes which CLIs are installed (resolves PATH + tries --version) before you dispatch |
Free |
| 👀 Dry-run preview | Preview the target, working directory, argv, and shell-equivalent command without starting an external agent | Free |
| 👥 11 agent CLIs | Codex, Claude Code, TraeCode, OpenCode, Gemini, Cursor, Kimi, Qwen, Copilot, WorkBuddy, Grok | Their login quotas |
| 🔒 Privacy | Task text goes only to the CLI's own provider; keys stay local | — |
| profile plugin / bundle | dynamic plugin | Skill (this repo) | |
|---|---|---|---|
| Install | write profile + restart | define in-session | copy a folder |
| Trigger | manual | model calls a tool | description matching, model auto-recognizes |
| Risk | touches the host | session-scoped, gone on restart | read-only script, host-agnostic |
| Result | tool result | tool result | stdout directly becomes the answer |
One SKILL.md + a zero-dependency dispatch.py (Python stdlib only).
Copy skills/conductor/ to any skill root (project-level .dsh/skills/ or global ~/.dsh/skills/):
mkdir -p .dsh/skills/conductor
cp -R skills/conductor/. .dsh/skills/conductor/
No restart needed — from the next message on, just say:
The agent auto-recognizes the need (SKILL.md description matching) → runs dispatch.py → returns the result.
Before an unfamiliar or potentially write-producing dispatch, preview it without consuming the target agent's quota:
python3 skills/conductor/scripts/dispatch.py --dry-run claude-code "Read src/auth.ts and explain the token refresh flow. Do not edit files."
| Task | First choices | Why |
|---|---|---|
| Architecture review / second opinion | Codex, Claude Code, Gemini | Different reasoning styles are useful for catching design blind spots |
| Legacy-code call-chain investigation | Claude Code, Codex, Copilot | Good for tracing repository-local dependencies and attaching evidence |
| GitHub-centric issue or Actions analysis | Copilot, Codex | Natural fit for repositories, pull requests, and CI diagnostics |
| Editor-coupled refactor | Cursor, Codex | Useful when the workflow is tightly connected to an existing project tree |
| Chinese localization / Chinese docs | TraeCode, Qwen, Kimi, Codex | Strong Chinese-language options; keep terminology consistent in the task |
| Fast alternative implementation | OpenCode, Qwen, Kimi | Useful for bounded spikes where a separate login/toolchain is available |
The matrix is a routing starting point, not a hard rule. Prefer an installed, logged-in CLI that has access to the correct workspace.
You are investigating a bug in the current repository. Do not edit files.
Reproduce the issue from this description: <paste error and steps>.
Read only the minimum relevant files. Return:
1) root cause, 2) evidence with file:line, 3) three ranked fix options,
4) tests that should be added or updated.
Review this design as an outside staff engineer. Do not assume hidden context.
Design summary: <paste PRD/technical plan>.
Challenge scalability, failure modes, security boundaries, and migration risk.
Return disagreements first; for each, include impact, evidence, and a fallback.
Implement this change in the current repository: <scope and acceptance criteria>.
Work in small steps. Add or update tests first where practical.
Before finishing, run the relevant test command and report:
files changed, tests run, remaining risks, and follow-up work.
# Codex / Claude Code / OpenCode / Gemini / Qwen
npm i -g @openai/codex
npm i -g @anthropic-ai/claude-code
npm i -g opencode-ai
npm i -g @google/gemini-cli
npm i -g @qwen-code/qwen-code
# Kimi / Grok / Copilot (headless flags verified against each CLI's own --help)
npm i -g @moonshot-ai/kimi-code
npm i -g @xai-official/grok
npm i -g @github/copilot
# TraeCode CLI: https://docs.trae.cn/cli_command-line-parameters
# (already have codex-cli? symlink instead: ln -s ~/.codex/plugins/.plugin-appserver/codex ~/.local/bin/codex)
Headless note: Copilot non-interactive mode must auto-approve tools, so the registry runs
copilot -p "<task>" --allow-all-tools. The other CLIs run their standard print/headless flag.
Then check what's actually dispatchable on this machine:
python3 skills/conductor/scripts/dispatch.py doctor
# ✅ Codex …/codex — codex-cli 0.151.0 …
# ❌ Gemini … 未找到 `gemini` → 安装:npm i -g @google/gemini-cli
Working directory is auto-detected. The bundle tool runs each CLI in the current session's workspace (
exec.agent.session.header.cwd), thenCONDUCTOR_CWD, then the harness cwd — no hardcoded paths. Codex still requires a trusted git repo: pointCONDUCTOR_CWD=/path/to/git/repo(env or~/.dsh/secrets/media-tools.env) at one if the auto-detected folder isn't trusted. The skill script honorsCONDUCTOR_CWDand falls back to the current directory. Codex model override. Codex reads its model from the shared~/.codex/config.toml; if that model isn't available to the current account, setCONDUCTOR_CODEX_MODEL=<model>(env or~/.dsh/secrets/media-tools.env) and the bundle/dynamic tool and the skill script insert-m <model>automatically. Windows. The skill script resolves npm.CMDshims throughPATHEXTand decodes CLI output as UTF-8 (errors="replace"), so dispatch works even on non-UTF-8 ANSI codepages. The bundle tool goes through the hostsubprocessservice, which never shell-interprets argv — on Windows it therefore needs native.exeentry points; use the skill script for npm-shim-only CLIs. To let the dispatched agent write files: addsandbox_mode = "workspace-write"to Codex's~/.codex/config.toml. Dispatching consumes the target CLI's login quota.
| CLI | Headless command | Status |
|---|---|---|
| Codex | codex exec "{task}" |
✅ field-tested (translation task delivered) |
| Claude Code | claude -p "{task}" --output-format text |
✅ installed; per official docs |
| TraeCode | traecli exec "{task}" |
✅ per official docs |
| OpenCode | opencode run "{task}" |
✅ per official docs |
| Gemini CLI | gemini -p "{task}" |
✅ per official docs |
| Qwen Code | qwen --prompt "{task}" |
✅ per official docs (Gemini-CLI fork) |
| Kimi CLI | kimi --prompt "{task}" |
✅ flag confirmed from the CLI's own help (-p, --prompt = non-interactive) |
| Copilot CLI | copilot -p "{task}" --allow-all-tools |
✅ flag confirmed from copilot --help (bin is copilot, not github-copilot; --allow-all-tools is required headless) |
| Grok CLI | grok -p "{task}" |
✅ per official README (grok -p "..." = run one task) |
| Cursor CLI | cursor-agent -p "{task}" |
⏳ command shape pending field test (install via cursor.com; the npm cursor-agent package is unrelated) |
| WorkBuddy | workbuddy -p "{task}" |
⏳ command shape pending field test |
Install packages were verified against the npm registry: Kimi is
@moonshot-ai/kimi-code(binkimi), Grok is@xai-official/grok(bingrok), Copilot is@github/copilot(bincopilot), Codex is@openai/codex. Thekimi-clinpm package is an unrelated placeholder with no binary — do not use it.
The bundle now ships a browser half too: a 指挥官 row in the left sidebar, placed immediately above the built-in 更多 menu — the panel's Chinese display name is 大肥鱼指挥官 (Big Fat Fish Commander). It turns dispatches into a small "deep-sea war room":
~/.dsh/conductor-crew.json and restored after a restart; click a row for details;/conductor/state route, and only while it is visible; nothing leaves the machine.Notes:
conductor_dispatch tool appear in the panel. The skill's dispatch.py runs as a plain subprocess and registers nothing — by design.This repo is also a dsh bundle — a host half (dsh.bundle) plus a browser half (dsh.client.platform = "web"). One command installs both into a profile:
dsh plugin --profile desktop add github:MJorgin/dsh-agent-conductor
Use your own profile name if it isn't desktop. Follow DSH's restart prompt if one is shown; a replaced package may need a restart before its new client module is served. See Install the Commander in DSH for the graphical route.
index.js ⇄ conductor-dynamic.js ⇄ dispatch.py — keep the three in sync when adding CLIs);client.js): it registers the sidebar row and the main page through ctx.slots, and talks only to the same-origin /conductor route;subprocess dependency, enforces a real 10-minute timeout that terminates the whole process tree (also on cancel — no orphaned CLIs), and clips over-long output (head + tail, ~20k chars) so a chatty agent can't blow up the context; stderr diagnostics are bounded the same way (head + rolling tail) so the real trailing error survives;--dsw-alias-* theme tokens, so it follows light/dark automatically;index.js # bundle host half: conductor_dispatch tool + /conductor routes
conductor-store.js # run registry behind the panel (pure, unit-tested)
client.js # browser half: 指挥官 sidebar row + 大肥鱼指挥官 page
cordis.patch.yml # bundle layer (one host row)
skills/conductor/SKILL.md # skill definition: trigger description + dispatch rules + privacy
skills/conductor/scripts/dispatch.py # dispatch engine (Python stdlib, zero deps)
conductor-dynamic.js # alternative: dynamic-plugin edition (tool only — no panel)
tests/ # clip, store, route, client-module and CLI-glue tests
doctor health check and dry-run preview~/.dsh/secrets/media-tools.env (same convention as dsh-media-skills).~/.dsh/conductor-crew.json; command arguments and output tails remain in memory. Nothing is uploaded.CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: agent。