Skip to main content

Overview

Blink lets you build an agent that acts as your PR review partner. Tag it on any pull request and it will review your code, provide constructive feedback, catch potential issues, and help you maintain high code quality standards—all before your teammates review. This page shows you what’s possible and provides prompts you can use in Edit Mode to build your own PR review agent.

Getting started

  1. Create a new agent directory and run blink init
  2. Start the dev server with blink dev
  3. Press Ctrl+T to toggle to Edit Mode
  4. Describe your code review agent using the ideas below

What you can build

Here are examples of what you can ask your PR review agent to do once you’ve built it. These show the kinds of reviews and feedback your agent can provide.

Building your PR review agent

Switch to Edit Mode (Ctrl+T) and use these prompts to build your agent. Copy and customize them based on what you want your agent to do.
You don’t need to use all of these prompts. Start with 2-3 that match your needs, test the agent, then add more capabilities as needed.

Make it provide constructive code reviews

Make it catch common bugs and issues

Make it check test coverage

Make it review for security vulnerabilities

Make it assess performance implications

Make it enforce code quality standards

Make it verify PR descriptions are complete

Make it understand your codebase patterns

Make it prioritize feedback effectively

Make it provide actionable suggestions

How it works behind the scenes

When you use the prompts above, Edit Mode automatically implements the right tools for your agent. You don’t need to code anything; just describe what you want. Common tools include:
  • GitHub API - Fetch PR details, read code changes, leave review comments
  • File reading - Examine the changed files and surrounding context
  • Code analysis - Parse and understand code structure and patterns
  • Test execution - Run test suites to verify coverage
  • PR commenting - Add review comments on specific lines or general feedback
  • Pattern matching - Search for common issues and anti-patterns
Edit Mode handles all the technical implementation. Your job is to describe how the agent should review PRs and what to look for.

Iterating on your agent

As you test, you’ll discover what works and what needs adjustment. Use these Edit Mode prompts to refine your agent’s behavior:

Tips for success

When you’re building:
  • Start with basic code reviews focusing on correctness and bugs
  • Test the agent on small PRs (under 200 lines) first
  • Calibrate feedback style—constructive but direct
  • Review the agent’s reviews to ensure quality
When you’re using it:
  • Tag your agent on PRs before requesting human review
  • Use it for quick sanity checks and early feedback
  • Ask for focused reviews (security, performance, etc.) when needed
  • Don’t skip human reviews—use the agent as a complement
When you’re ready to scale:
  • Build a knowledge base of your codebase patterns
  • Train it on past review comments from your team
  • Integrate with your CI/CD pipeline for automatic reviews
  • Track metrics on review quality and caught issues
Focus on catching real bugs and security issues first. You can always add sophistication like learning from patterns or generating test suggestions later.