mantish/ help / docs
Join the waitlist

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.

Last updated

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

  1. Open the pull request and its Comments tab. The AI Review card is on the right.

  2. Optionally write a Focus — what the agent should look at, for example "the token refresh path".

  3. Click Copy prompt and paste it into your agent's chat:

    text
    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 toDo
Withdraw a request the agent never ranCancel
Copy the prompt againCopy again
Change the focus before the agent runsChange focus
End a reviewStop — 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:

WhereWhat you see
Comments tab › AI ReviewEvery comment of every run: Open are the drafts, Closed the decided
The diff and the Markdown previewsEach draft under its lines, in the accent's ✦ frame
Threads panel › AI ReviewThe 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 toDo
Post it to the pull requestPublish — it becomes your comment, on its lines
Post one whose code is gonePublish as PR comment — on the pull request as a whole, quoting the code it was written on
Change what it saysEdit — what you type is kept while you look elsewhere; the comment is marked edited
Reject itDismiss, with a reason if you like — the next run reads it and does not raise the point again
Take back a dismissalRestore — 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

CommandWhat it does
Comments: Show AI ReviewOpens the Comments tab on the AI Review source
Copy AI Review PromptCopies 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:

CommandWhat it does
mantish pr review start ID -r REPOStarts the review you asked for and prints the agent's brief
mantish pr diff ID -r REPO --file PATHReads the changes, filtered and without what you withheld
mantish pr comment ls ID -r REPOReads the conversations and the comments of earlier runs
mantish pr comment add ID -r REPO --at PATH:LINE --bodyAdds a draft on lines and shows the code it landed on
mantish pr comment follow-up ID -r REPO --id N --statusSays what became of an earlier run's comment
mantish pr note add ID -r REPO --bodyLeaves you a private note
mantish pr usages, flow, impactList the places of what the brief says the change may break
mantish pr review finish ID -r REPO --summaryEnds the review with its overall assessment and main risks

Where to find it

AppWhere
Desktop app (and browser)Open a pull request; Comments tab › the AI Review card
VS CodeThe same, in the Mantish view
Any terminalThe mantish pr commands above — what your agent runs
Was this page helpful?