Get startedGet started for free

Spin up a code reviewer

You're working with a team on payments-app. Reviewing pull requests (PRs) by hand takes time and issues slip through — so you'll create a code-quality-reviewer subagent that anyone can run before opening a PR.

Walk through the /agents panel to create it.

This exercise is part of the course

Introduction to Subagents

View Course

Exercise instructions

  • Start Claude Code with claude.
  • Run /agents and choose Create new agent.
  • Pick Project scope so the agent is saved with the repo and your team can use it.
  • Choose Generate with Claude, then describe the agent (something like "reviews recently modified code for quality issues and potential security vulnerabilities, scoped by git diff") and let Claude generate the config.
  • On the tools panel, leave all tools selected; on the model panel, choose Haiku; pick a custom color; then confirm and save.
  • Type /exit to exit Claude Code.

Note: the /agents panel is a Text User Interface (TUI). Most of your input is navigation, not typed prompts. The grading checks that you opened the panel and that an agent config was actually saved to the project.

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise