AGENT SKILL

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
所属仓库
Nandem1/zedpstack
最近更新
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

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

  1. 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 as how or architect) the same way.
  2. Read the tool mapping: read_skill {"skill": "zedpstack", "file": "references/zedpstack-tools.md"} (or references/zedpstack-tools.md next to this file). It is to zedpstack what poteto-mode's references/codex-tools.md is to Codex.
  3. 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_agent with the playbook's implementer role (feature / refactoring, bug-fix, perf-issue, hillclimb, or bug-fix when none fits). You still review, verify, and apply_agent_changes. Exceptions: the user explicitly asks you to edit directly, or you are resolving a conflict after a failed apply_agent_changes.
  • Every subagent dispatch that poteto-mode or a routed skill (how, why, architect, arena, interrogate, swarm, reflect) prescribes goes through spawn_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 role line (and slot for panels) instead of a model, so the worker sheet decides. Call list_models once to see the roles and panel sizes.
  • Fan out by issuing several spawn_agent calls in one turn, then one wait_agent with every id. Call wait_agent again while pending is 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>) before apply_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 description of 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 top in 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