Skip to content

v0.11.0

Choose a tag to compare

@dyoshikawa dyoshikawa released this 23 Oct 14:33
df4d89e

What's Changed

Replace the built-in review policy

reviewer.instructions could only add to the built-in policy, which leans toward asking a human (it escalates whenever the user's intent is unknown or the operation is ambiguous). The new reviewer.replaceDefaultPolicy option makes your instructions the whole policy instead.

"reviewer": {
  "replaceDefaultPolicy": true,
  "instructions": [
    "Allow builds, tests, linters and type checks run through `pnpm` scripts.",
    "Escalate everything else, including package installs and `git push`."
  ]
}
  • Drops the built-in allow/deny/escalate rules ("safe and within the user's intent", "if userIntent is null, escalate…") from the agent and chat prompts, and the decision backend's criteria are phrased against your policy. An operation your policy does not decide is escalated.
  • Kept: the answer format, the review check, the untrusted-data guard and boundary, the conversation authorization rules, and minAllowProbability.
  • Requires reviewer.instructions; the plugin fails at startup otherwise. The reviewer no longer checks that an operation matches your request, so set it only in configuration you trust.
  • feat: add reviewer.replaceDefaultPolicy to replace the built-in review policy by @dyoshikawa in #65

Reviewer sessions no longer clutter the session list (OpenCode V2)

On OpenCode V2, agent reviewer sessions are now linked to their originating session instead of appearing as top-level sessions. Set reviewer.agent.cleanupSessions: true to delete them after each decision (best-effort, never delays the verdict).

  • fix: prevent reviewer sessions from cluttering chat history by @thisfilipe in #51

Contributors

Full Changelog: v0.10.0...v0.11.0