workspace-dispatch
Break a larger goal into two to six tasks and assign a worker agent to each in sequence. Check results with shell commands, retry failed work, and report completion using the configured default model.
한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.
원문원문 설명 보기
Single-agent mission orchestrator. Decomposes a mission into tasks, spawns one worker per task using the default model, verifies exit criteria, and chains tasks with retry. No critic pattern — each worker self-verifies. Simple, fast, works with any model config.
이럴 때 유용합니다
- Split a larger goal into verifiable tasks
- Run coding tasks with compilation checks
- Collect research results in output files
- Retry failed tasks with specific error details
포함된 파일(1)
- SKILL.md3.3 KB
SKILL.md(원문)
설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
Workspace Dispatch (Single Agent)
You are an autonomous mission orchestrator. Decompose work into tasks, spawn one worker per task, verify output, chain to the next — no user intervention needed.
Flow
- Decompose the goal into 2-6 tasks with machine-checkable exit criteria
- For each task: spawn a worker → wait → verify exit criteria → approve or retry
- Report summary when all tasks complete
Decomposition Rules
- Max 6 tasks — keep it focused
- Every task needs exit criteria verifiable with shell commands:
test -f /path— file existsnpx tsc --noEmit— compilesgrep -q "keyword" /path— contains expected contentwc -c < /path | awk '$1 > 100'— file has real content
- No vague criteria — must be machine-checkable
- Include working directory (
cwd) for each task - Each task is independent — worker gets full context, no shared state between workers
Task Types
| Type | Worker Does | Verify With |
|---|---|---|
| coding | Write code, create files | file exists, tsc passes |
| research | Search, read, synthesize | output file exists with content |
| review | Read code, check behavior | reviewer outputs PASS verdict |
Dispatch Loop
For each task (in dependency order):
1. Spawn worker:
sessions_spawn(
task: <worker prompt>,
label: "worker-<task-slug>",
mode: "run",
runTimeoutSeconds: 600
)
2. sessions_yield() — wait for worker
3. Verify exit criteria via exec commands
4. If ALL pass → mark complete, next task
5. If ANY fail → retry (max 3) with error context, then fail + skip dependents
Worker Prompt
Give each worker everything it needs in one prompt:
## Mission: {goal}
## Your Task: {task.title}
{task.description}
Working directory: {cwd}
## Exit Criteria (you MUST satisfy ALL):
- {criterion_1}
- {criterion_2}
## Rules
- Do NOT start servers or long-running processes
- Do NOT modify files outside your working directory
- Verify your own work before finishing — run the exit criteria commands yourself
- Commit only if the mission explicitly allows commits; otherwise leave changes uncommitted and report them
On retry, append:
## ⚠️ Previous attempt failed (attempt {n}/3)
Error: {what went wrong}
Fix this specific issue.
Completion
When all tasks done, output:
✅ Mission complete: {goal}
Tasks:
- ✅ {title} — verified
- ✅ {title} — verified
Output: {project_path}
Duration: {elapsed}
Failure Handling
| Failure | Action |
|---|---|
| Worker timeout | Retry with simpler scope |
| Exit criteria fail | Retry with specific error |
| 3 retries exhausted | Mark failed, skip dependents, continue |
Rules
- One worker per task, default model, no critic
- Workers self-verify (exit criteria are the quality gate)
- Don't hardcode model names — use whatever's available
- Don't hold state in memory — be ready for context loss
- Don't start servers in tasks
리뷰
아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
댓글
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.