Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Build an AI Code Reviewer in Go

Video #10 — Claude API in Go Series
Publish date: 2026-08-03
Type: Heavy (Capstone)
Est. duration: ~40 min

What we cover

  • Sending a git diff to Claude for structured code review
  • Defining a ReviewResult struct and getting Claude to return valid JSON
  • Parsing structured output into Go types for downstream use
  • Detecting security issues, anti-patterns, and code quality problems
  • How to extend this into a real GitHub webhook + PR comment bot

Prerequisites

  • Go 1.23+
  • An Anthropic API key
  • Episodes 04 (structured JSON output) and 05–06 (tool use concepts) are helpful background

Running the example

cd 10-ai-code-reviewer
export ANTHROPIC_API_KEY=your_key_here
go run main.go

Project structure

.
├── README.md
├── go.mod
├── go.sum
└── main.go