Repository navigation
prism-cli 1.20.0: change codewatch's reviewer and model per repo, as your default, or for the team - #121
Merged
Conversation
✅ PRISM Eval Gate -- PASSScore: 0.88 | Findings: 9 (0 high, 1 medium) Summary: No blocking issues. Argv values are validated server-side, the diff uses allowlisted actions with execFile-style argv, and page text goes through txt(). The remaining findings are an unbounded concurr
✅ Secret scan -- no credentials found in this PR's commits. |
…your default, or for the team - prism-cli codewatch reviewer: show the effective reviewer/model and their source; --scope clone|team|global, --reset, --clear-overrides <dir...>. - Repo page: Reviewer and model block (source, installed tool, fallback), Change: Override for this repo / Use my default / Team default (repo-file warning and diff), team-pin warning, Reset. - Settings > Repos: your default (git config --global prism.reviewer and prism.<tool>Model), the repos that override it, Reset per repo, Apply my default to all repos (confirm lists the repos; team files untouched). - Allowlisted actions; reviewer/model checked server side (REVIEWER_IDS, MODEL_ID_RE); apply-all appends only the server's own repo paths.
…ored for the tool picked
Enclavet
force-pushed
the
feat/codewatch-reviewer-picker
branch
from
November 16, 2026 04:25
0162a9b to
e9e3adc
Compare
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.
prism-cli 1.20.0. The user asked to change codewatch's reviewer and model from the dashboard: per repo, as a default for every repo, or for the team.
What changes
git config --global) with Change my default and Remove my default. Below it are the repos that override it, each with a link and Reset to default. Apply my default to all repos has a confirm dialog that lists the repos it changes, and it never touches.prism/config.json. Each repo row links to its page.prism-cli codewatch reviewershows the effective values and where they come from. Options:--scope clone|team|globalwith--reviewer/--model,--reset, and--clear-overrides <dir...>.The values come from the hook's own
resolveReviewerandresolveReviewModel, unchanged. No new config file: git config already stores a globalprism.reviewer.Precedence (as the code already resolves it)
git config --local prism.reviewer> yourgit config --global prism.reviewer> teameval.reviewer> the installed tool. A chosen tool that is not installed falls back to the installed one.eval.model(only when set for the reviewer that runs) >--local prism.<tool>Model>--global prism.<tool>Model> the tool default.Note: your global default beats the team file for the reviewer. That is today's behaviour, because
git config --get prism.reviewerreturns local, then global, before the hook reads the team file. I kept it and did not change it. CI is unaffected: it never readsprism.reviewer.Model suggestions
Neither tool has a list that is sure to work offline.
kiro-cli chat --list-modelsanswers from the account, so the dashboard offers no kiro list. Claude Code's documented aliases (sonnet,opus,haiku) are offered. Any id that matchesMODEL_ID_REis accepted.Security
prism-cli codewatch reviewerwith a fixed argv and no shell.revieweragainst REVIEWER_IDS andmodelagainst MODEL_ID_RE (no leading-). The repo id comes from the scan list.GET /api/codewatch/reviewerandGET /api/codewatch/defaults(git config and one file, paths shown with ~).Tests
npm test(aws guard): 888/888. Newcodewatch-reviewer.test.ts, using real git with a temp global config:-;npm run docs:check: 0 problems.reviewersuite (CWR1–8) uses demo repos, a fakeclaudethat never reviews, and no AWS. It covers:Docs: USER_GUIDE (Choosing the Reviewer and Choosing the Review Model updated, plus a new Changing the Reviewer and Model section with a demo screenshot) and CLI-REFERENCE.