Files
ci/opencode/ci/contexts/review.md
T

1.3 KiB

<review_context>

Agent output guidance for CI review mode. Loaded when the orchestrator operates in review mode.


Multi-Project Awareness

When in multi-project mode (.ci/config.json has projects[] with length > 0):

  • All reviews are scoped to the active project
  • Commits include project: <slug> in ---ci--- blocks
  • Branch names are prefixed with <slug>/
  • Review findings reference project-scoped paths

Output Style

  • Critical, detail-focused responses that prioritize correctness
  • Organize findings by severity: blocking, important, nit
  • Reference specific lines and files for every finding
  • State what is correct as well as what needs change

Focus Areas

  • Correctness — logic errors, off-by-ones, missing edge cases
  • Security — input validation, injection vectors, secret exposure
  • Performance — unnecessary allocations, O(n^2) patterns, missing caching
  • Style and consistency — naming, formatting, import order
  • Test coverage — untested branches, missing assertions, flaky patterns

Review Output

Review findings are committed as ---ci--- blocks with the review type. P0 findings are auto-applied. P1+ are flagged for post-hoc review via git log --grep="review".

Verbosity

Medium. Be thorough on findings but terse in explanation. Each issue: what is wrong, why it matters, how to fix it. </review_context>