vk review
vk review <branch> [base] [options]vk review prepares an AI-assisted pull-request review that runs inside
your IDE’s coding agent (Devin / Windsurf). The CLI itself never calls an LLM.
It:
- Validates that
<branch>and[base]exist in the local repo (localrefs/headsorrefs/remotes/origin), after agit fetch --all --prune. - Installs the
/reviewagent workflow at.devin/workflows/review.md. - Persists the review parameters to
.vk/review/context.jsonso the workflow knows which branch and base to compare without re-prompting.
You then trigger /review in the IDE agent, which checks the branch out,
computes the merge-base diff, runs the project’s own typecheck / lint / tests,
writes a severity-ranked review to .vk/review/<branch>.md, applies the fixes
you approve, and prepares a commit — asking before committing and never
pushing without explicit confirmation.
Arguments & options
Section titled “Arguments & options”| Argument / option | Description | Default |
|---|---|---|
<branch> | Branch under review (a remote-only origin/<name> is accepted; the workflow fetches and checks it out) | — |
[base] | Comparison base | dev |
--no-fetch | Skip git fetch before validating refs | fetch |
--force | Overwrite an existing hand-authored .devin/workflows/review.md | off |
Generated files
Section titled “Generated files”| File | Purpose |
|---|---|
.devin/workflows/review.md | The /review slash-command workflow. Files the CLI generated (recognised by their first heading) are refreshed in place on every run; a hand-authored file is left alone unless --force. A stale pre-rename copy at .windsurf/workflows/review.md is removed when it is CLI-generated. |
.vk/review/context.json | { branch, base, repoRoot, generatedAt } read by the workflow |
.vk/review/<branch>.md | Written by the agent: the review itself (slashes in the branch name become -) |
Add .devin/ and .vk/ to .gitignore if you don’t want the generated
workflow and review artefacts committed.
Examples
Section titled “Examples”# Review a feature branch against dev (default base)vk review feature/billing-webhooks
# Against main, without fetching firstvk review hotfix/log-groups main --no-fetchThen, in the IDE agent: /review.