How can I combine my @extensions/review.ts REVIEW_RUBRIC with pi-subagents reviewer…
- User
How can I combine my @extensions/review.ts REVIEW_RUBRIC with pi-subagents reviewer agents?
Assistant
Now I have the full picture. Let me check whether there's already a custom reviewer agent or project config in this repo.
Assistant
Let me confirm where project-scoped custom agents live and how overrides work.
Assistant
- User
Is there a path to package Option 1 it as part of my extension?
Assistant
- User
Remove my custom review extension and override pi-subagents reviewer with my REVIEW_RUBRIC via the manifest override
Assistant
review.tsis standalone (no imports of it elsewhere). Now I'll create the packagedrevieweragent, wire the manifest, delete the extension, and update the README.Assistant
Now verify the manifest is valid JSON and the agent file parses:
Assistant
That's an unrelated
gh pr reviewreference — no dangling dependencies. Done.Summary
Removed
extensions/review.tsand replaced it with a packaged pi-subagentsrevieweroverride:agents/reviewer.md(new) — the builtinreviewerbody (review types, working rules, output format) followed by the full sof-pi Review Rubric: flagging discipline, untrusted-input checks, fail-fast error handling,[P0]–[P3]priority tags, and the required non-blocking Human Reviewer Callouts section.systemPromptMode: replace,tools: read, grep, find, ls,thinking: high.
- User
Assistant
The change is a packaging/config refactor: deleted
extensions/review.ts(2088 lines), addedagents/reviewer.md(packaged pi-subagents override), wiredpi.subagents.agentsin the manifest, synced README. Three angles fit this work: precedence/correctness of the override, rubric fidelity/drift, and docs/cleanup completeness. Launching fresh-context reviewers in parallel.Assistant
Three fresh-context reviewers launched in parallel (precedence/correctness, rubric fidelity/drift, docs/cleanup). They'll inspect the repo directly from fresh context. I'll synthesize once they return — Pi will wake me on completion.
Assistant
Let me verify the two repeat findings myself before synthesizing.
Assistant
- User
2 Use workers to apply all the changes except for the package.json:13 — ./extensions/*.ts change
Assistant
Let me grab the exact current text so I can hand each worker precise edit targets.
Assistant
All exact targets confirmed. Launching two parallel workers with distinct, non-overlapping files.
Assistant
Two workers launched in parallel:
- reviewer-agent — fixes
agents/reviewer.md(drop conflicting## Review output formatblock + descriptionREVIEW_RUBRIC→Review Rubric) - cleanup — fixes
extensions/perplexity/research-panel.ts:10(stale ref) + extendsAGENTS.mdsync rule with an Agents bullet
Skipped per your instruction: the
package.json:13./extensions/*.tsglob removal.Pi will wake me when they finish, then I'll verify the edits and report.
- reviewer-agent — fixes
Assistant
All four edits verified in place:
Fix File Status Conflicting ## Review output formatblock removedagents/reviewer.md✅ gone; rubric's ## Output formatat :160 is the sole output specREVIEW_RUBRIC→Review Rubricin descriptionagents/reviewer.md:3✅ Stale (see extensions/review.ts)parenthetical removedextensions/perplexity/research-panel.ts:10✅ Agents bullet added to README sync rule AGENTS.md✅ sits between Extensions and the closing paragraph Skipped per your instruction:
package.json:13./extensions/*.tsglob (left as-is).git statusshows the intended changes only —AGENTS.md,README.md,research-panel.ts,package.jsonmodified;extensions/review.tsdeleted;agents/added. No collateral touches. Ready to commit when you are.- User
Assistant
This is a re-review after the worker fixes. Three angles: correctness/verification of the landed edits, agent-prompt coherence after removing the conflicting block, and docs/cross-reference consistency across the full changeset.
Assistant
Three fresh-context reviewers launched (correctness/verification, prompt coherence, docs consistency). They'll inspect the full current changeset directly. Pi will wake me on completion and I'll synthesize.
Assistant
All three reviewers converged on the same verdict. Synthesis:
Synthesis
Fixes worth doing now: None — no blockers found across any of the three angles.
Optional improvements: None actionable. The only recurring note (reviewer 0) is that
package.json:13./extensions/*.tsis now inert — but you explicitly chose to keep it, so it's recorded, not a finding.Feedback to ignore/defer:
- Reviewer 0's inert-glob note — your intentional decision; no action.
- Reviewer 2's note about lacking shell access for
git diff— that's a tool-ceiling artifact of the reviewer's read-only allowlist, not a changeset issue. The reviewer still verified everything via read/grep/find against the live files.
- User
Commit and push the changes
Assistant
git add -Aswept in a large.pi-subagents/artifacts/tree — those are session-local review artifacts that shouldn't be committed. Let me check.gitignoreand stage only the intended files.Assistant
.pi-subagents/is session-local review artifacts (90+ files) and shouldn't be tracked —.pi/is already gitignored but.pi-subagents/isn't. I'll reset the stage, gitignore.pi-subagents/, and stage only the intended files.Assistant
Clean staging — only the 7 intended files. Committing and pushing.
Assistant
Committed and pushed to
main.Commit
59c7cd0— 7 files changed, 191 insertions, 2105 deletions:agents/reviewer.md(new) — packaged reviewer overridepackage.json—pi.subagents.agentsmanifest fieldextensions/review.ts— deletedextensions/perplexity/research-panel.ts— stale ref removedREADME.md— Code Review section removed, Agents section +agents/in structureAGENTS.md— Agents bullet in the README-sync rule.gitignore— ignore.pi-subagents/session artifacts (was untracked, not ignored;git add -Ahad swept in 90+ artifact files, so I reset and gitignored it before committing)
Pushed to
github.com:BbrSofiane/sof-pi.gitmain(6fecdc6..59c7cd0).