Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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