Skip to content
Claude Certified Developer – Foundations (CCDV-F) Exam Prep

Lesson 13 of 25 · 7 min

x
13/25

Agent Architecture

Video lesson: CCDV-F 13/25: Agent Architecture (Domain 1, 4.5%)

Official scope (Exam Guide v1.0): workflow vs agent decision criteria, manager/supervisor hierarchies, and the role of subagents.

Definitions (verified: Anthropic, "Building effective agents")

  • Workflow: LLMs and tools orchestrated through predefined code paths.
  • Agent: the LLM dynamically directs its own process and tool use, in a loop with feedback from the environment.
  • Both are "agentic systems". A workflow is not "non-AI"; it just keeps control of the sequence in code.

The agent loop

Plan → act with a tool → observe the real result (ground truth from the environment) → decide → repeat. Every loop needs stop conditions: max steps or turns, a budget, a success check, a time limit, a human checkpoint. The Agent SDK exposes max_turns and a spend cap; hitting them ends with an error subtype you can resume from.

Prefer the simplest thing that works (verified principle)

Single well-prompted call → add retrieval and examples → workflow → agent. Agents trade latency and cost for flexibility; add them only when the steps cannot be known in advance.

WorkflowAgent
PredictabilityHighLower
Cost and latencyLower, boundedHigher, variable
DebuggabilityEasy (fixed path)Harder (trace each run)
FlexibilityLowHigh
RiskContainedNeeds sandbox, limits, approvals

Hybrid (design guidance): a workflow for the fixed spine with an agent inside the one step that needs freedom is often the best fit.

Three principles

Simplicity; transparency (show the planning steps); a carefully designed agent-computer interface (tools and their documentation).

Manager/supervisor hierarchies (verified mechanics, design guidance on use)

  • A supervisor (orchestrator) decides subtasks at run time, delegates to workers, and combines results. It owns the final answer.
  • Subagents (verified, Agent SDK): each starts with a fresh context; the only parent-to-child content is the delegation prompt (plus project CLAUDE.md); only the subagent's final message returns. Each can have its own tools, model, effort and maxTurns.
  • Benefits: context isolation, narrower tool sets, cheaper models for simple work, parallelism.
  • Failure modes (design guidance): supervisor bottleneck, over-delegating simple tasks, vague handoffs ("as discussed above"), cost growth with depth.

Human checkpoints and safety by architecture (design guidance)

Gate irreversible actions with human approval; sandbox execution; least privilege; permission checks outside the model.

Exam traps

  • "A workflow does not use an LLM."
  • Jumping to multi-agent for a simple Q&A feature.
  • No stop condition on an agent loop.
  • Assuming a subagent sees the parent conversation.

References

  1. Building effective agents — checked Oct 16, 2026
  2. Agent SDK overview — checked Oct 16, 2026
  3. Subagents in the SDK — checked Oct 16, 2026

Check your understanding

  • Same four steps in code, model used in step two. Workflow or agent?Show answer

    Answer

    Workflow.
  • Coding task where the files to change are unknown until explored. Fit?Show answer

    Answer

    Agent, with stop conditions and a sandbox.
  • A subagent "forgets" a decision made earlier in the parent chat. Fix?Show answer

    Answer

    Put the decision and needed facts in the delegation prompt.
  • Who owns the final answer in a supervisor hierarchy?Show answer

    Answer

    The supervisor.
Previous

Progress is saved in this browser.

Next Lesson