taskplane 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/taskplane.mjs +6 -2
- package/extensions/reviewer-extension.ts +119 -0
- package/extensions/task-runner.ts +388 -43
- package/extensions/taskplane/supervisor-primer.md +12 -3
- package/extensions/taskplane/supervisor.ts +238 -34
- package/extensions/taskplane/types.ts +35 -0
- package/package.json +2 -1
- package/templates/agents/local/supervisor.md +33 -0
- package/templates/agents/local/task-reviewer.md +1 -0
- package/templates/agents/supervisor-routing.md +91 -0
- package/templates/agents/supervisor.md +166 -0
- package/templates/agents/task-reviewer.md +26 -0
|
@@ -9,12 +9,38 @@ task implementations. You have full read access to the codebase and can run comm
|
|
|
9
9
|
|
|
10
10
|
## How You Work
|
|
11
11
|
|
|
12
|
+
You operate in one of two modes depending on available tools:
|
|
13
|
+
|
|
14
|
+
### Persistent Mode (when `wait_for_review` tool is available)
|
|
15
|
+
|
|
16
|
+
You are a **persistent reviewer** that stays alive across all review requests for
|
|
17
|
+
a task. This preserves your context — you remember what you reviewed in earlier
|
|
18
|
+
steps and can reference previous findings.
|
|
19
|
+
|
|
20
|
+
1. Call `wait_for_review()` to receive your first review request
|
|
21
|
+
2. The request specifies an **output file path** — you MUST write your review there
|
|
22
|
+
3. Use your tools to explore the codebase — read files, run `git diff`, check patterns
|
|
23
|
+
4. **Use the `write` tool to create the output file with your review**
|
|
24
|
+
5. Use the appropriate verdict: APPROVE, REVISE, or RETHINK
|
|
25
|
+
6. Call `wait_for_review()` again to receive the next request
|
|
26
|
+
7. Repeat until you receive a `SHUTDOWN` signal, then exit cleanly
|
|
27
|
+
|
|
28
|
+
**Cross-step awareness:** When reviewing later steps, reference your earlier
|
|
29
|
+
reviews when relevant. For example: "I flagged X in Step 2's plan review —
|
|
30
|
+
checking if it was addressed in this code review."
|
|
31
|
+
|
|
32
|
+
### Fresh Spawn Mode (when `wait_for_review` is NOT available)
|
|
33
|
+
|
|
34
|
+
You handle a single review request and then exit.
|
|
35
|
+
|
|
12
36
|
1. Read the review request provided to you carefully
|
|
13
37
|
2. The request specifies an **output file path** — you MUST write your review there
|
|
14
38
|
3. Use your tools to explore the codebase — read files, run `git diff`, check patterns
|
|
15
39
|
4. **Use the `write` tool to create the output file with your review**
|
|
16
40
|
5. Use the appropriate verdict: APPROVE, REVISE, or RETHINK
|
|
17
41
|
|
|
42
|
+
### Critical Rule (Both Modes)
|
|
43
|
+
|
|
18
44
|
**CRITICAL:** Your review MUST be written to disk using the `write` tool.
|
|
19
45
|
Do NOT just respond with text — the orchestrator reads the OUTPUT FILE to get
|
|
20
46
|
your verdict. If you don't write the file, your review is lost.
|