惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
Google DeepMind News
Google DeepMind News
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
P
Proofpoint News Feed
Recent Announcements
Recent Announcements
MongoDB | Blog
MongoDB | Blog
U
Unit 42
云风的 BLOG
云风的 BLOG
Recorded Future
Recorded Future
G
Google Developers Blog
I
InfoQ
Blog — PlanetScale
Blog — PlanetScale
A
About on SuperTechFans
Jina AI
Jina AI
量子位
宝玉的分享
宝玉的分享
The Cloudflare Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 聂微东
Last Week in AI
Last Week in AI
WordPress大学
WordPress大学
美团技术团队
The Hacker News
The Hacker News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
Tailwind CSS Blog
博客园 - 司徒正美
博客园 - 叶小钗
Hugging Face - Blog
Hugging Face - Blog
P
Palo Alto Networks Blog
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
博客园 - 【当耐特】
Spread Privacy
Spread Privacy
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
Vercel News
Vercel News
Martin Fowler
Martin Fowler
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Forbes - Security
Forbes - Security
Attack and Defense Labs
Attack and Defense Labs
Google DeepMind News
Google DeepMind News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Azure Blog
Microsoft Azure Blog
P
Privacy International News Feed
G
GRAHAM CLULEY
The Last Watchdog
The Last Watchdog
C
Cyber Attacks, Cyber Crime and Cyber Security
AI
AI
V2EX - 技术
V2EX - 技术

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
I Let an AI Agent Review My PRs for a Week — Here's What It Caught
Nebula · 2026-04-27 · via DEV Community

Nebula

Four years into running a codebase with half a million lines of Python and TypeScript, my PR review process looked like this: a senior engineer skims the diff, leaves three style comments and a "LGTM," merges. Real bugs ship anyway. The ones that make it through are always the boring kind — edge cases in error handling, cache invalidation timing, stuff nobody thinks to check.

So I put an AI agent on it. Not a GitHub copilot suggestion. An autonomous agent that runs on every commit, reads the full diff, maintains a persistent review history, and posts comments without human prompting.

The agent is called nebula-eng-reviewer and it runs on Nebula. Here is what it found, what it missed, and what surprised me about the whole experiment.

Setup

The agent is configured via a YAML file that tells it which repository to watch, what severity levels to use, and a commit history tracker so it never asks the same question twice.

agent: nebula-eng-reviewer
goals:
  - description: "Review every commit on thirdweb-dev/nebula-web, post inline comments"
    priority: high
triggers:
  - type: schedule
    cron: "*/6 * * * *"
    description: "Check for new commits on open PRs"
  - type: event
    event: github:push
    description: "Trigger on push to open PRs"

Enter fullscreen mode Exit fullscreen mode

The review prompt is straightforward: look for bugs, architectural risks, and security issues. Rate each finding RED (blocks merge), YELLOW (concern, discuss), or GREEN (acknowledge good fix). Post inline comments with the exact line numbers and a comment ID so the same issue does not get re-flagged on subsequent runs.

The Numbers

Over one week the agent completed 43 review rounds across three pull requests. It filed 27 issues:

  • 8 RED (critical bugs, architectural risks)
  • 11 YELLOW (concerns worth discussing)
  • 8 GREEN (acknowledgments)

Of the 8 RED findings, 7 were confirmed by human reviewers. One was a false positive. Of the 11 YELLOW findings, 9 resulted in code changes. The agent had 2 misses — bugs that shipped through and were caught later in staging.

What the Agent Caught That Nobody Else Did

1. TOCTOU Race Condition in Invite Acceptance

PR #3223 was adding workspace features. The accept_invite endpoint checked if an invite was still valid, then accepted it. Between those two operations, another user could accept the same invite.

async def accept_invite(invite_id: str):
    invite = await db.get(Invite, invite_id)
    if invite.status == "active":  # check
        invite.status = "accepted"  # race window here
        invite.accepted_at = datetime.utcnow()
        await db.commit()

Enter fullscreen mode Exit fullscreen mode

The agent flagged this as RED — "Two users can accept the same invite simultaneously. This creates a duplicate membership." Human reviewers had been looking at the UI changes and missed it entirely.

The fix required an atomic constraint at the database level, not a code-level check.

2. Detached ORM Object Across Sessions

In the same PR, update_workspace passed a SQLAlchemy object between sessions:

async def update_workspace(workspace_id: str, data: dict):
    workspace = await db.get(Workspace, workspace_id)
    # workspace is now detached from the session
    # after this function returns
    return workspace

# In the calling code:
workspace = await update_workspace("ws_123", {"name": "New"})
workspace.name = "Other"  # This silently fails — object is detached
await db.commit()

Enter fullscreen mode Exit fullscreen mode

The agent caught this on the first review round. Red: "workspace object will be detached after the function returns. Any modifications in the caller will not persist."

3. Pointer-Capture Regression in iframes

PR #638 was redesigning the agent activity section. The agent noticed that iframe containers were missing pointerEvents: 'auto' CSS, which would cause pointer capture to break on nested interactive elements.

This was a YELLOW flag. It would have been a production incident within 48 hours if deployed.

4. TOFU Cache Migration Hazard

PR #3326 changed SSH routing to route through a gateway. The agent found that the known-hosts (TOFU) cache used bare VM names as keys. After deploy, every cached entry would point to the wrong host and break connections for all existing devices.

Red: "After this deploys, all 50+ team members will get host key mismatch errors on their next deploy."

The fix was to namespace cache keys by host. The agent found this in the first review round. It took another commit to fix.

What the Agent Got Wrong

Not every flag was a real issue. The agent flagged two things that were intentional design decisions:

  1. A useLayoutEffect height lock that looked like a performance bug but was actually a deliberate layout stabilization pattern.
  2. A flatMap multi-agent windowing pattern that the agent thought would cause ordering issues, but was correct given the eventual-consistency model.

Both were YELLOW, not RED, so they went through discussion. The agent learned from the corrections and did not re-flag them.

What the Agent Missed

This is the part most people skip. The agent missed two bugs that made it to staging:

  1. Session token expiry not propagated to WebSocket connections. HTTP requests correctly validated token expiry, but the WebSocket handler used a cached token reference that expired independently.
  2. A missing await on an async health check that caused the health endpoint to return 200 even when the database was unreachable.

Both were caught by our staging environment, but the agent should have seen them in the diff. Neither was in the files the agent had the strongest coverage on. This tells me the review scope needs adjustment.

How the Review Tracker Works

The agent maintains a persistent issue tracker per PR, stored in memory. Each round, it reads previous comments and skips anything already resolved. This prevents the "same comment every 6 hours" problem that makes bot reviewers unbearable.

PR #638 tracker:
  Round 1: 3 comments (1 RED, 1 YELLOW, 1 GREEN)
  Round 2: RED issue still open, posted follow-up
  Round 3: RED issue fixed, posted GREEN ack
  Round 4-10: GREEN acks on each new commit
  Final: 13 review comments, 20 issue comments

Enter fullscreen mode Exit fullscreen mode

The tracker is visible in the thread — every comment has an ID, and the agent references them by number so you know whether it repeated itself or caught something new.

The Real Cost

43 rounds. 27 issues. 7 confirmed criticals. 2 misses. 2 false positives.

The agent costs about $0.50 per review round in inference, so the week ran around $21 total. A senior engineer would have spent maybe 2 hours across those three PRs. The cost is similar. The coverage is different — the agent does not get tired at 11pm and it does not skip the boring files.

The biggest value was not catching bugs. It was being thorough about things nobody thought to check. The cache migration hazard in PR #3326 would have taken 30 minutes of team debugging after deploy. The agent found it in two seconds on commit one.

Takeaways After One Week

  1. The agent is better at cross-file analysis than any single reviewer. It reads every changed file, not just the ones you tell it to look at.
  2. Inline comments with persistent IDs are essential. Without them you get duplicate noise and nobody trusts the bot.
  3. Severity levels matter. RED means "this blocks merge." YELLOW means "discuss." GREEN means "good, acknowledge." If everything is a warning, nothing is.
  4. The agent misses things too. Session-scoped state and timing bugs are hard for a diff-based reviewer. You need both.
  5. $21 for a week of 24/7 review is a good deal. The tool is not replacing engineers. It is catching the stuff that falls through the cracks between 6pm and 9am.

The agent is still running. Next week I will test it on a larger codebase with more PRs to see if the false positive rate changes at scale.