← Browse by Chapter
Get the Book →
#47Chapter 08 — Subagents: Isolation and Delegation
Use a subagent to read `logs/incident.log`. Do not load the file into this conversation. The agent returns: the five most frequent error patterns with a count each, the first and last timestamp of each pattern, and every line that mentions `BillingService` or `auth`, quoted exactly with its line number. Under 300 words, excluding the quoted lines.

Mastering Claude Code
These prompts are excerpts from the book. Get the full collection with explanations and use cases.