xonecas.io
778
Pi

pi-extensions / commit de436d0

fix: Changed the wording a lot.

Makes the adverary.md file more authorative.

xonecas2026-08-17 de436d06b20a1234b610e38d56ff97170c59bbc2 parent d7890c3

3 files changed

README.md+2−2
@@ -1,4 +1,4 @@
1-# Pi extensions
1+# xonecas' Pi extensions
22
33 Personal Pi extensions, kept in one source-controlled collection.
44
@@ -12,7 +12,7 @@ The child receives the built-in `read`, `grep`, `find`, `ls`, and `bash` tools.
1212
1313 ```markdown
1414 ---
15-model: opencode/claude-sonnet-5
15+model: yourprovider/youradversarymodelchoice
1616 thinking: high
1717 ---
1818
extensions/adversary/adversary.md+3−18
@@ -1,5 +1,5 @@
11 ---
2-model: opencode/claude-sonnet-5
2+model: opencode-go/glm-5.3
33 thinking: high
44 ---
55
@@ -12,29 +12,14 @@ You are strictly read-only:
1212 - Do not edit files.
1313 - Use the read/search tools and `bash` to inspect the repository, run tests, and gather evidence.
1414
15-## Review process
16-
17-1. Establish the intended behavior from the delegated task, relevant code, and repository conventions.
18-2. Inspect the complete relevant diff, including newly added, modified, and deleted files.
19-3. Trace important control flow and data flow beyond changed lines when needed.
20-4. Look specifically for correctness defects, behavioral regressions, security or privacy vulnerabilities, data loss, race conditions, error-handling gaps, compatibility problems, and test gaps.
21-5. Run focused read-only inspection when it can confirm a concern.
22-
2315 ## Standards
2416
2517 - Report only concrete, actionable findings. Do not invent hypothetical concerns without a plausible failure path.
2618 - Treat the stated requirements and established repository behavior as the source of truth.
2719 - Do not downgrade a real issue because it existed before the change; identify it when the change introduces or worsens it.
28-- Prefer a small number of high-signal findings to a long checklist of style nits.
20+- Focus on correctness and avoid nit-picking.
2921 - Do not propose or apply code changes.
3022
3123 ## Output
3224
33-Begin with findings ordered by severity: `critical`, `high`, `medium`, then `low`. For every finding, include:
34-
35-- Severity and a concise title
36-- Precise file and line reference
37-- The failure scenario and why it violates the intended behavior
38-- A focused remediation direction
39-
40-If no findings are warranted, state exactly: `No findings.` Then briefly note residual risks or tests that could not be run. Do not include a change summary unless it is necessary to explain a finding.
25+A short and concise report of the review findings or a clear statement that nothing was found.
extensions/adversary/index.ts+4−11
@@ -170,7 +170,7 @@ async function runAdversary(
170170
171171 try {
172172 if (signal?.aborted) throw new Error("Adversarial review aborted");
173- onProgress?.("Adversarial reviewer is starting…", {
173+ onProgress?.("Adversary is starting…", {
174174 model: config.model,
175175 thinking: config.thinking,
176176 status: "starting",
@@ -190,7 +190,7 @@ async function runAdversary(
190190 event.type === "message_update" &&
191191 event.assistantMessageEvent.type === "text_start"
192192 ) {
193- onProgress?.("Reviewer is writing findings…", {
193+ onProgress?.("Adversary is writing findings…", {
194194 model: config.model,
195195 thinking: config.thinking,
196196 status: "writing",
@@ -198,14 +198,7 @@ async function runAdversary(
198198 }
199199 });
200200 const events = await client.promptAndWait(
201- [
202- "Perform an adversarial review of the current repository work.",
203- "Treat the delegated brief below as the authoritative description of intent.",
204- "Inspect the repository and return findings only; never modify files.",
205- "",
206- "Delegated brief:",
207- task,
208- ].join("\n"),
201+ task,
209202 undefined,
210203 TIMEOUT_MS,
211204 );
@@ -246,7 +239,7 @@ export default function adversaryExtension(pi: ExtensionAPI): void {
246239 name: "adversary_review",
247240 label: "Adversary Review",
248241 description:
249- "Delegate a focused, read-only adversarial code review to the reviewer configured in adversary.md.",
242+ "Delegate a focused, read-only adversarial review.",
250243 promptSnippet:
251244 "Run a read-only adversarial review in an isolated reviewer context",
252245 promptGuidelines: [