Quick verdict: A Claude Code subagent is a second Claude instance that runs a task in its own separate context window and hands back only the result. It is configured with just two required fields, name and description, and a tools field you can lock down to something as narrow as Read, Grep, Glob for read-only work. Subagents run in the background by default in interactive sessions, which is what makes running three unrelated projects (a content pipeline, a SaaS product, and ops) from one session workable. The rule for a solo founder is narrow: delegate when a task is independent and would otherwise eat your main context, never for anything that needs your judgment mid-task. The main risk is that a subagent can look done without doing what you actually meant, because it only sees the prompt you gave it, not your wider intent.
We run three unrelated things from one desk: a content pipeline that publishes to this site, a small SaaS product, and the daily ops that keep both alive. No team and no handoffs. The thing that makes that survivable is not working faster. It’s not having to hold all three in one head, or one conversation, at the same time.
Claude Code subagents are the mechanism. This is not a feature tour. It’s an operator’s account of what they’re for, when we reach for one, and the specific ways they’ve burned us.
What is a subagent in Claude Code, exactly?
A subagent is a specialized Claude instance that handles a specific task. Each one runs in its own context window with its own system prompt, its own tool access, and its own permissions. When Claude hits a task that matches a subagent’s description, it delegates, the subagent works on its own, and it returns the result to your main conversation.
The point is context. When a side task would flood your main chat with search results, logs, or file contents you’ll never look at again, the subagent absorbs all of that in a separate window and passes back a summary. Your main conversation stays about the thing you’re actually deciding.
You configure one as a Markdown file with YAML frontmatter, either in .claude/agents/ for a single project or ~/.claude/agents/ for every project on your machine. Only two fields are required: name and description. The body of the file becomes the subagent’s system prompt.
Two knobs matter more than the rest for a solo setup:
tools: the tools the subagent may use. Omit it and the subagent inherits everything; list a few and you’ve boxed it in. A read-only researcher getsRead, Grep, Globand physically cannot edit a file.model:sonnet,opus,haiku,fable, a full model ID, orinherit. Leave it out and Claude Code falls back through a resolution order that usually lands on your main conversation’s model anyway. Routing a mechanical task to Haiku while your main session stays on a stronger model is a documented way to hold cost down.
One clarification worth making early, because the terms blur: subagents work within a single session. If you want many independent sessions running at once, that’s background agents. If you want sessions that talk to each other, that’s agent teams. For most solo work, the subagent is the first and often only tool you need.
How does one person run parallel projects with subagents?
The honest version: you don’t run them truly in parallel in your head. You run one main conversation about whatever needs your attention right now, and you push the self-contained work off to subagents so it doesn’t pull your focus.
Here’s the shape of a normal morning across our three projects.
The content pipeline needs an article’s sources re-verified. That’s a bounded, independent job: fetch pages, check prices and review counts, report what still holds. We hand it to a read-only subagent and keep working on something else. It comes back with a list. We never watch it grind through twenty fetches.
The SaaS product has a failing test. We stay inline for that one, because debugging needs our judgment at each step. But the “go read every file that imports this module and tell me which ones touch the auth flow” part gets delegated. That’s the search that would otherwise bury the conversation in file dumps.
Ops is the smallest and the most interruptible. A subagent drafting a first pass at something can run in the background and be there when we get to it. Claude runs subagents in the background by default in interactive sessions, so this is the normal case rather than a special flag.
The mental model that made this click: treat a subagent as a function call. You give it inputs, it returns outputs, and the less it needs to know about the rest of your day, the better it works.
When should you delegate to a subagent instead of doing it inline?
The decision rule we actually use, in one line: delegate when the task is independent and would otherwise flood your context with output you won’t reread; keep it inline when you need to steer it mid-task or you’ll have to read everything it produces anyway.
Two questions settle almost every case.
Will I need to see the work, or just the answer? If you only want the conclusion, like which files match or whether the prices still hold, delegate. If you need to watch the reasoning and correct course as it goes, stay inline. The context savings only exist when you genuinely don’t read the intermediate output.
Is the task self-contained? A subagent gets only its own system prompt and basic environment details like the working directory. It does not get your conversation. If the task depends on three things you and Claude worked out in the last hour, you either write all of that into the delegation prompt or you keep it inline. Half-specified delegation is where subagents go wrong.
Delegate to a subagent
- Independent research that dumps a lot of output (codebase search, source re-verification)
- Repetitive work you run constantly, worth saving as a reusable subagent file
- Mechanical tasks you can route to a cheaper model like Haiku
- Anything you want to run with tools locked down (read-only, no edits)
Keep it inline
- Debugging that needs your judgment at each step
- Tasks that depend heavily on the current conversation's context
- Small jobs where writing the delegation prompt costs more than just doing it
- Anything where you'll end up reading all the output anyway
If a task shows up daily, don’t re-brief it every time. Write it once as a subagent file with a clear description and let Claude delegate to it automatically. That’s the difference between using subagents and building an actual solo workflow around them. Our broader stack for this is in the best AI tools for developers.
What breaks when you rely on subagents?
Three failure modes, in the order they’ve cost us the most time.
A subagent can look done without doing what you meant. This is the big one. Because it only sees its prompt, a subagent will confidently complete the task as literally written and return a clean-looking result. If your prompt was vague, the result is vague work dressed as finished work. You find out later, when the “verified” sources include one you can’t actually confirm. The fix is unglamorous: treat the delegation prompt like a spec, not a chat message.
Context is not shared, and that surprises people every time. You spend twenty minutes with Claude nailing down exactly how a feature should behave, then delegate the implementation, and the subagent implements a generic version because it never saw that conversation. Nothing is wrong with the tool. You just forgot it starts blank.
Spinning up too many is its own drag. Every subagent you delegate is a round trip: writing the prompt, waiting for the result, checking it. For a genuinely small task, that overhead is larger than just doing the thing inline. The instinct to delegate everything once it works is the trap. Delegation has a fixed cost, and small tasks don’t clear it.
One safety valve worth knowing: if a subagent is going to modify files and you don’t want it touching your working tree, isolation: worktree runs it in a temporary git worktree with its own copy of the repo, cleaned up automatically if it makes no changes. Useful when you’re running something you don’t fully trust yet.
Worked example: re-checking software prices before a refresh
Here’s how we set up one delegation we use on this site, because the abstract version hides where the value is.
Software pricing goes stale fast. Email tools in particular rename plans, cut free tiers and move price points a few times a year, and a comparison article quoting last spring’s numbers is worse than no article. Before refreshing one, every price and plan limit in it has to be checked against the vendor’s own pricing page. By hand that means a dozen tabs and losing the thread of whatever else you were doing.
So it goes to a subagent with read and fetch tools only, no edit access. The prompt does three things:
- Lists the exact claims. For example: “MailerLite free plan: subscriber cap, monthly send limit, number of automations. Paid tier price at 1,000 and 5,000 subscribers, monthly billing.”
- Names the sources. The vendor’s pricing page and help docs, not review sites, which are often a year behind.
- States the rule. “Report each claim as confirmed, changed (with the new value and the URL), or unconfirmable. Do not guess. If a page shows yearly prices by default, say so.”
What you want back is a short table, one row per claim. That last instruction earns its place: pricing pages often default to yearly billing, and a subagent that doesn’t know to check will quietly report the discounted number as the monthly price.
The part that matters: you never read the fetches. You read the table, then decide what to change in the article. The judgment stays with you; the tab-opening doesn’t. If you’re building a content operation like this from scratch, the surrounding process is in how to start a blog.
Our Take
Subagents are the closest thing a solo founder has to delegation without a team, and after running them daily across three projects, we’d struggle to go back. But the mental shift is the actual product, not the feature. Once you stop treating a subagent as a helper and start treating it as a function you call with complete inputs, it becomes reliable. Until then, it will hand you plausible work that quietly missed the point.
Who should not build a workflow around this: anyone whose work is mostly one continuous thread of judgment. If you’re deep in a single hard problem all day, like one long design or debugging session, subagents add ceremony without saving context, because there’s no independent side work to offload. They pay off when you’re context-switching across unrelated things, which is exactly the solo-founder condition. If that’s not your day, skip it.
And a plain warning: don’t reach for subagents to feel productive. Spinning up five agents is not the same as five things getting done well. We’ve shipped worse work by over-delegating than by doing less. The tool rewards restraint.
FAQ
What is a subagent in Claude Code? A second Claude instance that runs a task in its own separate context window, with its own system prompt and tool access, and returns only the result. It keeps large side tasks out of your main conversation.
When should I delegate to a subagent instead of working inline? When the task is independent and would flood your context with output you won’t reread. Keep it inline when you need to steer it mid-task, or when you’ll read everything it produces anyway.
Do subagents see my main conversation? No. A subagent gets only its own system prompt plus basic environment details like the working directory, not your chat history. Whatever it needs, you write into the delegation prompt.
Can a subagent run on a cheaper model to save money?
Yes. The model field takes sonnet, opus, haiku, fable, a full model ID, or inherit. Routing mechanical work to Haiku while your main session stays stronger is a documented cost lever.
How is this different from background agents and agent teams? Subagents run within one session. Background agents are many separate sessions run in parallel. Agent teams are sessions that talk to each other. Solo, you’ll live in subagents most of the time.