Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Wealthfront Engineering 10 min read Case study mediumAdept

Experiments with AI Code Review

Wealthfront built Iris, an in-house AI code reviewer, iterating from a failed document-gathering design to a structured Gemini 2.5 Pro/Flash research-recursion pipeline and finally to an antagonistic review where Opus 4 acts as judge over a GPT-5 prosecution and a Gemini Flash defense for each suspected problem. Supporting tactics include letting the model draft a freeform review before forcing a structured tool call, replacing many bespoke MCP-style tools with a sandboxed filesystem plus shell, and spawning directed sub-agents for project background, production data and an 80-item checklist. Engineer ratings shifted from a bell curve centered on 'neutral' to mostly useful, driven largely by far fewer false positives, at about 10 minutes and $4 per review. AI review is non-blocking and runs between self-review and human peer review.

Related posts

  • Keeping code moving with clearer review expectations

    Sourcegraph mediumAdept

    Sourcegraph is experimenting with an AI agent that routes each pull request to one of three review paths: Ship (no review), Show (review after merge) or Ask (review before merge). The agent inspects the diff, surrounding code and the author's history, and application code applies explicit rules to pick a path. Familiarity requires two merged, reviewed PRs plus a relevant contribution in the past 30 days, and changes to authentication or sensitive-data exposure always require review. Early lessons: familiarity must be scoped to specific components, visible reasoning makes decisions contestable, and the bot's own comments can become interruptions. Fewer stamp requests so far says little about review quality.

  • Testing AI coding agents (2025): Cursor vs. Claude, OpenAI, and Gemini

    Render mediumAdept

    Four AI coding agents (Cursor with Claude Sonnet 4, Claude Code, Gemini CLI and OpenAI Codex) were compared on a one-prompt Next.js URL-shortener build with Postgres, Docker and Render MCP deployment, plus real tasks in a large Go API monorepo (Kubernetes pod leader election with go-quartz, NATS retry logic) and an Astro/Keystatic website. Cursor scored highest overall (8/10 average), producing the most complete app, including Docker Compose and a SQL migration, and following codebase-specific patterns. Gemini CLI excelled at large-context refactors but struggled on the greenfield build. Codex's model produced accurate, idiomatic code but was held back by setup friction and a weaker CLI UX. All tools faltered on novel or obscure libraries without targeted guidance, so experienced engineers still need to audit the output.

  • Ghostwriter AI & Complete Code Beta

    Replit mediumAdept

    Replit's Ghostwriter adds AI code completion, generation, transformation, explanation and semantic search to its IDE, with Complete Code starting in closed beta. Completion is built on Salesforce's CodeGen, converted to FasterTransformer and served on Triton, with a 2B model distilled to about 1B parameters and int8 quantization under exploration, for a median latency under 400ms. On the editor side, suggestions are matched against existing whitespace, braces and AST structure, adjusted as the user keeps typing, filtered by heuristics and streamed line by line. Other features use a 'society of models': a fine-tuned CodeBERT embedding model for contextual natural-language code search, and large OpenAI and 100B+ parameter models for explaining, generating and transforming code.

  • Sourcegraph MCP server and a cheaper model beat a Mythos-class model alone

    Sourcegraph easyNovice

    On nine discovery-heavy CodeScaleBench tasks, Claude Sonnet 4.6 using the Sourcegraph MCP server with no source on disk scored a mean reward of 0.698, beating Claude Fable 5 with a full local checkout (0.568) and winning six of nine tasks at $1.02 versus $1.83 per quality point. The gap concentrates on cross-repository discovery such as vulnerability tracing and cross-organization dependency following, while tasks both setups already solve tie and Fable won one cross-org task. The sample is small because Fable 5 access was restricted shortly after release, so it is an early signal: cheaper models with good code retrieval can outperform frontier models on navigation-heavy agent work.

  • Better tools made Copilot code review worse. Here’s how we actually improved it.

    GitHub Engineering mediumAdept

    Swapping Copilot code review's bespoke exploration tools for the shared Copilot CLI tools (grep, glob, view) initially raised review cost and reduced useful comments, because the tool instructions encouraged broad, repo-browsing behavior instead of diff-anchored investigation. Benchmark traces exposed the browsing loop, and rewriting tool guidance around a reviewer's workflow (form questions from the diff, narrow with grep/glob, batch discovery, view only known ranges, recover from failed searches with simpler queries or glob) cut average review cost about 20% in production without a quality regression. The same focused instructions did not help the interactive CLI, so tool prompting must match the product's job.

The quest for software engineering knowledge.

Look:
Layout: