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
- Create a new agent directory and run
blink init - Start the dev server with
blink dev - Press
Ctrl+Tto toggle to Edit Mode - 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.Comprehensive PR review
Comprehensive PR review
Quick sanity check before requesting review
Quick sanity check before requesting review
Security-focused review
Security-focused review
Performance analysis
Performance analysis
Architecture and design review
Architecture and design review
Test quality review
Test quality review
Documentation and clarity review
Documentation and clarity review
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.
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
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:If reviews are too nitpicky
If reviews are too nitpicky
If reviews miss important issues
If reviews miss important issues
If feedback is too vague
If feedback is too vague
If the agent is too harsh
If the agent is too harsh
If reviews take too long
If reviews take too long
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
- 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
- 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