@howaboua/pi-subagent-review 0.2.2 → 0.2.3
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/README.md +1 -1
- package/package.json +5 -5
- package/src/messages.ts +16 -6
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ It runs an isolated review subagent against your current repo, optionally prepar
|
|
|
23
23
|
|
|
24
24
|
`/review loop` starts a review loop. It sets a review-specific marker at the current conversation point, strips the `loop` word from the review guidance, and then runs the normal review.
|
|
25
25
|
|
|
26
|
-
The first `/review` in a session branch also adds a visible advisory preface without starting an agent turn. The preface
|
|
26
|
+
The first `/review` in a session branch also adds a visible advisory preface without starting an agent turn. The preface tells the main agent not to treat review findings as a TODO list, and to summarize and triage them against session context and the current implementation before changing code.
|
|
27
27
|
|
|
28
28
|
After that, plain `/review` detects the active review marker, summarizes the work since that marker back into a compact review-fix increment, advances the review marker, and then runs the next isolated review pass from the compacted point. If the stored marker is gone, `/review` simply behaves like a normal review.
|
|
29
29
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@howaboua/pi-subagent-review",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Pi extension that adds /review via an isolated review subagent.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
]
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@earendil-works/pi-ai": "^0.
|
|
42
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
41
|
+
"@earendil-works/pi-ai": "^0.79.0",
|
|
42
|
+
"@earendil-works/pi-coding-agent": "^0.79.0"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"check": "bun run lint && bun run typecheck",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"format": "biome check --write ."
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@earendil-works/pi-ai": "^0.
|
|
53
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
52
|
+
"@earendil-works/pi-ai": "^0.79.0",
|
|
53
|
+
"@earendil-works/pi-coding-agent": "^0.79.0",
|
|
54
54
|
"@types/node": "^24.10.0",
|
|
55
55
|
"typescript": "^5.9.3",
|
|
56
56
|
"@biomejs/biome": "^2.4.16"
|
package/src/messages.ts
CHANGED
|
@@ -9,13 +9,21 @@ export const REVIEW_LOOP_PREFACE_MESSAGE_TYPE = "subagent-review-preface";
|
|
|
9
9
|
export const REVIEW_FINDINGS_MESSAGE_TYPE = "subagent-review-findings";
|
|
10
10
|
|
|
11
11
|
export const REVIEW_LOOP_PREFACE_MESSAGE = [
|
|
12
|
-
"
|
|
12
|
+
"A review subagent is about to inspect the repository in isolation. Its findings are advisory only and may be wrong, overbroad, or missing session context.",
|
|
13
13
|
"",
|
|
14
|
-
"
|
|
14
|
+
"Do not treat review findings as a TODO list. Do not implement review findings automatically.",
|
|
15
15
|
"",
|
|
16
|
-
"When findings
|
|
16
|
+
"When findings return, compare each one against the user’s actual request, prior conversation, accepted decisions, intentional tradeoffs from this session, and the current implementation.",
|
|
17
17
|
"",
|
|
18
|
-
"
|
|
18
|
+
"Default response: summarize and triage, not code.",
|
|
19
|
+
"",
|
|
20
|
+
"For each finding, mark one of:",
|
|
21
|
+
"",
|
|
22
|
+
"- address: concrete, in-scope, necessary for the current implementation",
|
|
23
|
+
"- defer: plausible but outside the current work",
|
|
24
|
+
"- skip: stylistic, speculative, preference-based, overengineered, or not useful",
|
|
25
|
+
"",
|
|
26
|
+
"Only after triage, explain what you recommend doing next. If a finding is not obviously required for the current implementation, do not change code for it.",
|
|
19
27
|
].join("\n");
|
|
20
28
|
|
|
21
29
|
function getReviewPrefaceMessageId(
|
|
@@ -82,9 +90,11 @@ export function buildReviewUserMessage(
|
|
|
82
90
|
"",
|
|
83
91
|
"These findings are advisory output from an isolated review subagent.",
|
|
84
92
|
"",
|
|
85
|
-
"
|
|
93
|
+
"Do not treat review findings as a TODO list. Default response: summarize and triage, not code.",
|
|
94
|
+
"",
|
|
95
|
+
"Compare each finding against the user’s actual request, prior conversation, accepted decisions, intentional tradeoffs from this session, and the current implementation.",
|
|
86
96
|
"",
|
|
87
|
-
"
|
|
97
|
+
"Mark each finding as address, defer, or skip. Only change code for findings that are obviously required for the current implementation.",
|
|
88
98
|
].join("\n");
|
|
89
99
|
}
|
|
90
100
|
|