Skip to content

Slash Commands#

Slash commands let you ask MergeMonkey for a focused review, ask follow-up questions, or re-run an interrupted analysis — all from any pull request or merge request comment. Commands work identically on GitHub and GitLab.

Command reference#

CommandWhat it does
/review <path>Re-review a specific file or directory
/review <path> (fn)Review a specific function within a file
/chat <question> <path>Ask a question about a file
/roast <path>Stylistic / code-quality critique of the diff
/mergemonkey resumeContinue an interrupted review

Commands must be posted as their own PR comment — not inline on a line. MergeMonkey replies in the same thread within ~30 seconds.

/review#

A focused review of one file or function. Useful when the automatic review didn't dig deep enough, or when you've changed a single critical file.

/review src/auth/session.ts

You can narrow further to a specific function:

/review src/auth/session.ts (verifyToken)
Scoped context

A /review command ignores the rest of the diff — it builds a context pack from just the path you specified, plus its direct callers and imports. You get a more detailed review of that target.

/chat#

Conversational Q&A grounded in a specific file. Use this for questions, not review requests.

/chat why does this function lock the DB? src/billing/usage.ts
/chat is this safe to call concurrently? src/queue/worker.ts

MergeMonkey answers in-thread, citing the code it referenced.

/roast#

A stylistic critique of your diff — naming, structure, complexity, missing tests, dead code. No security focus; think of it as a senior dev pass on readability.

/roast
Use sparingly

/roast is opinionated and blunt by design. If you want constructive feedback, use /review instead.

/mergemonkey resume#

If a review was interrupted (worker crash, upstream API outage, provider rate limit), you'll see a summary comment that says "review incomplete." Post:

/mergemonkey resume

and MergeMonkey picks up from where it stopped, reusing cached context.

Security & permissions#

  • Commands are only accepted from users with write access to the repository.
  • Path arguments are validated against path-traversal attempts (../, absolute paths, symlinks out of the repo).
  • Commands count against your daily command limits.

What counts as a command limit hit?#

Any top-level slash command (/review, /chat, /roast, /mergemonkey resume) that MergeMonkey executes counts as one command. Automatic PR reviews count separately toward the daily review limit.

Next#