Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungKI half beim Finden: iOS 27 schließt mehr als 100 Sicherheitslücken(21.09.2026 um 06:00 Uhr)
Sichere ProgrammierungWhat Is Rowhammer? How Can Repeated Memory Access Flip Bits in RAM?(21.09.2026 um 07:12 Uhr)
Sichere Programmierungnpm publish Ignores .gitignore: The .npmignore Override Rule(21.09.2026 um 07:15 Uhr)
Sichere ProgrammierungAphelion Editor - A free node-based video / VFX editor(21.09.2026 um 07:21 Uhr)
Sichere ProgrammierungGovernance Attack Surface Review: OKX(21.09.2026 um 07:31 Uhr)
Sichere ProgrammierungJSM Portal Request Create Property Panel Submit(21.09.2026 um 07:34 Uhr)
Reverse Engineeringsearch instructions assembly easy (X86,RISCV,AARCH64,etc)(20.09.2026 um 15:44 Uhr)
Sichere ProgrammierungKI half beim Finden: iOS 27 schließt mehr als 100 Sicherheitslücken(21.09.2026 um 06:00 Uhr)
Sichere ProgrammierungWhat Is Rowhammer? How Can Repeated Memory Access Flip Bits in RAM?(21.09.2026 um 07:12 Uhr)
Sichere Programmierungnpm publish Ignores .gitignore: The .npmignore Override Rule(21.09.2026 um 07:15 Uhr)
Sichere ProgrammierungAphelion Editor - A free node-based video / VFX editor(21.09.2026 um 07:21 Uhr)
Sichere ProgrammierungGovernance Attack Surface Review: OKX(21.09.2026 um 07:31 Uhr)
Sichere ProgrammierungJSM Portal Request Create Property Panel Submit(21.09.2026 um 07:34 Uhr)
Reverse Engineeringsearch instructions assembly easy (X86,RISCV,AARCH64,etc)(20.09.2026 um 15:44 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

I built an AI PR reviewer and it already caught bugs I missed

Reagiere als Erste:r — dein Feedback zählt!

I've been doing code review the same way for years. Read the diff, run it locally if something looks tricky, leave a comment or two, merge. Works fine until you're tired, distracted, or too close to the code to see the obvious problem.

So I built claude-pr-reviewer. It's a GitHub Action that feeds your PR diff to Claude and posts structured feedback as a comment. Not a linter. Not a style checker. Actual reasoning about what the code does, what it gets wrong, and whether it should merge.

The setup is minimal:

name: Claude PR Review
on:
  pull_request:
    types: [opened, synchronize]

permissions:
  pull-requests: write
  contents: read

jobs:
  review:
    runs-on: ubuntu-latest
    steps:
      - uses: indoor47/claude-pr-reviewer@v1
        with:
          anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}

One secret. One workflow file. Every PR gets reviewed automatically.

What the output actually looks like

The review posts as a PR comment, structured into sections. Here's a real example from a rate-limiting PR I ran it against:

## Summary
This PR adds token bucket rate limiting to the /login and /register
endpoints to prevent brute force attacks...

## Issues Found

### Critical (must fix before merge)
- `auth/middleware.py:34`: Rate limit state is stored in-process memory.
  This means limits reset on every deploy and don't work across multiple
  server instances. Use Redis or a shared store.

### Major (should fix)
- The rate limit window resets on each request rather than using a
  sliding window, making it easy to bypass with careful timing.

### Minor (consider fixing)
- Variable `ratelimit_max` (line 12) should be `RATE_LIMIT_MAX` per PEP8.

## Security
The current implementation can be bypassed by rotating IPs. Consider
combining with user-based limiting in addition to IP-based.

## Overall Verdict
REQUEST CHANGES -- the in-memory state is a correctness bug that will
cause silent failures in production.

The in-memory state bug was what I missed. I was focused on the rate-limiting logic: the algorithm, the token bucket math. Whether state would evaporate on every deploy, or fail silently across multiple instances, hadn't registered. It showed up in Critical.

That's what makes it useful. When you're deep in how something works, you stop seeing what it assumes.

How it works

About 250 lines of Python, no external dependencies. When a PR opens or gets updated:

  1. The Action reads the PR number from the GitHub Actions event payload
  2. It fetches the raw diff from GitHub's API (Accept: application/vnd.github.v3.diff)
  3. It sends the diff, PR title, and description to Claude via the Anthropic API
  4. Claude returns feedback in a fixed format: Summary, Issues (Critical / Major / Minor), Security, Verdict
  5. That gets posted as a PR comment, or if one already exists from a previous push, patched in place

That last part matters more than it sounds. Without it, every push to a PR spawns a new top-level comment. If CI takes four tries to go green, you end up with four separate review blocks. The tool searches for its own marker (<!-- claude-pr-reviewer -->) and patches instead.

The prompt forces a consistent format:

You are a senior software engineer doing a thorough code review.

PR Title: {title}
PR Description: {body}

Diff:
{diff}

Respond in this exact format:

## Summary
One paragraph describing what this PR does.

## Issues Found

### Critical (must fix before merge)
...

### Major (should fix)
...

Without the format constraint you get an essay. With it you get something scannable in 30 seconds.

What it catches (and what it doesn't)

Good at: missing error handling, SQL injection risks, auth logic that doesn't match what the PR description says it does, edge cases around empty input or concurrent access. Things that pass human review because you're checking whether the code looks right, not whether the assumptions hold.

Bad at: anything that requires knowing your codebase beyond the diff. It won't know your error handling conventions, or that a module was deprecated last quarter. It only sees what changed.

If you don't have tests, none of this matters anyway. The tool tells you something is wrong; you still need tests to know whether the fix is right.

Why no dependencies

External packages need pip install, which needs a setup step, which can fail, and then your PR review workflow is broken on someone's urgent hotfix at 2am. urllib, json, re are always there.

It also keeps the attack surface at zero. One file. Nothing to audit.

Models and cost

Default is Claude Sonnet. Each review costs roughly $0.003-$0.02. A team running 20 PRs a day spends about $1-2/month. Opus is available for harder PRs by adding model: claude-opus-4-6 to the workflow inputs -- more expensive ($0.01-$0.05/review) but better on subtle issues.

There's a paid hosted tier in progress for teams that don't want to manage their own API key.

Repo is at indoor47/claude-pr-reviewer. MIT license, works with your own key. If it flags something wrong, or misses something obvious, that's worth reporting.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten I built an AI PR reviewer and it already caught bugs I missed

Thematisch verwandte Begriffe: built, reviewer, already, caught · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94111 | Tencent BrowserSkill through 0.3.0 contains an authentication bypass vul…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick