Home » Guides » Claude Agents Explained: Code Agents vs Claude Subagents

Claude Agents Explained: Code Agents vs Claude Subagents

Claude Agents Explained: Code Agents vs Claude Subagents

Short answer

Claude Code agents and Claude app subagents run on the same underlying agent architecture. Claude Code exposes that architecture as a coding tool where you write and configure your own subagent files. The Claude app exposes the same architecture as a chat based assistant that decides on its own when to split a task and run pieces in parallel, or bundles ready made subagents inside an installed plugin.

I keep running into people who treat “agent” and “subagent” as two different products, then wonder why nothing they read about one applies to the other. It is a fair mix up. Anthropic ships the word “agent” all over both tools, and the marketing pages for each one describe similar sounding behavior: plan a task, break it into steps, work without hand holding.

Here is the part that actually matters for deciding which one you need: the confusion is not about two competing architectures. It is about two different configuration surfaces sitting on top of one shared agent architecture. Once you see it that way, picking the right tool for the job in front of you gets a lot faster.

What a Claude Code agent actually is

Claude Code is the agentic coding tool: terminal, IDE, desktop app, or the web, working directly against a codebase. When people say “Claude Code agents” they are usually talking about subagents, which Anthropic’s own documentation defines as specialized assistants that handle a specific kind of task in their own separate context window, then hand back a summary instead of flooding your main conversation.

The defining feature of a Claude Code subagent is that you configure it yourself. A subagent is a Markdown file with YAML frontmatter, saved to .claude/agents/ for a single project or ~/.claude/agents/ for every project on your machine. You set its name, its description so Claude knows when to delegate to it, which tools it can use, and which model runs it.

Claude Code also ships several built in subagents you do not have to configure: Explore for fast, read only codebase search, Plan for research during plan mode, and general-purpose for complex multi step work that needs both research and edits. A catch all named claude handles anything that does not match a more specific subagent.

A minimal custom subagent file looks like this. The names and fields below are the real, documented frontmatter keys, not a product spec for any one workflow:

---
name: report-summarizer
description: Summarizes long PDF reports and pulls out the key figures. Use when asked to summarize a report or document.
tools: Read, Grep
model: sonnet
---

You are a careful summarizer. Read the file, then return a short
summary with the key numbers called out.

Because you own that file, you control cost and behavior directly. Point a routine research subagent at Haiku to keep it cheap. Restrict a subagent’s tools so it can read but never edit. None of that is optional configuration in Claude Code. It is the whole point of defining one.

Person writing notes at a desk with a laptop open beside a notebook and coffee - a guide to Claude Code agents
Person writing notes at a desk with a laptop open beside a notebook and coffee.

What a Claude app subagent actually is

The Claude app uses that same agent architecture, with no terminal required. It lives in the same message box as regular chat, on desktop, web, mobile, and the Claude in Chrome side panel, and it is built for knowledge work rather than software: organizing files, drafting documents, synthesizing research, working through spreadsheets.

According to Anthropic’s own documentation, when you hand Claude a task it analyzes the request, creates a plan, breaks the work into subtasks when needed, runs code or shell commands in an isolated environment, coordinates multiple workstreams in parallel when appropriate, then delivers the finished output back to your session. Sub-agent coordination is listed as a named capability: Claude decides on its own when a task benefits from being split and run in parallel.

That is the key difference from Claude Code. In the Claude app, you are not hand authoring individual subagent files with your own frontmatter for a single task. Claude itself decides when to spin up parallel workstreams. The other way subagents show up in the Claude app is through plugins, which bundle skills, connectors, and subagents together into one installed package built for a role or workflow.

What stays the same, what changes
  • Same underlying agent architecture powers both tools.
  • Claude Code: you author individual subagent files by hand, with your own tool and model choices.
  • The Claude app: Claude decides when to split work into parallel subagents, or a plugin brings its own bundled subagents.
  • Neither tool requires you to think about the other’s configuration surface to use it well.
Flow diagram of the five steps the Claude app follows to run a task - a guide to Claude Code agents
Flow diagram of the five steps the Claude app follows to run a task.

The comparison, side by side

Here is the practical comparison I actually use when someone asks which one they need for a project.

QuestionClaude Code agentsClaude app subagents
Where it runsTerminal, IDE, desktop app, or web, against a codebaseSame message box as chat: desktop, web, mobile, Claude in Chrome
Built forSoftware development tasksKnowledge work: documents, research, files, spreadsheets
How a subagent gets definedYou write a Markdown file with YAML frontmatter in .claude/agents/ or ~/.claude/agents/Claude decides when to split a task, or a plugin brings its own bundled subagents
Model and tool controlYou set model, allowed tools, and permissions per subagent fileNot a documented per file configuration surface for the person running the task
Underlying architectureThe agent architecture Anthropic built for Claude CodeThe same agent architecture, reused, with no terminal required

Where each one fits in a real workflow

If your deliverable is code, tests, or a bug fix, you want Claude Code and its subagents. A code review subagent restricted to read only tools, an Explore subagent scoping a large repository before you touch it, a general-purpose subagent running a multi file refactor while your main conversation stays focused on the plan. That is the job the tool was built for.

If your deliverable is a document, a research summary, an organized folder, or a spreadsheet with working formulas, you want the Claude app. You describe the outcome, and Claude decides on its own whether the work benefits from breaking into subtasks and running pieces in parallel. You do not write a frontmatter file to get that behavior.

  • Coding tasks: implementing a feature, fixing a bug, running a test suite. Use Claude Code.
  • Knowledge work: drafting a report, synthesizing research, cleaning up a folder of files. Use the Claude app.
  • Repeatable engineering workflows: a subagent you reuse across projects, with tool and model choices you control. Configure it in Claude Code.
  • A one off complex task with no code involved: hand it to Claude and let it decide how to break the work up.

For a fuller side by side on pricing, surfaces, and day to day use, see our comparison of Claude and Claude Code.

Close up of hands writing in a notebook next to an open laptop - a guide to Claude Code agents
Close up of hands writing in a notebook next to an open laptop.

How to choose

The fastest filter is the one question that decides almost everything else: is the deliverable software code, or is it a document, summary, or organized set of files? If you’d rather see this in practice, here is honest comparisons from real client work. There’s a done-for-you option in the CoworkStrategy plan mode guide.

  1. Start with the deliverable, not the word “agent.” Code points to Claude Code. Documents and research point to the Claude app.
  2. If you are in Claude Code and keep repeating the same kind of side task, write a custom subagent file for it instead of re-explaining the task every session.
  3. If you are in the Claude app and the task is genuinely multi part, describe the full outcome and let Claude decide how to parallelize it, or install a plugin built for your role.
  4. If you want repeatable, typed shortcuts for either tool, pair this with a look at how Claude slash commands cut down on retyping the same instructions.

Tip

Do not port a Claude Code habit into the Claude app just because the word “subagent” shows up in both. In Code, you are the one writing the configuration. In the Claude app, your job is describing the outcome clearly enough that Claude can decide how to split the work well.

Decision diagram for choosing Claude Code or the Claude app - a guide to Claude Code agents
Decision diagram for choosing Claude Code or the Claude app.

Where the overlap actually is

The overlap is real, and it is worth naming plainly instead of manufacturing a bigger gap than exists. Both tools read CLAUDE.md for standing instructions. Both isolate a subagent’s work in its own context so it does not flood the main conversation. Both were built from the same agentic foundation, and Anthropic has said so directly: the agentic mode formerly called Cowork is Claude Code’s capability, given a simplified experience for people who are not developers.

What is not shared is the configuration surface. Claude Code hands you the frontmatter file and expects you to use it. The Claude app keeps that decision inside Claude’s own planning step, or hands it to you indirectly through the subagents a plugin bundles in. Neither approach is more “advanced.” They are built for different people doing different work.

Conclusion

Claude Code agents and Claude app subagents are not rival products competing for the same job. They are one agent architecture, surfaced twice: once as a configuration surface for developers who want to hand write tool and model choices into a Markdown file, and once as an automatic capability for people whose work is documents and research, not code. Match the tool to the deliverable and the “which one do I use” question mostly answers itself.

There is a real difference between reading an explanation of how agents work and actually handing one repeatable piece of your own work to a subagent, then reading what comes back. If you want structured, hands-on practice building that muscle instead of just reading about it, the free Learn Claude guides at Strategized.ai walk through it step by step.

When the repeatable work is specific to your business, the subagents, skills and standing instructions can be packaged into one Claude plugin, so everyone on your team runs the job the same way instead of rebuilding it from scratch. That is what custom Claude plugin development covers. If you would rather talk it through first, book a short call.

Frequently Asked Questions

What is the difference between a Claude Code agent and a Claude app subagent?

Both run on the same agent architecture. In Claude Code you write and configure subagent files yourself. In the Claude app, Claude decides when to split a task into parallel subagents, or a plugin brings its own.

Can the Claude app run subagents like Claude Code does?

Yes. Claude lists sub-agent coordination as a built in capability: Claude breaks complex work into subtasks and coordinates parallel workstreams automatically, without a per task configuration file.

Do Claude Code and the Claude app use the same underlying technology?

Yes. Anthropic describes Claude’s agentic work in the app as reusing the same agentic architecture that powers Claude Code, packaged as a simplified, no terminal experience for non-developer knowledge work.

Should I use Claude Code or the Claude app for non-coding work?

Use the Claude app. It is built for documents, research, and file based work, and it decides on its own how to parallelize a task instead of requiring a hand written subagent file.

Give Claude your business in twenty minutes

The free Foundation Plugin from Strategized.ai interviews you and writes the Business Blueprint every Claude conversation starts from. No account, no card.

Get the Foundation Plugin →

Free. Sent to your email.

Related reading: What Is Claude Dispatch?.

Michael Robichaud

Written by

Michael Robichaud

Founder of Strategized.ai and creator of the Claude AI Strategy Stack. Michael sets Claude up for client teams and runs his own five-site content operation on Claude, so what he writes here is tested in real work first.

 ·  Connect on LinkedIn →

Not Sure Where to Start?

Read It

Start with the free guides on this site, then the Learn Claude guides at Strategized.ai when you want the longer walkthroughs.

Learn Claude guides

Install It

The free Foundation Plugin teaches Claude the basics of your work in one download. No application, no card.

Get the free Foundation Plugin

Have It Set Up for You

For your business, Strategized.ai sets Claude up for the whole team. For yourself, CoworkConsultant.com builds your own setup or a custom plugin.

How we help businesses
Just you? See how we help

Two Ways to Get Claude Working for You

Do it yourself with the free guides and plugin, or have it set up for you. Either way you end up in the same place: a Claude workspace configured around the way you work.

Do It Yourself

The free Foundation Plugin, the guides on this site, and the Learn Claude library at Strategized.ai. No application, no card.

Get the free Foundation Plugin

Have It Set Up for You

For your business: Strategized.ai sets Claude up for the whole team, configured for every role, trained on their own work and handed over.

How we help businesses

For yourself: CoworkConsultant.com builds your own Claude setup, or a custom plugin around the job you repeat most.

How we help individuals
The Foundation Plugin: free for business owners and professionals Get it free → Instant download. No account.