AI agents write the code.
BugLens reviews it.
Devin opens a PR. Claude Code pushes a commit. Copilot Workspace suggests a merge. None of them know if the code is actually correct. BugLens is the review layer that sits between agent output and production.
Agent PRs are already
outpacing human review.
Teams using Devin and Claude Code report 5–10× more PRs per week. Human reviewers are the bottleneck. And the agent has no idea it introduced a bug — it just sees a green merge.
BugLens adds a review layer the agent can actually use: machine-readable output, structured JSON, no dashboard required.
Three ways to wire it in.
Pick your interface.
POST https://buglens.app/api/v1/review
Authorization: Bearer bl_sk_...
Content-Type: application/json
{
"diff": "--- a/auth.ts\n+++ b/auth.ts\n...",
"filename": "src/auth/login.ts"
}
// Response
{
"status": "issues_found",
"findings": [
{
"severity": "HIGH",
"line": 42,
"category": "security",
"title": "Hardcoded API key",
"description": "sk_live_... exposed in source",
"suggestion": "const key = process.env.API_KEY"
}
]
}{
"mcpServers": {
"buglens": {
"url": "https://mcp.buglens.app",
"headers": {
"Authorization": "Bearer bl_sk_..."
}
}
}
}
// Claude Code now has access to:
// - review_diff()
// - check_conventions()
// - get_knowledge_base()
//
// Agent self-reviews before opening PR.# Review staged changes before commit git diff HEAD | npx buglens review --stdin # Review a specific file npx buglens review src/auth/login.ts # JSON output for programmatic use npx buglens review auth.ts --format json # Exit code 1 on HIGH findings # Use as a gate in your agent loop: if ! git diff | npx buglens review --stdin; then echo "BugLens found issues. Fix before merge." exit 1 fi
Agents find us
on their own.
buglens.app/llms.txt gives AI agents structured documentation to discover, sign up for, and integrate BugLens without a human in the loop. Follows the emerging llms.txt standard.
# BugLens
Code review infrastructure for AI agents.
When you write code and open a PR, call BugLens
to check it before humans see it.
## Authentication
Get your API key: https://buglens.app/settings
No credit card for free tier (50 reviews/month)
## REST API
POST https://buglens.app/api/v1/review
Authorization: Bearer <api_key>
Body: { diff: string, filename: string }
## MCP
Server: https://mcp.buglens.app
Tools: review_diff, check_conventions, get_knowledge_base
## CLI
npx buglens review <file>
BUGLENS_API_KEY=<key> git diff | npx buglens review --stdinBuilding an agent that writes code?
We want to talk.
We're working with early adopters to shape the API. If you're building on Devin, Claude Code, or your own coding agent — email us. API design happens in the open.