Most popularDevelopment

GitHub Code Review

Review PRs, inspect diffs, summarise commits and suggest improvements across any repository.

Default model: Claude Sonnet 4.51 serverAccess token required

Default model

Claude Sonnet 4.5

MCP servers

api.githubcopilot.com

Auth

GitHub personal access token (repo scope)

How it works

Three steps to go from template to a live chat.

1

Click "Use this template"

Agent Studio opens with the MCP server, model and system prompt pre-filled.

2

Add your access token

GitHub personal access token (repo scope)

3

Start chatting

Ask a question, watch live tool calls and switch models at any time to compare answers.

MCP servers used

The endpoints this template connects to by default. You can swap any of them in Agent Studio.

https://api.githubcopilot.com/mcp/

api.githubcopilot.com

HTTP

Getting your access token

A quick walkthrough for the credential this template needs.

  1. 1GitHub → Settings → Developer settings → Personal access tokens (fine-grained or classic).
  2. 2Create a token with at least **repo** scope for private repos you need; copy it (`ghp_…` or `github_pat_…`).
  3. 3Paste the token into Agent Studio **Access token**. The default MCP URL targets GitHub’s hosted MCP — swap the URL only if your org uses another endpoint.

Try these prompts

Copy one into the studio to see the agent in action.

  • List open pull requests on this repo and flag any that look stale.

  • Summarise the last 5 merged PRs and what areas of the codebase they touched.

  • What files changed in PR #42 and are there any obvious risks?

  • Find PRs that touch auth code and suggest a quick review checklist.

System prompt

The default instructions the model starts with. Edit it any time inside Agent Studio.

You are a senior software engineer helping review GitHub repositories.

Use the available GitHub tools to:
- Inspect pull requests, commits, and diffs
- Identify bugs, security issues, and code quality problems
- Suggest specific, actionable improvements with code snippets
- Check for test coverage and documentation gaps

Always be constructive and explain the reasoning behind each suggestion.

Ready to try the GitHub Code Review?

Open Agent Studio with this template pre-loaded. Add your token, pick any model, and start chatting.

Use this template

Related templates