Day 1, 20 minutes · advanced
Why it matters
You finished Claude Code 101, so you know how to give Claude a task and review what it changes. Some tasks are mostly reading: search every file for prices, read a long log, check ten notes against one list. Claude reads all of it, and all of it stays in your conversation, even the parts you never look at again.
A subagent takes that kind of side task off your hands. It is a separate helper with its own context window. It does the reading and searching there, and only a short summary comes back to your conversation. Claude Code already has a few built in, and Claude uses them on its own when a task fits.
This course follows one small practice project. Ottoline runs Fenwick Pottery Studio, a made-up pottery studio that sells evening classes. Her folder holds class notes, a price list and a draft reply to a customer, and the draft has mistakes in it. Today you set up that folder, ask a built-in subagent a real question about it, and learn where to see what ran.
What a subagent is
The subagents page describes a subagent as a specialized assistant for one type of task. Three things make it different from simply asking Claude:
- Its own context window. The subagent starts fresh. It does not see your conversation so far or the files Claude already read. Claude writes it a task message, and it works from that.
- Only the result comes back. Claude sees the subagent's final answer, not every file it opened or command it ran.
- Its own setup. A subagent can have its own instructions, its own set of tools and its own model. You will use that from lesson 3 on.
A subagent also sends its own requests to the model. Those count toward the same usage limits as your main conversation, so a subagent is never free. Lesson 6 is about when that cost is worth it.
The built-in subagents
Claude Code ships with several subagents and uses them when a task fits:
- Explore searches and reads code and files. It has no tools to edit or write files. When Claude starts it, it picks how deep to search: quick, medium or very thorough.
- Plan does the research while you are in plan mode, so the main conversation stays read-only.
- general-purpose handles tasks that need both looking around and making changes.
There are a few more helpers for specific jobs, such as one that answers questions about Claude Code itself. Explore and Plan start without your CLAUDE.md files, to keep their research fast and cheap. Most other subagents do load CLAUDE.md.
You rarely need to ask for any of this. You can still name a subagent in your prompt ("Use the Explore subagent to ..."), and Claude typically delegates to it.
Where you see what ran
A subagent works out of sight, so it helps to know where to look:
- The transcript. A delegation shows as one tool call row: the subagent's name followed by a short task description, such as
Explore(Find every price in folder). - The panel below your prompt. Subagents that Claude starts from your main conversation run in the background by default, so you can keep typing. While one runs, it has a row in a panel under the prompt box.
/tasks. This command lists the background work of the current session, including subagents that have finished, for 30 seconds after they end. PressEnteron a subagent there to open its transcript and see what it read.
The steps
- Make the practice folder and start Claude Code in Manual mode, so you see every request before it runs.
- Ask Claude to create the studio files: a short CLAUDE.md, three class notes, a price list and a draft email. Then commit them.
- Ask a question that needs reading, and name the Explore subagent in it.
- Watch what ran: the tool call row in the transcript and the row under your prompt. Open
/tasksstraight after it finishes. - Compare the answer with the files and write down the one mistake it found.
Follow the steps for Claude Code below.
Example: what Ottoline gets back
Ottoline asks for every price in her folder in one short table. Explore reads the price list, the class notes and the draft email in its own context window. Her conversation gets only the table: six rows, one per price, with file and line. One row stands out. The draft email offers the glaze workshop for EUR 45, while the price list says EUR 55.
She did not have to read every file to find that. That is the job of a subagent: do the reading somewhere else and bring back only what matters.
Common mistakes
- Expecting Claude to delegate every time. In a small folder Claude may decide to read the files itself. That is fine. Naming the subagent in your prompt makes delegation likely, not certain.
- Missing the result. A background subagent reports when it is done. Its answer arrives later in the conversation, so wait for it before you ask the next question about it.
Deeper dive
Today's actions
Ticks are not saved without an accountDo it in Claude Code
Claude Code
- In your terminal, run these lines one at a time. The last line starts Claude Code in Manual mode, so it asks before every change. When Claude Code asks whether you trust the new folder, accept.
mkdir fenwick-studio cd fenwick-studio git init claude --permission-mode manual - Paste this setup prompt and press Enter. Read each file in the prompt and approve it, then approve the commit.
Set up this practice project for Fenwick Pottery Studio, a made-up pottery studio that sells evening classes. Create these files with exactly this content, and run no commands except the commit at the end. 1. CLAUDE.md: Fenwick Pottery Studio: a small pottery studio that sells evening classes. Prices in EUR, VAT included. prices.txt is the only source for prices. Class days and times are in classes/. Customers by first name only. Never store phone numbers or email addresses. 2. classes/wheel-throwing.md: Wheel throwing for beginners. Day: Tuesday, 19:00 to 21:30. Length: six evenings. Group: at most 8 people. 3. classes/hand-building.md: Hand-building. Day: Thursday, 19:00 to 21:30. Length: four evenings. Group: at most 10 people. 4. classes/glaze-workshop.md: Glaze workshop. Day: Saturday, 10:00 to 13:00. Length: one morning. Bring two fired pieces. 5. prices.txt, one line each: Wheel throwing for beginners (six evenings): EUR 240 Hand-building (four evenings): EUR 150 Glaze workshop (one morning): EUR 55 Gift card: from EUR 25 6. emails/reply-to-wieke.txt: Hi Wieke, Thanks for asking about our classes! Wheel throwing for beginners runs on Thursday evenings, six evenings in a row, for EUR 240. If you would rather try one morning first, the glaze workshop costs EUR 45 and you only need to bring two fired pieces. Warm regards, Ottoline 7. When all six files are written, commit everything with the message: Start the studio folder. - Paste this question and press Enter. If a prompt names the subagent and asks to run a command, choose Yes only if the command just lists or reads files.
Use the Explore subagent to find every price in this folder. Report one short table: file, line, what the price is for, amount. Then name any price that does not match prices.txt. - While it runs, look for the row under your prompt and the tool call row in the transcript, such as
Explore(Find every price in folder). - As soon as the answer arrives, type
/tasks, highlight the finished subagent and pressEnterto see what it read. Press Esc to close it. - Compare the table with prices.txt yourself and note the one price in the draft email that is wrong. Then type
/exit.
Note: The steps work the same in PowerShell, CMD and a macOS or Linux terminal. A finished subagent stays in /tasks for 30 seconds. If Claude answers without starting a subagent, ask again with the words Use the Explore subagent at the start; in a tiny folder Claude may still read the files itself.
Paid planNeeds a paid Claude plan (Pro, Max, Ultra, Team or Enterprise) or a Claude Console account. The free Claude plan does not include Claude Code.
Create a free account to save your progress
Free, and no payment details. Your ticks and finished lessons are kept, on every device.
Create a free account I already have an accountCreate a free account to save your progress. Sign in or sign up