Code review assistant
You’ll build an agent that reviews new pull requests, runs checks in a sandboxed workspace, and posts feedback back to the PR.
The plan
- Create the review agent
- Connect your code host
- Enable a sandboxed terminal
- Trigger on new pull requests
Step 1 — Create the agent
Create an agent in Agents. In System instructions, define what to look for: correctness, security, style, and missing tests, with concise, line-referenced feedback.
Step 2 — Connect your code host
Connect GitHub or your code host via the Composio app library or an MCP server, and enable it on the agent in Integrations so it can read diffs and post comments.
Step 3 — Enable a sandboxed terminal
Turn on workspace execution and terminal access in the Capabilities tab so the agent can run linters and tests in an isolated environment. Keep scope tight.
Step 4 — Trigger on PRs
Add a trigger so the review runs automatically when a pull request opens. Test from the builder preview before enabling on a live repo.