pi-baton 0.2.2
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/CHANGELOG.md +51 -0
- package/LICENSE +21 -0
- package/README.md +116 -0
- package/agents/reviewer.md +15 -0
- package/agents/worker.md +12 -0
- package/docs/examples.md +49 -0
- package/docs/github-template.md +63 -0
- package/docs/release.md +57 -0
- package/docs/repository-settings.md +43 -0
- package/docs/template-checklist.md +140 -0
- package/docs/typescript.md +77 -0
- package/extensions/index.ts +191 -0
- package/lib/agents.ts +133 -0
- package/lib/handoff.ts +81 -0
- package/lib/kebab-case.ts +8 -0
- package/lib/model-routing.ts +14 -0
- package/lib/paths.ts +63 -0
- package/lib/review-contract.ts +85 -0
- package/lib/run-engine.ts +283 -0
- package/lib/run-store.ts +136 -0
- package/lib/run-ui.ts +51 -0
- package/lib/run-widget.ts +110 -0
- package/lib/schema.ts +8 -0
- package/lib/status.ts +15 -0
- package/lib/subagent-runner.ts +181 -0
- package/lib/types.ts +117 -0
- package/lib/workflow-discovery.ts +62 -0
- package/lib/workflow-scaffold.ts +92 -0
- package/lib/workflow-schema.ts +154 -0
- package/package.json +63 -0
- package/workflows/default-review-loop.yaml +49 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: Default Review Loop
|
|
2
|
+
iteration_cap: 5
|
|
3
|
+
steps:
|
|
4
|
+
implement:
|
|
5
|
+
agent: worker
|
|
6
|
+
prompt: |
|
|
7
|
+
You are the implement step in a Pi Baton review loop.
|
|
8
|
+
|
|
9
|
+
Use repository tools to complete the task brief. Keep changes focused and complete.
|
|
10
|
+
|
|
11
|
+
End your response with a fenced JSON block:
|
|
12
|
+
```json
|
|
13
|
+
{"summary":"One paragraph summary of what you implemented"}
|
|
14
|
+
```
|
|
15
|
+
next: review
|
|
16
|
+
review:
|
|
17
|
+
agent: reviewer
|
|
18
|
+
prompt: |
|
|
19
|
+
You are the review step in a Pi Baton review loop.
|
|
20
|
+
|
|
21
|
+
Review the implementation against the task brief and prior output summary.
|
|
22
|
+
|
|
23
|
+
End your response with a fenced JSON block:
|
|
24
|
+
```json
|
|
25
|
+
{"summary":"Short review summary","judgment":"accept","acceptanceNote":"Why this passes"}
|
|
26
|
+
```
|
|
27
|
+
or
|
|
28
|
+
```json
|
|
29
|
+
{"summary":"Short review summary","judgment":"reject","findings":["Actionable issue 1"]}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Rules:
|
|
33
|
+
- judgment must be "accept" or "reject"
|
|
34
|
+
- reject requires non-empty findings
|
|
35
|
+
- accept requires a non-empty acceptanceNote
|
|
36
|
+
on_accept: _complete
|
|
37
|
+
on_reject: fix
|
|
38
|
+
fix:
|
|
39
|
+
agent: worker
|
|
40
|
+
prompt: |
|
|
41
|
+
You are the fix step in a Pi Baton review loop.
|
|
42
|
+
|
|
43
|
+
Address the review findings while preserving good work from the previous output.
|
|
44
|
+
|
|
45
|
+
End your response with a fenced JSON block:
|
|
46
|
+
```json
|
|
47
|
+
{"summary":"One paragraph summary of fixes applied"}
|
|
48
|
+
```
|
|
49
|
+
next: review
|