Summary
Create a new plugin at auto-review.ts following the same runtime pattern as reflection-3.ts.
Requirements
- Listen for
session.idle and session.error
- Reuse the aborted-session cooldown/race handling pattern from
reflection-3.ts
- Skip child sessions (
parentID)
- Skip loops from prior review output
- Require at least 3 tool calls before reviewing
- Create a child review session using a different model than the source work
- Leave the review child session in place for reference
- Match existing code style and compile with TypeScript
Verification
cd ~/workspace/opencode-plugins && npx tsc --noEmit auto-review.ts
- Run relevant existing tests/typechecks as needed
Summary
Create a new plugin at
auto-review.tsfollowing the same runtime pattern asreflection-3.ts.Requirements
session.idleandsession.errorreflection-3.tsparentID)Verification
cd ~/workspace/opencode-plugins && npx tsc --noEmit auto-review.ts