By Nate Herk · AI Automation · Full comparison: Skills vs Sub-agents vs Agent Teams vs /goal
Claude Opus 4.8 feature. Claude writes a JavaScript script that orchestrates hundreds of agents working in parallel. Results are merged and sent back to the main Claude session.
A reusable recipe. "How do I do this task?"
A parallel execution engine. "How many agents do I spin up?"
done == trueA JavaScript file saved to .claude/workflows/. You can:
/workflows commandAs you move up: more complexity, more functionality, but also more cost and more risk.
| Feature | Agents | Inter-Agent Talk | Context | Best For | Cost |
|---|---|---|---|---|---|
| Direct Ask | 1 | — | Full session | Quick Q&A | |
| Skill | 1 | — | Session + skill | Repeatable recipes | |
| Sub-agent | 1+ | ❌ No | Isolated | Side tasks | |
| Agent Team | 2-5 | ✅ Yes | Own + shared | Debates, councils | |
| /goal | 1 (+ subs) | Via subs | Session | Iterative until done | |
| Dynamic Workflow | 1 to 100+ | ❌ No | Own each | Batch parallel jobs |
done == true| Driver | Why It Costs | Mitigation |
|---|---|---|
| Number of agents | Each agent = 1 full Claude API call | Only use workflow when truly parallelizable |
| Context size per agent | Each agent reads its own context window | Minimize shared context; keep agent prompts lean |
| Model tier | Opus >> Sonnet >> Haiku in cost | Use Haiku for workers, Opus only for synthesis |
| Duration | Agents run concurrently but time still adds up | Bound scope tightly, name deliverables explicitly |
| Input >> Output | Most tokens are input (context reads) | Output-heavy is more expensive per token |
/workflows to see and stop running ones| Model | Relative Cost | Use Case in Workflow |
|---|---|---|
| Haiku | $ | Worker agents (scoring, analysis) |
| Sonnet | $$ | Intermediate synthesis |
| Opus | $$$ | Final synthesis, high-reasoning tasks |
| Ultra Code | MAX | Every prompt = workflow (very expensive!) |
/deep research)Slash deep research is a built-in workflow that:
/deep first to see how the built-in workflow works.Nate's actual workflow invocation prompt:
"Run a workflow that audits all of my Claude Code skills in two places: my user-level global skills and this project skills. Grade each on: Clarity, Front matter pass-fail, Trigger quality, and give me the single highest value fix. One final agent ranks every skill worst to best..."
~/.claude/workflows/ by default. Specify your project path explicitly if you want project-level storage.Nate's skill audit output was an HTML file containing:
/workflows → select the saved workflow → "run again". No need to rebuild the prompt.Ask yourself:
"Does this break into many pieces that can run individually of each other at the same time?"
If YES → Dynamic Workflow is appropriate
If NO → Consider /goal, skill, or sub-agent
/workflows to browse history and stop running onesAdvanced users can nest these:
Claude Code feature (Opus 4.8+). Claude writes a JavaScript script that orchestrates many agents in parallel, merging results at the end. Width-first, not loop-based.
A reusable recipe for a task. Can be run by main session, sub-agents, agent teams, or workflows. Defines the "how."
A parallel agent isolated from the main session context. Cannot talk to other sub-agents — only reports back to main session.
A small crew of agents that can talk to each other, share a task list, and have individual roles/tools. Good for debates, councils, collaborative problem-solving.
A Claude Code command that loops until done==true. Depth-first, iterative. Can run 24+ hours. Can spin up sub-agents. Good for: keep refining until criteria met.
Built-in workflow that spins up parallel research agents, has them vote on claims, and outputs a cited deep research report.
Highest intelligence mode. Uses X-high reasoning + defaults every prompt to a workflow. Most expensive mode. Bypasses many permission checks.
JavaScript file generated by Claude when a workflow runs. Saved to .claude/workflows/. Can be reviewed, reused, and re-run later.
Each agent (sub-agent or workflow worker) has its own isolated context window. This is why input tokens multiply — every agent re-reads shared data.
The final agent in a workflow that collects all parallel agent results and produces the unified output. Often Opus-tier for complex synthesis.
Width-first = many agents in parallel, results merged at end (workflow). Depth-first = one agent looping until done=true (/goal).
Each agent in a workflow = 1 full Claude API call with its own context. 100 agents = 100x the context reads = massive input token accumulation.