GitHub PR review assistant
Use the GitHub PR Review Assistant when you want Faheem Code to watch pull requests and have an Faheem Code agent review them.
The setup has two parts:
- Give the active backend access to GitHub
- Start the pre-built PR review workflow from
Automate
Prerequisites
Before you start, make sure you have:
- Faheem Code installed and running
- An LLM configured for the backend that will run the automation
- Access to create a GitHub token for the repository you want to review
- Access to install MCP servers and save secrets in Faheem Code
If you are new to Faheem Code, start with Install and First-Time Setup.
Create a GitHub Access Token
- Go to GitHub Developer Settings.
- Click
Generate new token. - Prefer a fine-grained personal access token if your organization supports it.
- Give the token a clear name, such as
Faheem Code PR Reviewer. - Select repository access:
- Choose
Only select repositoriesfor the safest setup. - Choose
All repositoriesonly if the automation needs broad access.
- Choose
- Set an expiration date that matches your team's security policy.
Add repository permissions
In the token setup screen, grant the permissions the reviewer needs.
For a PR review automation, use:
| Permission | Access |
|---|---|
Contents | Read and write |
Issues | Read and write |
Pull requests | Read and write |
Metadata | Read-only |
Actions | Read-only, if the automation should inspect CI results |
Checks | Read-only, if the automation should inspect check runs |
Then click Generate token and copy the token immediately.
Add the GitHub MCP server
The GitHub MCP server gives the agent tools for reading repositories, inspecting pull requests, and posting review output.
- In Faheem Code, check the backend switcher in the bottom-left corner.
- Make sure the active backend is the backend where you want the PR review automation to run.
- Open
Customize. - Open
MCP Servers. - Select
GitHubfrom the MCP library. - Paste the GitHub token you created earlier.
- Make sure the secret-creation toggle is on so Faheem Code creates the token secret automatically when you save the MCP server configuration.
- Save the MCP server configuration.
Start the PR review workflow
- Open
Automatein the left navigation. - Find
Start from a proven workflow. - Choose the GitHub PR review workflow.
- Faheem Code opens a new conversation with a prefilled setup prompt.
- Send the prompt as-is, or edit it first if you already know what you want.
After you send the prompt, the agent starts a setup conversation. It uses the preconfigured skills and GitHub access to interview you, clarify the review workflow, and create the automation.
Customize the review
You do not need to know every detail before sending the prefilled prompt. The agent will ask follow-up questions to clarify:
- The repository owner and name
- Which pull requests to review
- Whether the agent should post a single summary comment or detailed inline feedback
- Whether the agent should inspect CI results before commenting
- Any files, directories, or checks the reviewer should ignore
You can edit the prefilled prompt before sending it if you want to provide any of those details up front.
Verify the automation
After the automation is created:
- Open
Automate. - Confirm the new automation appears in the list.
- Open the automation details and check that it is enabled.
- Trigger or wait for a matching pull request event.
- Confirm that the agent run appears and that the review is posted to GitHub.