Practice — Claude Code Workflows and Agent Teams (12 questions)
Choosing an Orchestration Primitive for Four Scenarios Permalink →
For each scenario below, name the orchestration primitive you'd reach for — a plain subagent, a dynamic workflow, an agent team, or "none of these, just work in the conversation directly" — and justify the choice in terms of who needs to hold the plan, whether workers need to talk to each other, and how large the task is.
- "Read through this 4,000-line log file and tell me which requests returned a 500."
- "Every one of our ~300 React components under
src/components/still imports from the oldlegacy-uipackage. Migrate each one to the newui-kitpackage, working file by file, and verify each migration compiles." - "We keep getting intermittent test failures in CI and nobody can reproduce them locally. I want several different theories chased down at once — flaky timing, shared test state, a real race condition in the code — with whoever's investigating actively trying to shoot down the others' theories."
- "Rename the
fetchUserfunction togetUserByIdand update its one call site insrc/api/users.ts."
Share this question
Tracing Resume Cost Through a Stopped Fan-Out Permalink →
A saved workflow migrates database access code file by file. Its
script fans out with pipeline() over eight files, starting one agent
per file in this order as soon as each previous agent's request has
been dispatched: orders.ts, users.ts, products.ts, reviews.ts,
payments.ts, shipping.ts, inventory.ts, refunds.ts.
By the time you stop the run, orders.ts, users.ts, and
products.ts have all finished successfully. reviews.ts is still
running. payments.ts, shipping.ts, and inventory.ts have also
already finished (they were faster, smaller files). refunds.ts
hadn't started yet.
- When you resume this run, which agents return cached results without rerunning, and which agents rerun? Name each file explicitly and explain the rule that determines the outcome for each one.
- A teammate on your team argues this is a bug: "
payments.ts,shipping.ts, andinventory.tsalready finished — rerunning them wastes money for no reason." Explain why this is how resume is designed to work, not a bug, referencing what the alternative would have to guarantee to avoid it. - Propose a concrete change to how this specific workflow is written that would reduce the cost of a future stop-and-resume, without changing what the workflow ultimately accomplishes.
Share this question
What Workflow Agents Can Do Without Asking, and Preparing an Allowlist
Unlock this question →Decomposing 15 Tasks Across 3 Teammates Without File Conflicts
Unlock this question →Converting a Folder of Subagent Prompts into a Saved, Distributed Workflow
Unlock this question →Turning a Vague Feature Idea Into a Spec Before Coding Permalink →
You want Claude Code to interview you about a large new feature — asking about implementation, UI/UX, edge cases, and tradeoffs — before anything gets built.
What should the resulting workflow look like, per this subject?
Share this question
What Your Permission Mode Actually Controls for a Workflow Permalink →
You're running a Claude Code session in Manual permission mode and launch a dynamic workflow that spawns 20 subagents to edit files across the repo.
What mode do those spawned subagents' file edits actually run under?
Share this question
Which Agents Rerun When You Resume a Stopped Workflow Permalink →
A workflow fans out four agents via pipeline(), starting them in
order: A, B, C, D. You stop the run while B is still in progress — A,
C, and D had all already finished by that point.
On resume, which agents actually rerun?
Share this question
Turning On Agent Teams Permalink →
You ask Claude Code to spawn several teammates to debate competing hypotheses about a bug. No team forms — Claude just runs ordinary subagents instead.
What's the most likely reason?
Share this question