Skip to content
Y
yTube.SITE v8.0.4
media / worlds / tools / internet oddities
YouTube / video information

Claude Code Subagents Tutorial: Make AI Review Your Code

Video information, playback and saved actions.

Claude Code Subagents Tutorial: Make AI Review Your Code

Description: Claude Code subagents tutorial: make a code-reviewer subagent in one Markdown file, then watch it catch a real bug that turned $100 plus a 10% tip into "10010".

We write the file in .claude/agents (name, description, tools, model and the prompt), add a change with a hidden bug, ask the reviewer to check it, fix what it found and test the app. Then three tips: @-mention the agent, keep it in ~/.claude/agents for every project, and use a cheaper model for simple jobs.

The reviewer file (save as .claude/agents/code-reviewer.md):
---
name: code-reviewer
description: Reviews code for bugs. Use proactively.
tools: Read, Grep, Glob, Bash
model: sonnet
---

You are a strict senior code reviewer.
When invoked:
1. Run git diff to see what changed.
2. Read the changed files.
3. List real bugs first, then risks.
For each problem, give the file, the line,
why it is wrong, and the fix.
Do not edit files. If all is fine, say so.

Try it: save the file, restart Claude Code if the agents folder is new, then type: Use the code-reviewer subagent to review my recent changes

0:00 Intro
0:27 What a subagent is
1:00 Our small app
1:22 Write the reviewer
2:20 Add a change
2:46 Run the review
3:27 Fix and test
4:18 Three tips

Sources:
https://code.claude.com/docs/en/sub-agents

#claudecode #aicoding #javascript Close description
      
Videos related to "Claude Code Subagents Tutorial: Make AI Review Your Code"

Related videos are temporarily unavailable.

Try again, or come back later.