# Anthropic's NEW Claude Code Review Agent (Full Open Source Workflow) <!-- ref: @content/youtube/patrick-ellis/2025-09-14-anthropics-new-claude-code-review-agent-full-open-source-wor tags: [claude-code, ai-code-review, github-actions, sub-agents, slash-commands, context-engineering, validators, security-review, engineering-workflow] version: 2 updated_at: 2026-11-21T22:07:56.692Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=nItsfXwujjg)** *Synthesized from Patrick, CTO and co-founder of a Seattle-based AI-native startup, on Patrick Ellis, 2025-09-14.* Patrick presents alone, walking through how he adapted the code-review tooling Anthropic open-sourced for Claude Code. He is the speaker throughout; there is no host or guest. ## Core Thesis Patrick argues that once AI agents produce more code than people can review line by line, the bottleneck moves to review. His answer is to split review in two: automated reviewers (slash commands, sub-agents and GitHub Action runners) check patterns, security and acceptance criteria, and humans focus on architecture and business fit. He says the approach works only when the agent gets the right context, tools and validators. ## Key Insights - **The bottleneck moved:** Patrick says Anthropic's Claude Code team, which he says had Claude Code write nearly 95% of its own code, stopped reviewing most changes line by line and moved to using a second Claude to review and humans to do acceptance testing. He says his own team started battle-testing Claude Code on the day it launched in February. - **Inner and outer loops:** the inner loop is interactive work with slash commands and sub-agents before a pull request. The outer loop is GitHub Action runners that use Claude Code's headless mode to do the first review round. - **Three-part orchestration:** context (prompts, docs, the codebase, the CLAUDE.md file, architecture and the task), tools (codebase search, web search, and MCP servers such as Playwright for screenshots) and validators (style guides, architecture rules, and good and bad output examples). - **Automated review scope:** the automated pass covers security scanning, bug detection, syntax and completeness checks, style-guide adherence and acceptance criteria. He describes it as "a linter on steroids" that scales with large pull requests. - **Human review scope:** humans check the core business problem, what the pull request is meant to accomplish, architecture fit, and UI and UX fit, and learn from reading the agent's back-and-forth. - **Commands the workflow uses:** the built-in review command, which reviews a pull request or, with no argument, the last few commits (he asks it to review the last three), and the security-review command, which audits recently changed files. He also uses a headless Claude Code run in GitHub Actions with Opus selected. - **Sub-agents preserve context:** sub-agents run in their own context so the main thread keeps its roughly 200k tokens, and they return an executive summary. - **Installing the runners:** a slash command installs the GitHub app, which opens an OAuth connection and creates a pull request that adds two workflow files under the GitHub workflows directory: a Claude Code action and a code-review workflow. A security-review workflow comments only when it finds a problem, and it commented on the exact line in his demo. - **Building the review prompt:** he used a Gemini deep research report, then Gemini Deep Think, and fed in a copy of the prompt structure from Anthropic's open-source action repository to produce a lighter review process for an early-stage startup. - **Knowledge transfer:** teams can package expert knowledge (security, UI/UX, SEO, architecture) as markdown files for sub-agents and commands, and share them across a team or download them from public repositories. - **Role prompting:** give the model a specific role, for example a staff-level site reliability engineer focused on named concerns, to pull relevant training data forward. - **Examples cited:** the OWASP Top 10 is the security baseline he points to for the security review. ## Actionable Takeaways 1. Split review into an automated first pass (linting, security, acceptance criteria, style) and a human pass on architecture and business fit. 2. Run the automated review as a GitHub Action with the Claude Code action in headless mode, and select Opus for the review model. 3. Write the review prompt with a role, the OWASP Top 10 as the security baseline, and a few examples of good and bad output. 4. Keep the codebase clean and the CLAUDE.md file current, since agents mirror the environment they are in. 5. Use sub-agents for review so that the main context keeps working and only the executive summary returns. ## Notable Quotes > "You are only as good as what you're told and what you're able to search around and find out." — Patrick Ellis > "It's the environment that's messy that they're putting them in." — Patrick Ellis > "Think of it like going into a new team." — Patrick Ellis --- *Related: `@content/web/xinyadu/2026-11-29-claude-code-task-framing-study` · `@content/web/github/2026-11-27-resume-command-osc-7577-issue-112408` · `@content/web/github/2026-11-26-opus-context-fills-faster-issue-112194` · `@content/web/github/2026-11-26-interactive-session-misclassified-background-issue-112133` · `@content/web/github/2026-11-26-autodream-silently-ignored-issue-112310`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*