Repository navigation
feat: add reviewer.replaceDefaultPolicy to replace the built-in review policy - #65
Merged
Merged
Conversation
…w policy Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XcU6mYjWis3a6YpqCW2xgB
Test the agent path, share the decision guard sentences, and spell out in the README what stays and that intent matching is gone. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XcU6mYjWis3a6YpqCW2xgB
This was referenced Oct 23, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The built-in review policy leans toward asking a human (it escalates whenever the user's intent is unknown or the operation is ambiguous), and
reviewer.instructionscould only argue against it. This addsreviewer.replaceDefaultPolicy(boolean, defaultfalse) so the user's instructions become the whole policy.When enabled:
agent/chat: the prompt drops "Decide whether it is safe and within the user's intent", "Use escalate when human confirmation is needed…" and "If userIntent is null, escalate…", and introduces the instructions withuserPolicyPreamble(the only policy; an operation it does not decide is escalated).decision: the question uses policy-free instructions and criteria phrased against the user's policy.minAllowProbability.reviewer.instructions; the plugin fails at startup otherwise.README documents the option and its trade-off.
Tests
pnpm cicheckpasses (new tests inconfig,reviewer,chat-revieweranddecision-reviewer).🤖 Generated with Claude Code
https://claude.ai/code/session_01XcU6mYjWis3a6YpqCW2xgB