subagents
Use when a plan has parallel tasks and the harness supports dispatching subagents.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1.6k
- Forks
- 491
01 前言 Front Matter
- name
- subagents
- description
- Use when a plan has parallel tasks and the harness supports dispatching subagents.
03 SKILL.md 正文
Subagents
If topology=multi-module (triage announcement or coordinator spec/plan declaration), read ../references/multi-module.md.
Fresh context per task. No session history.
Dispatch: reference, don't copy
Subagents have file-read tools. Don't inline what they can read.
TASK: <one sentence>
ROLE: <implementer | spec-reviewer | quality-reviewer>
MODEL: <fast | balanced | strongest>
REPOSITORY: <registered repo id and path>
MODULE: <module id and root>
FILES: <paths>
SPEC: <docs/staging/specs/...#anchor>
ACCEPTANCE: <test or cmd>
EXTRA: <only what's NOT in referenced files>
ROLE is required. See role charters below for what each role owns and does not own.
MODEL is optional. Omitted → uses harness default. Resolution: .praxis/model-tiers.yaml in project root or user home maps the three tiers (fast, balanced, strongest) to concrete model IDs. No config file → all subagents use harness default.
Pasting >10 lines from the spec? Stop - let the subagent read it.
Expand milestone → atomic steps at dispatch time, not in the plan.
One task has one repository and module write scope. Agents may read shared coordinator contracts, but must not edit another module or repository. Never dispatch two writers to overlapping module roots. Integration tasks are dispatched only after every required module reports local acceptance.
Loop per task
implementer → on DONE: spec-reviewer (matches spec?) → quality-reviewer (review) → mark complete, continue.
The coordinator marks - [x], never the subagent.
Status
DONE_WITH_CONCERNS- address if correctness; note if observation.NEEDS_CONTEXT- supply the fact, re-dispatch.BLOCKED- diagnose (missing context / stronger model / too big / plan wrong). Never silently retry.
Model tier
MODEL: fast | balanced | strongest — optional, omitted → harness default.
Resolved via .praxis/model-tiers.yaml in project root or user home. Template at Praxis repo root: model-tiers.example.yaml.
The coordinator decides the tier at dispatch time based on task complexity — it is not hardcoded per role. The role charters below list defaults; override when:
| Scenario | Tier | Examples |
|---|---|---|
| Mechanical edits, simple checks | fast |
rename a constant, fix a typo, pattern-match review |
| Standard implementation, single-file feature | balanced |
add a function, modify one module, write routine tests |
| Multi-file refactor, concurrency/state-machine, safety review | strongest |
implement a protocol, review crash-recovery, cross-module integration |
Role charters
implementer
- Owns: writing the minimum code to make the acceptance test pass (GREEN phase). This includes writing the failing test first (RED), then the implementation (GREEN), then refactoring within the changed files.
- Does NOT own: expanding scope beyond the task, adding abstractions not required by the current test, touching files outside FILES, marking the task complete.
- Default tier:
balanced. Override tofastfor mechanical edits,strongestfor multi-file protocol/state-machine implementation. - On DONE: hands off to spec-reviewer.
spec-reviewer
- Owns: verifying implementation matches every contract and acceptance criterion in SPEC. Reports drift with file:line references.
- Does NOT own: suggesting improvements beyond the spec, checking code quality, re-running tests.
- Default tier:
fast. Override tobalancedwhen spec has ≥3 cross-referencing rules or state enums. - On DONE_WITH_CONCERNS: coordinator decides whether to address or note.
quality-reviewer
- Owns: running
reviewskill against the diff — convention compliance, simplification opportunities, idiomatic patterns, security, scope. - Does NOT own: re-verifying spec compliance (already done), re-running acceptance tests (already done).
- Default tier:
strongest. Override tobalancedfor single-file changes where deep reasoning is unnecessary. - On DONE: task is complete. Coordinator marks
- [x].
All done → review whole diff → ship.
04 同仓库更多 Skills
worktable-review-with-annotations
Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.
worktable-find-and-synthesize-context
Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.
worktable-create-or-update-docs
Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.
worktable-create-or-manage-records
Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.
worktable-create-or-manage-interactive-html
Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.
worktable-collaborate-threads
Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.