Review Ninja

Code review for software with consequences.

Built for the people who keep production standing. Read every change in whole-repo context, before the PR exists, with live previews beside the diff.

Coalesce cache refreshes#412
2/3 viewedAll commits
Sources/Cache
Tests/CacheTests
Opened via ⌘Kbranch
MSources/Cache/RefreshQueue.swift
@@ -39,9 +39,13 @@ public actor RefreshQueue
4040 private var inFlight: [Key: Task<Value, Error>] = [:]
4141 public func fetch(_ key: Key, load: @escaping () async throws -> Value) async throws {
4242 if let existing = inFlight[key] {
43- return try await existing.value
43+ return try await withTaskCancellationHandler(existing)
4444 }
45- let task = Task { try await load() }
45+ let task = Task {
46+ defer { clear(key) }
47+ return try await load()
48+ }
49+ inFlight[key] = task
4650 return try await task.value
4751 }
Mmayaline 46 · 2m ago
Approved

Clean — putting clear(key) in defer guarantees the slot frees even when load() throws. Verified handles cancellation cleanly too.

Whole-repo context

Read full files, ⌘-click to jump to definitions, open unchanged callers with ⌘K, and search every file on the branch with ⌘⇧F.

MSources/Cache/RefreshQueue.swift
+18 -4
42if let existing = inFlight[key] {
43-return try await existing.value
43+return try await (existing)
44}
withTaskCancellationHandler3 definitions

Before the pull request

Review uncommitted and unpushed hunks from local Cursor sessions, spot local-only edits at a glance, and stage as you verify.

2/4 viewed
Sources/Cache
Tests/CacheTests
apps/site

Previews beside the diff

Open Vercel deployments and deep links from the PR description in remembered ⌘T tabs with persistent sign-in.

MDeployNotice.tsx
<Notice>
-label="Syncing"
+label="Ready"
+region="iad1"
commit={sha}
/>
pr-412.vercel.app/
Production previewReady
Regioniad1
Commitc659f28

Macintosh native

Crafted in SwiftUI and AppKit with a Liquid Glass-inspired design, fluid diff scrolling, and custom syntax themes.

18/// Evicts expired keys before coalescing new requests.
19func prune(before cutoff: Date) {
20-entries.removeAll()
20+entries = entries.filter { $0.value.expiresAt > cutoff }
21+log("pruned cache")
22}
Syntax

Fully local.

Your data never leaves your machine. The desktop app has no backend, no account, and no telemetry. It talks straight to GitHub and reads your local repositories from disk.

Credentials
macOS Keychain, gh CLI, or GITHUB_TOKEN
Response cache
~/Library/Caches on disk
Local diffs
Direct git read from your working tree
Outbound
api.github.com only. No Review Ninja server.
macOS

Native SwiftUI and AppKit diff table, local cache, and Keychain credentials.

GitHub

ETag polling with immediate reviews, draft toggles, merge, and auto-merge.

Keyboard

Quick open, repo search, hunk navigation, and built-in preview tabs.

⌘K⌘⇧FJ / K⌘T
Direct

Talks straight to GitHub and your local Cursor workspace. No intermediary server.

Keep reading the code.

Runs locally on your Mac. Sign in with the GitHub CLI or a personal access token.