zedpstack
Orchestrate a task in poteto-mode on any host (Claude Code, Codex, Cursor, Zed ACP), dispatching every pstack subagent to Claude/Codex/Cursor CLI workers through zedpstack. Use for /zedpstack <task>. Use /setup-zedpstack to choose worker models.
- License 许可
- MIT
- 最近更新
- 2026-10-18
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- zedpstack
- description
- Orchestrate a task in poteto-mode on any host (Claude Code, Codex, Cursor, Zed ACP), dispatching every pstack subagent to Claude/Codex/Cursor CLI workers through zedpstack. Use for /zedpstack <task>. Use /setup-zedpstack to choose worker models.
- disable-model-invocation
- true
02 资源文件 193
- 参考文档.github/workflows/test.yml262 B
- 其他.gitignore213 B
- 参考文档CHANGELOG.md1.9 KB
- 参考文档docs/ACP_DESIGN.md24.9 KB
- 参考文档docs/ARCHITECTURE.md26.7 KB
- 参考文档docs/archive/acp/architect/README.md816 B
- 参考文档docs/archive/acp/architect/runner-claude.md25.8 KB
- 参考文档docs/archive/acp/architect/runner-codex.md29.2 KB
- 参考文档docs/archive/acp/architect/runner-cursor.md24.3 KB
- 参考文档docs/archive/acp/briefs/acp-design-decision.md9.1 KB
- 参考文档docs/archive/acp/briefs/acp-orchestrator.md6.7 KB
- 参考文档docs/archive/acp/briefs/slice-3.md6.6 KB
- 参考文档docs/archive/acp/briefs/slice-4.md6.3 KB
- 参考文档docs/archive/acp/briefs/slice-5.md6.4 KB
- 参考文档docs/archive/acp/briefs/slice-6.md7.1 KB
- 参考文档docs/archive/acp/briefs/slice-7.md5.0 KB
- 参考文档docs/archive/acp/briefs/slice-8.md5.9 KB
- 参考文档docs/archive/acp/README.md1.2 KB
- 参考文档docs/archive/acp/TRAIL.md2.7 KB
- 参考文档docs/archive/AUDIT_REQUEST_1_1.md868 B
- 参考文档docs/archive/AUDIT_REQUEST_1_1B.md522 B
- 参考文档docs/archive/AUDIT_REQUEST_1_2_CLOSE.md321 B
- 参考文档docs/archive/AUDIT_REQUEST_1_2.md1.7 KB
- 参考文档docs/archive/AUDIT_REQUEST_PSTACK_ADAPTER.md172 B
- 参考文档docs/archive/AUDIT_REQUEST.md1.0 KB
- 其他docs/archive/discuss-next-claude-opus.err—
- 参考文档docs/archive/discuss-next-claude-opus.txt—
- 其他docs/archive/discuss-next-codex-sol.err167.1 KB
- 其他docs/archive/discuss-next-codex-sol.stdout—
- 参考文档docs/archive/discuss-next-codex-sol.txt3.8 KB
- 参考文档docs/archive/DISCUSSION_NEXT_STEP.md1.1 KB
- 参考文档docs/archive/REVIEW_REQUEST_v0.4.md983 B
- 其他docs/archive/review-v04-claude-opus.err—
- 参考文档docs/archive/review-v04-claude-opus.txt6.0 KB
- 参考文档docs/archive/review-v04-codex-sol-last.txt6.3 KB
- 参考文档docs/archive/SESSION1_1_EVIDENCE.md1.4 KB
- 参考文档docs/archive/SESSION1_1B_EVIDENCE.md768 B
- 参考文档docs/archive/SESSION1_2_EVIDENCE.md1.6 KB
- 参考文档docs/archive/SESSION1_EVIDENCE.md1.5 KB
- 参考文档docs/BITACORA.md7.7 KB
- 参考文档docs/PROBLEMAS_ACTUALES.md4.2 KB
- 参考文档docs/PSTACK_ADAPTERS.md1.3 KB
- 参考文档docs/STREAMING.md3.6 KB
- 许可证LICENSE1.0 KB
- 参考文档package.json681 B
- 参考文档playbooks/architect-sketch/playbook.json1.4 KB
- 参考文档playbooks/architect-sketch/prompts/judgment.md266 B
- 参考文档playbooks/architecture-review/playbook.json194 B
- 参考文档playbooks/how-investigation/playbook.json714 B
- 参考文档playbooks/how-investigation/prompts/judgment.md641 B
- 参考文档playbooks/interrogate-review/playbook.json1.2 KB
- 参考文档playbooks/interrogate-review/prompts/judgment.md214 B
- 参考文档playbooks/reflect-session/playbook.json1.2 KB
- 参考文档playbooks/reflect-session/prompts/judgment.md278 B
- 参考文档playbooks/why-rationale/playbook.json650 B
- 参考文档playbooks/why-rationale/prompts/judgment.md301 B
- 参考文档README.md2.3 KB
- 参考文档references/zedpstack-tools.md7.1 KB
- 参考文档schemas/config.schema.json686 B
- 参考文档schemas/manifest.schema.json942 B
- 参考文档schemas/result.schema.json528 B
- 脚本scripts/acp.mjs1.4 KB
- 脚本scripts/dispatch.mjs163 B
- 脚本scripts/guard-edits.mjs726 B
- 脚本scripts/mcp.mjs223 B
- 脚本src/acp/auth.mjs1.2 KB
- 脚本src/acp/bridge.mjs5.9 KB
- 脚本src/acp/cards.mjs3.1 KB
- 脚本src/acp/commands.mjs946 B
- 脚本src/acp/diagnostics.mjs2.2 KB
- 脚本src/acp/editGuard.mjs3.6 KB
- 脚本src/acp/engine.mjs11.8 KB
- 脚本src/acp/follow.mjs2.4 KB
- 脚本src/acp/hub.mjs31.1 KB
- 脚本src/acp/options.mjs6.5 KB
- 脚本src/acp/rpc.mjs3.4 KB
- 脚本src/acp/updates.mjs8.5 KB
- 脚本src/agents/board.mjs5.4 KB
- 脚本src/agents/lifecycle.mjs16.3 KB
- 脚本src/agents/prompt.mjs3.2 KB
- 脚本src/agents/store.mjs8.8 KB
- 脚本src/agents/top.mjs1.5 KB
- 脚本src/agents/worktree.mjs3.5 KB
- 脚本src/cancel.mjs1.6 KB
- 脚本src/cli.mjs13.1 KB
- 脚本src/cliCompat.mjs4.7 KB
- 脚本src/config.mjs2.9 KB
- 脚本src/constants.mjs666 B
- 脚本src/events/sink.mjs1.6 KB
- 脚本src/git.mjs264 B
- 脚本src/guard.mjs8.1 KB
- 脚本src/hash.mjs1.5 KB
- 脚本src/install.mjs9.3 KB
- 脚本src/judgment.mjs1.5 KB
- 脚本src/manifest.mjs1.4 KB
- 脚本src/manifestLock.mjs491 B
- 脚本src/mcp/server.mjs6.0 KB
- 脚本src/mcp/tools.mjs14.3 KB
- 脚本src/modelCheck.mjs4.8 KB
- 脚本src/modelRouting.mjs3.6 KB
- 脚本src/modelSheet.mjs9.7 KB
- 脚本src/orchestratorHost.mjs969 B
- 脚本src/orchestratorPrompt.mjs517 B
- 脚本src/paths.mjs791 B
- 脚本src/permissions.mjs5.6 KB
- 脚本src/playbook.mjs5.4 KB
- 脚本src/progressLog.mjs1.5 KB
- 脚本src/progressUi.mjs3.7 KB
- 脚本src/pstack.mjs3.7 KB
- 脚本src/pstackPrompts.mjs7.5 KB
- 脚本src/repoDefault.mjs187 B
- 脚本src/resume.mjs1.3 KB
- 脚本src/roles.mjs1.2 KB
- 脚本src/run.mjs16.8 KB
- 脚本src/runtimes/activity.mjs3.3 KB
- 脚本src/runtimes/index.mjs936 B
- 脚本src/runtimes/stream.mjs2.1 KB
- 脚本src/runtimes/worker.mjs7.0 KB
- 脚本src/setupConfig.mjs6.0 KB
- 脚本src/setupReport.mjs6.8 KB
- 脚本src/setupWizard.mjs18.7 KB
- 脚本src/shellSignals.mjs3.9 KB
- 脚本src/tailProgress.mjs1.7 KB
- 脚本src/types.mjs353 B
- 脚本src/validation.mjs4.2 KB
- 脚本src/watchRun.mjs3.8 KB
- 脚本src/workerModels.mjs6.4 KB
- 脚本tests/acp-auth-env.test.mjs5.0 KB
- 脚本tests/acp-bridge.test.mjs9.0 KB
- 脚本tests/acp-cancel.test.mjs16.9 KB
- 脚本tests/acp-cards.test.mjs12.5 KB
- 脚本tests/acp-commands.test.mjs963 B
- 脚本tests/acp-diagnostics.test.mjs5.1 KB
- 脚本tests/acp-engine.test.mjs9.2 KB
- 脚本tests/acp-hub.test.mjs16.7 KB
- 脚本tests/acp-internal-edits.test.mjs8.3 KB
- 脚本tests/acp-multithread.test.mjs21.2 KB
- 脚本tests/acp-options.test.mjs3.5 KB
- 脚本tests/acp-permissions.test.mjs19.2 KB
- 脚本tests/acp-preferences.test.mjs12.9 KB
- 脚本tests/acp-prefs-concurrency.test.mjs5.5 KB
- 脚本tests/acp-rpc.test.mjs2.4 KB
- 脚本tests/acp-updates.test.mjs11.5 KB
- 脚本tests/activity.test.mjs2.3 KB
- 脚本tests/adapters-smoke.test.mjs2.0 KB
- 脚本tests/agent-prompt.test.mjs1.7 KB
- 脚本tests/agent-store.test.mjs20.5 KB
- 脚本tests/architect-batch.test.mjs6.2 KB
- 脚本tests/cancel-manifest.test.mjs1.0 KB
- 脚本tests/cli-compat.test.mjs6.4 KB
- 脚本tests/codex-argv.test.mjs918 B
- 脚本tests/codex-worker-argv.test.mjs488 B
- 脚本tests/config-resolve.test.mjs1.8 KB
- 脚本tests/events-sink.test.mjs1.1 KB
- 脚本tests/fixtures/acp-resources.mjs4.3 KB
- 参考文档tests/fixtures/acp/codex-2.2.2.json4.4 KB
- 其他tests/fixtures/bin/agent63 B
- 其他tests/fixtures/bin/claude63 B
- 其他tests/fixtures/bin/codex62 B
- 脚本tests/fixtures/bin/fake-acp-agent.cjs15.7 KB
- 脚本tests/fixtures/bin/fake-cli.cjs3.5 KB
- 参考文档tests/fixtures/pstack/models.json468 B
- 脚本tests/guard.test.mjs8.0 KB
- 脚本tests/hash.test.mjs1.8 KB
- 脚本tests/helpers/acpHub.mjs3.4 KB
- 脚本tests/helpers/acpProcess.mjs985 B
- 脚本tests/helpers/env.mjs218 B
- 脚本tests/helpers/pstack.mjs187 B
- 脚本tests/helpers/sandbox.mjs1.7 KB
- 脚本tests/install.test.mjs6.1 KB
- 脚本tests/judgment.test.mjs2.2 KB
- 脚本tests/manifest.test.mjs579 B
- 脚本tests/mcp-agents.test.mjs8.7 KB
- 脚本tests/model-check.test.mjs5.9 KB
- 脚本tests/model-routing.test.mjs2.1 KB
- 脚本tests/model-sheet.test.mjs4.2 KB
- 脚本tests/progress-log.test.mjs821 B
- 脚本tests/pstack-adapter.test.mjs2.0 KB
- 脚本tests/resume-regression.test.mjs2.5 KB
- 脚本tests/run-failure.test.mjs2.0 KB
- 脚本tests/run-sheet-bindings.test.mjs1.9 KB
- 脚本tests/run-waves.test.mjs4.4 KB
- 脚本tests/setup-config.test.mjs6.1 KB
- 脚本tests/setup-wizard.test.mjs5.1 KB
- 脚本tests/shell-signals.test.mjs1.8 KB
- 脚本tests/stream-dedupe.test.mjs721 B
- 脚本tests/validation-explorer.test.mjs2.8 KB
- 脚本tests/validation-reviewer.test.mjs929 B
- 脚本tests/validation-text-type.test.mjs2.3 KB
- 脚本tests/validation.test.mjs1.2 KB
- 脚本tests/watch-run.test.mjs4.7 KB
- 脚本tests/worker-models.test.mjs2.4 KB
- 参考文档zedpstack.config.example.json2.8 KB
03 SKILL.md 正文
zedpstack orchestrator
You are the orchestrator. You work in poteto-mode, and zedpstack is your subagent mechanism: it replaces the Agent/Task tool with CLI workers (claude -p, codex exec, Cursor agent -p) chosen per pstack role by the user's worker sheet. You decide; zedpstack spawns, isolates, and reports.
Start
- Load poteto-mode and read it in full. With the zedpstack MCP server:
read_skill {"skill": "poteto-mode"}. Without it:node <zedpstack>/scripts/dispatch.mjs skill poteto-mode. Open every leaf it points to (playbooks/<name>.md,principle-*skills, routed skills such ashoworarchitect) the same way. - Read the tool mapping:
read_skill {"skill": "zedpstack", "file": "references/zedpstack-tools.md"}(orreferences/zedpstack-tools.mdnext to this file). It is to zedpstack what poteto-mode'sreferences/codex-tools.mdis to Codex. - Classify the task against poteto-mode's Playbooks (Investigation, Bug fix, Feature, Refactoring, ...), open the matched playbook, copy its steps into your todolist verbatim, and run it.
Rules
- You never edit repo files yourself, not even one-line fixes. Your tokens cost more than a worker's; every change goes through
spawn_agentwith the playbook's implementer role (feature/refactoring,bug-fix,perf-issue,hillclimb, orbug-fixwhen none fits). You still review, verify, andapply_agent_changes. Exceptions: the user explicitly asks you to edit directly, or you are resolving a conflict after a failedapply_agent_changes. - Every subagent dispatch that poteto-mode or a routed skill (
how,why,architect,arena,interrogate,swarm,reflect) prescribes goes throughspawn_agent, even when your host has its own subagent tool. That is what lets the worker sheet put the explorer on haiku, the architect runners on Codex, and a reviewer on Cursor. - Pass the skill's
roleline (andslotfor panels) instead of a model, so the worker sheet decides. Calllist_modelsonce to see the roles and panel sizes. - Fan out by issuing several
spawn_agentcalls in one turn, then onewait_agentwith every id. Callwait_agentagain whilependingis not empty. - You own every report. Read each one, check its claims against the code, and for writers review the commit (
agent_result→git show <commit>) beforeapply_agent_changes. - Judgment, synthesis, and every message to the user stay in this chat.
Show the user what is running
The user cannot see your subagents unless you show them. Every spawn_agent, wait_agent, agent_status and list_agents result starts with a plain-text board (one row per agent: title, model, CLI, latest activity). After each batch of spawns, and after each wait_agent whose board changed, write one sentence on what you are doing and why, then the agents as a list in this shape:
Abro explorers e investigators en paralelo y sigo verificando el tipo de la columna.
- ⠿ **How: frontend tracking PUT** · composer-2.5 (Cursor)
Documenting tracking PUT findings
- ⠿ **Why: git history both repos** · gpt-6.1-sol (Codex)
> Running git log -S estado
- ✓ **How: backend tracking SQL** · haiku → claude-haiku-4-5 (Claude)
done in 48s
- Give every spawn a
descriptionof the form<Skill>: <angle>in at most six words (How: backend tracking SQL,Architect: runner B,Interrogate: reviewer 2). It is the row title. - Copy model and activity from the board; do not invent them. An arrow (
opus → claude-opus-4-8) means the CLI resolved the alias to that model; mention it when it is not the model the user expects. - While agents run, wait in rounds of about 45 seconds (
timeout_seconds: 45) and post the board again only when a row changed, so the chat follows the work without repeating itself. - Tell the user once per session that
node <zedpstack>/scripts/dispatch.mjs topin a terminal pane shows the same board live.
When the MCP server is missing
The same operations exist as a CLI that prints JSON (--repo defaults to the cwd):
Z=<zedpstack>/scripts/dispatch.mjs
node $Z models
node $Z agent spawn --repo "$PWD" --role "how explorer" --readonly --description "map auth" --prompt-file /tmp/brief.md
node $Z agent wait --repo "$PWD" --ids <id1>,<id2> --timeout 600
node $Z agent result --id <id> | apply --id <id> | close --id <id> --remove-worktree
Register the server with node $Z install --apply and run node $Z doctor --human when something does not line up.
04 同仓库更多 Skills
zedpstack-bitacora
Use whenever something fails or surprises you during zedpstack work (a worker failed or hung, a test flaked, a tool errored, a status looked wrong, CI went red, a smoke test disagreed with a report). Decide in the moment whether to fix it now or log it, and write it to the project logbook so nothing is lost. Also use when asked to review the logbook.
poteto-mode
test fixture
how
test fixture
setup-zedpstack
Configure which worker CLI and model zedpstack spawns for each pstack role, the way /setup-pstack does it - effort first, then the role list, then which roles to change and one model (or a multi-select for panels) for each. Use for /setup-zedpstack, "configure zedpstack models", or when doctor or the agent board reports a model problem.