AI review
Let your own coding agent review a pull request — its comments stay drafts only you see until you publish them under your name.
AI review asks your own coding agent — Claude Code, Codex, or any agent that can run a command — to review a pull request the way a careful colleague would. It reads the changes and the conversations already on the pull request, and writes comments: a defect, a risk, a missing case or test, each on the lines it is about.
Its comments are drafts only you see. You read them next to everything else written about the pull request, edit them, dismiss what you disagree with, and publish what you agree with — as your own comments, under your name. Nothing reaches the pull request until you publish it: the agent cannot comment, reply, vote or change the pull request.
AI review is part of the Pro plan, for pull requests on GitHub, Azure DevOps, GitLab and Bitbucket. Your agent needs the mantish command on its PATH, on the machine where Mantish runs — it reaches the same engine as the app, and starts an installed one that is not running.
Ask for a review
Open the pull request and its Comments tab. The AI Review card is on the right.
Optionally write a Focus — what the agent should look at, for example "the token refresh path".
Click Copy prompt and paste it into your agent's chat:
Run `mantish pr review start 42 -r shop` and follow its instructions.
That one line is all the agent needs: the command prints its instructions, the pull request, its files, the conversations on it and how to write a comment. The status bar shows ✦ AI review #42 · waiting until the agent starts.
The brief also says what the change may break, as Mantish computes it from the semantic diff: a method deleted while its usages remain, a signature changed with callers the pull request did not update, a body changed and the callers that reach it — up to 20 entries, each with the command that lists its places. A reference left behind, or a caller left as it was, is a defect for the agent to look at. It weighs these as facts, never as instructions; a brief whose answer takes longer than 30 seconds goes without them.
While the agent works
The card follows the agent live: Agent reviewing · 4 comments, and the drafts appear as it writes them. The status bar reads ✦ AI review #42 · 4; with reviews running on several pull requests it reads ✦ 2 AI reviews and opens a menu of them.
| You want to | Do |
|---|---|
| Withdraw a request the agent never ran | Cancel |
| Copy the prompt again | Copy again |
| Change the focus before the agent runs | Change focus |
| End a review | Stop — the agent is told to stop at its next command |
If the agent goes quiet for ten minutes the card says so; it may have stopped without finishing. When it finishes, a toast says AI review finished — 4 comments, and Show opens them.
Read the drafts
Every draft says how much it matters — critical, major, minor or nit — which run wrote it, and shows the code it is about. You find them in three places:
| Where | What you see |
|---|---|
| Comments tab › AI Review | Every comment of every run: Open are the drafts, Closed the decided |
| The diff and the Markdown previews | Each draft under its lines, in the accent's ✦ frame |
| Threads panel › AI Review | The drafts, listed like threads; Open diff lands on their lines |
All in the Comments tab shows the drafts beside the conversations, file by file; By status groups them as AI drafts, after the conversations waiting on your reply. The agent's text is shown as written: its HTML is never run or drawn.
Decide on each draft
| You want to | Do |
|---|---|
| Post it to the pull request | Publish — it becomes your comment, on its lines |
| Post one whose code is gone | Publish as PR comment — on the pull request as a whole, quoting the code it was written on |
| Change what it says | Edit — what you type is kept while you look elsewhere; the comment is marked edited |
| Reject it | Dismiss, with a reason if you like — the next run reads it and does not raise the point again |
| Take back a dismissal | Restore — it is a draft again |
A published comment says Published · thread #4519; click it to see the conversation it became. Publish all drafts (N) on the card posts every draft whose lines are still there in one go, after asking: Publish 4 comments to GitHub? Drafts whose code is gone are left out and named — each is published on its own, as a pull request comment.
Publishing needs permission to write comments on the pull request; without it, Publish says why.
Runs
The card lists every run, newest first, with its state and how many comments its agent wrote. Click a run to see only its comments; All runs shows them all again. A run's menu has Delete run, which removes the run and every comment it wrote from Mantish — what you published stays on the pull request.
New review… asks for another run, with a new focus. The next agent reads the conversations, your edits and your dismissal reasons, and checks the earlier comments against the code now: each shows what it found — Agent (run 3): fixed, still applies or obsolete.
Notes from the agent
When something needs explaining rather than commenting — how two parts fit together, where a risk comes from — the agent can leave you a private note instead. It sits with your own notes, marked Agent note; the My notes card counts how many your agent wrote. Like every note, it is never published.
Add your own instructions
Settings › Agents › Additional instructions for AI review holds text that Copy prompt appends to the prompt after a blank line — for example "Answer in Polish. Be strict about tests." Below the field you see exactly what will be copied.
In the terminal, the same instructions are under :settings › Agents: e opens them in your editor, and the comments view's Copy prompt appends them as the desktop app does.
What the agent may see
Your ignore files decide it, in the engine — see Ignored files › What coding agents may see. A file under [agents] does not exist for the agent, and neither do the conversations on it; a file under [agent-content], an environment file or a file Mantish recognises as secrets is shown by its path and counts, never its content — the conversations on it are listed without their text, and the agent cannot comment on its lines.
Command palette
| Command | What it does |
|---|---|
| Comments: Show AI Review | Opens the Comments tab on the AI Review source |
| Copy AI Review Prompt | Copies the prompt and asks for a review |
The commands your agent runs
You never have to type them, but they are ordinary commands — see the CLI reference:
| Command | What it does |
|---|---|
mantish pr review start ID -r REPO | Starts the review you asked for and prints the agent's brief |
mantish pr diff ID -r REPO --file PATH | Reads the changes, filtered and without what you withheld |
mantish pr comment ls ID -r REPO | Reads the conversations and the comments of earlier runs |
mantish pr comment add ID -r REPO --at PATH:LINE --body | Adds a draft on lines and shows the code it landed on |
mantish pr comment follow-up ID -r REPO --id N --status | Says what became of an earlier run's comment |
mantish pr note add ID -r REPO --body | Leaves you a private note |
mantish pr usages, flow, impact | List the places of what the brief says the change may break |
mantish pr review finish ID -r REPO --summary | Ends the review with its overall assessment and main risks |
Where to find it
| App | Where |
|---|---|
| Desktop app (and browser) | Open a pull request; Comments tab › the AI Review card |
| VS Code | The same, in the Mantish view |
| Any terminal | The mantish pr commands above — what your agent runs |