Transcript
Exercise: Create a Subagent - Code Review Agent
---
Time to put subagents into practice. In this exercise, you'll create a code review subagent.
Your task is to create a new subagent specialized for code review. Put it in a project agent file such as .claude/agents/code-reviewer.md, and configure it with instructions about what to look for: coding standards, potential bugs, security issues, and whatever matters for your project.
Once you've created your reviewer agent, test it by asking it to review some code. See how it approaches the task differently from the general Claude Code assistant. Notice how having specific instructions focused on code review changes its behavior.
This is a hands-on way to understand how subagents work and how they can make your workflow more efficient.