Skip to content

Extract AI review into Python CLI and prompt templates - #7

Open
cageyv wants to merge 1 commit into
mainfrom
2026-08-06-ai-review-cli-refactor
Open

Extract AI review into Python CLI and prompt templates#7
cageyv wants to merge 1 commit into
mainfrom
2026-08-06-ai-review-cli-refactor

Conversation

@cageyv

@cageyv cageyv commented Aug 6, 2026

Copy link
Copy Markdown
Member

Summary

  • Move AI code-review orchestration out of the reusable workflow YAML into .github/scripts/ai_review.py plus prompt templates (review-prompt.tmpl, comment-categorizer.md.tmpl).
  • Slim ai-code-review.yml to checkout workflow assets, stage the CLI/prompts, and run the deterministic review path; pin OpenCode/bmcp release inputs with SHA-256 checksums.
  • Update README/AGENTS adoption notes so other orgs copy the companion files and understand the new inputs (opencode_release, bmcp_release, ai_review_dir, etc.).

Test plan

  • Call ai-code-review.yml from a test PR and confirm review comments still post
  • Verify companion checkout via job.workflow_repository / job.workflow_sha works for reusable callers
  • Confirm OpenCode and bmcp install with pinned release + checksum inputs
  • Exercise comment categorizer path (ACTIVE/STALE/SUMMARY/NO_ISSUES) on a PR with prior bot comments
  • Posted @cursor check it out and @codex please review here on the PR

Made with Cursor

Move orchestration out of the reusable workflow YAML into ai_review.py plus
review/categorizer prompts, and pin OpenCode/bmcp releases for reproducible runs.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cageyv cageyv added documentation Improvements or additions to documentation enhancement New feature or request labels Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant