Skip to content
This repository was archived by the owner on Jun 8, 2026. It is now read-only.
This repository was archived by the owner on Jun 8, 2026. It is now read-only.

Add auto-review plugin that spawns cross-model review sessions on session.idle #135

@OpenCodeEngineer

Description

@OpenCodeEngineer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions