Subagent Code Review Before You Share
You've updated analyze.py with new trend calculations and are about to share the changes with your team. Before you do, you want an unbiased review. The problem is that the Claude agent that wrote the code might rationalize its own decisions.
A subagent starts with a completely fresh context window — no memory of the implementation — and can catch issues the main agent might miss.
The team's project is already in your working directory at /home/repl/climate-analysis/.
This exercise is part of the course
Claude Code 101
Exercise instructions
- Start Claude Code with
claude. - Ask Claude to use a subagent to review
@analyze.pyfor bugs and code quality issues before sharing it with the team. - When done, type
/exitto exit Claude Code.
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
Start Exercise