Single logo
  • Courses
  • Blog
  • About
Join on SkoolJoin on Skool

In this topic

Claude
  • Claude.ai Interface Tour: Every Control You Need on One Screen
  • The AI Fluency Model: Delegation, Description, Discernment and Diligence
  • Working With Claude: Pick the Surface, Match the Model, Keep the Context Clear
  • Claude's Four Entry Points: Choose Chat, Projects, Artifacts or Research Before You Type
  • What Claude Can Do: Extended Thinking, Web Search, Artifacts and File Analysis
  • Getting More From a Claude Chat: Steer the Conversation Instead of Starting Over
  • Claude Research Mode End to End: From One Prompt to a Cited Briefing
  • Claude's Capability Layer: When to Use Skills, Code Execution or Memory
  • Code Execution and File Creation in Claude: Calculated Numbers and a Real Excel File
  • Adding and Using Skills in Claude: Let Claude Pick the Skill, Then Teach It Your Format
  • Claude Memory, Curation and Incognito: Keep What Helps, Remove What Has Gone Stale
  • Claude Styles, Preferences and Project Instructions: Three Dials, Three Scopes
  • Claude Projects: Knowledge, Instructions and a Real Workspace You Set Up Once
  • Keeping a Claude Project Current and Connected: Refresh, Prune and Grant the Least
  • Claude Scheduled Tasks: Let Claude Work on a Schedule and Email You the Result
  • Claude Code and Claude for Chrome: What They Are and Who They Are For
  • Anatomy of a Good Prompt: Role, Context, Task, Format and Examples
  • Shaping Claude's Output: Format, Tone and Length in a Few Words
  • Iterating and Refining a Prompt: Read, Diagnose, Adjust, Repeat
  • Five Prompting Patterns for Work: Summarise, Extract, Rewrite, Classify and Draft
  • Why Evaluating AI Output Matters Most: Trust, Then Verify
  • Spotting AI Hallucinations and Fabrications: Four Tells and Where Risk Spikes
  • Fact-Checking Claude's Answers: Four Techniques and a Line-by-Line Claim Log
  • Judging AI Output Quality: Four Questions That Score Any Answer
  • Adapting AI Output for Your Audience: One Answer, Three Readers
  • When a Human Must Review AI Output Before It Ships
  • A Personal Validation Checklist for AI Output: Six Lines, Any Draft
  • Fitting Claude Into Real Work: Where It Helps and Where It Never Should
  • Breaking Big Tasks Into Steps With Claude: Small Asks, Checked Hand-offs
  • Designing a Repeatable Claude Workflow: A Reusable Weekly Report Template
  • Measuring If Claude Is Actually Working: One Number, Before and After
  • Communicating AI Value and Limitations to Stakeholders: The Honest Pitch
  • Data Privacy With Claude: What Never Goes in a Prompt, and How to Redact a Document Before You Paste It
  • Responsible AI Use and Transparency: Helpful, Honest, Harmless, and One Honest Line
  • Troubleshooting a Weak Claude Answer: Name the Cause, Fix One Thing, Then Make It Cheaper
  • CLAUDE.md, settings.json and Plugins: Which Claude Code File Advises, Which Enforces, Which Packages
  • Authoring a Claude Skill: SKILL.md, Frontmatter, Progressive Disclosure and the Description That Triggers It
  • One Change, Four Environments: Where a Claude Config Edit Lands in Dev, Staging, Prod and CI
  • Claude in the SDLC: Prompts in Git, a Change Gate by Path, a Claude Review That Advises and a Person Who Merges
  • Hooks That Block Destructive Actions: a PreToolUse Gate That Allows, Asks or Denies
  • Choosing a Claude Code Extension: Skill, Hook, Rules File, Subagent, Slash Command or Plugin
  • Rolling Out Claude Code to a Team: Settings Precedence, dontAsk in CI, a Hook for Every-Time Rules and a Plugin for Five Repos
  • A Claude Code Review Bot in CI: Headless -p, JSON Findings, Team Rules in Git and a Person on the Merge
  • Lab: Three Planted Bugs in a Claude Code CI Repo, a Permission Mode, a Plugin Path and an MCP Token Variable
  • Configuring MCP Servers in Claude Code: A Command or a URL, Three Scopes, and Three Moves When One Breaks
  • Claude Code's Built-in Tools: Read, Write, Edit, Bash, Grep and Glob, and When Each One Is the Right Pick
  • The CLAUDE.md Hierarchy: User, Project and Directory Files, How They Stack, and the Team Rule Stuck on One Laptop
  • Split a 600-Line CLAUDE.md: @import Lines, .claude/rules Files and Which One to Pick
  • Path-Specific Rules in Claude Code: paths Globs, When a Rule Loads and the Glob That Matches Nothing
  • Claude Code Slash Commands and Skills: Project vs User Scope, $ARGUMENTS, context: fork and allowed-tools
  • Iterative Refinement with Claude Code: Input/Output Examples, Tests First and the Interview Pattern
  • Claude Code Sessions: Resume by Name, Fork From a Baseline, or Start Fresh With a Summary Card
  • CI Reviews That Don't Repeat Themselves: Prior Findings, Existing Tests and Test Standards in CLAUDE.md
  • The Claude Messages API: Your First Call, Field by Field
  • Claude Tool Use: How tool_use and tool_result Work in the Messages API
  • Claude Client SDKs Wrap One REST API: Raw HTTP, Python, TypeScript and Async Calls Compared
  • Anthropic SDK Timeouts, Retries and Error Classes: Configure the Client Once, Then Give 429, 529, 400 and Timeouts Their Own Move
  • Claude Streaming Events: The Event Order, message_stop, Tool Arguments, Stop Reasons and a WebSocket Relay
  • Images, PDFs and Thinking Blocks in the Claude Messages API: Typed Blocks In, Typed Blocks Out
  • Getting Data Into Claude: PDF Documents, the Files API, Search Results and Citations
  • Opus, Sonnet or Haiku: Pick the Claude Model per Job, and Test the Request When a New Release Arrives
  • Adaptive Thinking and Effort in Claude: Two Dials, Set per Workload, and the Thinking Block You Must Pass Back
  • Claude Cost Tracking From usage: Count Before, Cap During, Read After, Then Find the Line That Drives the Bill
  • Claude Cache Breakpoints: Where to Put cache_control, How to Move It With the Chat, and Why the Reads Stay at Zero
  • Claude Message Batches or Real Time: Choose by Who Is Waiting, Match by custom_id, Resend Only the Failures
  • Calling Claude Through Amazon Bedrock, Google Cloud and Microsoft Foundry: Same Call, Different Door
  • The Life Cycle of a Claude App: Six Phases, a Model That Retires, and a Release Gate for Every Change
  • Pinning Claude Model IDs and Upgrading Safely: One Change at a Time, a Golden-Set Replay and a Staged Rollout
  • Content Boundaries and Schema Design for Claude: Fence the Input in a Tag, Let the Output Say I Don't Know
  • The Agentic Loop and stop_reason: Keep Turning on tool_use, Stop on end_turn, Cap the Turns
  • The Claude Agent SDK: query(), ClaudeAgentOptions and @tool, in Python and TypeScript
  • Fix the Agent: Four Broken Claude Agent SDK Configs, From the Symptom to the One Wrong Line
  • Claude Managed Agents: Cloud Sandbox, Self-Hosted Sandbox or Self-Hosted Service
  • Agent SDK Hooks for Deterministic Actions: PreToolUse, PostToolUse, and Four Hooks That Fail Silently
  • Memory and Context-Window Patterns for Claude Agents: Context Editing, Compaction and the Memory Tool
  • Reading an Agent Trace: Five Signatures, Five Missing Patterns, and How Long a Fact Must Live
  • Tool Descriptions for Claude: How Claude Picks a Tool, and How to Stop It Picking the Wrong One
  • Tool Input Schemas and Error Responses for Claude: Required Fields, Enums, is_error and a Retry Flag
  • Tool Response Shaping and a Lean Tool Set: Give Claude a Sticky Note, Not the Filing Cabinet
  • Fix the Tool Schema: Read the Trace, Fix the Card, Re-Run (Four Real Schema Bugs)
  • Client Tools, Server Tools and Approval Gates: Who Runs the Tool, and Who Says Yes First
  • Built-in Tool, Custom Tool, Skill or MCP Server? Pick the Lightest One That Fits
  • System Prompt or User Turn: Where Each Instruction Goes, and Output Limits Your Code Enforces
  • Refine the Prompt One Line at a Time, Then Clean and Fence the Customer's Text
  • Prompt Revision Driven by Evals: Name the Cause, Change One Thing, Rerun the Whole Suite
  • Long-Running Sessions: Compact, Prune, Isolate or Start Fresh, Decided by Naming the Failure
  • Context Isolation Through Subagents: Read the Logs Elsewhere, Keep One Line
  • Defensive Parsing of Claude Replies: Check the Stop Reason, Read the Block or the Text, Then Validate the Values
  • Full Context or Retrieval: Choose by Corpus Size, Cost and Freshness
  • Skepticism Toward Confident Output: Check the Quote, the Record and the Sum Before You Send
  • Debugging a Claude App: Three Error Types, the Recovery Each One Earns, and the First Failing Row
  • Six Ways a 200 Can Still Be Wrong: Hallucination, Refusal, Under-Acting, Context Loss, Format Drift and Inconsistency
  • Fix the Cause, Not the Symptom: Four Recovery Drills for an LLM App, Each Checked on a New Input
  • Integration Layer or Model Output? Three Taps and Three Questions to Find Where a Wrong Answer Lives
  • Which Test Layer Owns the Failure? Unit, Functional, Integration and End-to-End Tests for a Claude App
  • Designing an Overnight Document Pipeline on Claude: Batch Lane, Live Lane, a Cached Prefix and a custom_id Reconcile
  • Proving a Model Upgrade Is Ready: A Frozen Golden Set, a Calibrated Judge, the Right Layer and a Release Gate
  • From Requirement to Design for a Claude App: Eight Requirements, Five Elements and a Trace With No Gaps
  • Build a Claude Refund App: the Messages API, Two Tools, an MCP Server and a Hook in One Loop
  • Ship a Claude App: an Eval Gate, Two Guardrail Layers, a Cost Check From usage and a Pinned Model
  • Lab: a 30-Case Golden Set, a Calibrated Judge and a Per-Slice CI Gate on a Claude Refund App
  • Lab: Cut a Claude App's Bill by 62 Percent With Usage Data, Layered Cache Breakpoints and a Batch Job
  • Lab: Three Planted Bugs in a Claude App, a Vague Prompt, a Mistyped Tool Schema and a Broken Stream Handler
  • Lab: Three Planted Bugs in a Claude Code CI Repo, a Permission Mode, a Plugin Path and an MCP Token Variable
  • Lab: Harden a Claude App, an Uncalibrated Judge, a Retry Loop That Retries Everything and a Hook Matcher With a Gap
  • Lab: Turn a Claude App Into a Reusable Template, One Pinned Model Id, No Key in Code and Evals Built From Data
  • Building an MCP Server: Tools, Resources and Prompts in Python and TypeScript
  • MCP Transports: stdio or Streamable HTTP, and Who Starts the Server
  • Deploying and Authenticating an MCP Server: Environment Keys for stdio, Bearer Tokens and Scopes for HTTP
  • Validation-Retry Loops for Claude Extraction: Send Back the Exact Errors, and Stop When a Retry Cannot Help
  • Multi-Pass and Multi-Instance Code Review with Claude: A Fresh Reviewer, Per-File Passes and an Integration Pass
  • When a Claude Support Agent Should Escalate: Three Clear Triggers, Not Mood or a Confidence Score
  • Error Propagation Across Subagents: Retry Locally, Then Report the Failure, the Attempts and What You Found
  • Human Review and Confidence Calibration: Check Accuracy by Type and Field Before You Stop Looking
  • Provenance in Multi-Source Research: Keep Every Claim With Its Source and Date, and Show Conflicts Instead of Settling Them
  • Lab: An Extraction Pipeline With a Nullable Schema, Validation-Retry, a 100-Request Batch and Human Review
  • Lab: A Research Pipeline With Parallel Subagents, a Timeout That Keeps Its Partial Results, and a Report With Its Trail
  • Coordinator and Subagents: Decompose, Delegate, Check Coverage, and Call Only the Spokes You Need
  • Passing Context to Subagents: Nothing Is Inherited, So Put Findings, Goal and Criteria in the Prompt
  • Parallel Subagents: Several Task Calls in One Response, Every Result Back in One User Turn
  • Task Decomposition: a Fixed Prompt Chain With an Integration Pass, or a Dynamic Plan That Adapts
  • Prompt Guidance vs Programmatic Gates: Block the Refund Until the Customer Is Verified, Then Hand Off a Card That Stands Alone
  • Scoped Tools per Agent and tool_choice: Three to Five Tools per Role, a Shared One, and auto, any or a Forced Tool
  1. Blog
  2. /
  3. Claude
  4. /
  5. Building with the Claude API

Lab: A Research Pipeline With Parallel Subagents, a Timeout That Keeps Its Partial Results, and a Report With Its Trail

One coordinator turn, three Task calls, one round. The trips and shops subagents bring back sourced findings, the safety subagent times out on crash reports and keeps one partial finding, and the report shows 18% and 11% side by side instead of an average of 14.5%.

Chaand Sheikh

·27 November 2026Building with the Claude API

What you will learn

  • Have the coordinator issue all three subagent calls in one response and answer them in one user turn
  • Match each tool_result to its call by id and mark the failed one with is_error
  • Return a structured timeout error that keeps the partial results and names the attempted query
  • Build a report that sorts claims into contested, established and single source, with a coverage gap line

Before you start

  • Error propagation across subagents
  • Provenance: claims, sources and conflicts
  • Claude tool use with the Anthropic Python SDK

This lab puts two ideas together in one small pipeline. The question is: Did the protected bike lanes change local trips? A coordinator sends three subagents to find out. They run side by side, every finding keeps its source, one search times out, and two sources disagree.

The two ideas have their own articles: error propagation across subagents (what a failing subagent should report) and provenance: claims, sources and conflicts (how a claim keeps its source). This one is about wiring them into a real coordinator turn.

The project uses the real Anthropic Python SDK pointed at a stand-in model built on httpx.MockTransport, so it runs with no API key. Its replies start with "test model reply", and the sources are made-up sample data.

A report nobody can check

Here's a draft report built the careless way:

  • "Most riders feel safe." Whose survey? No source is attached.
  • Crash data: blank. That search timed out, and nobody was told. The report just goes quiet.
  • "Weekday trips rose 14.5%." The sources said 18% and 11%. Someone averaged them, and the trail is gone.

Think of a newsroom. The editor sends three reporters at the same time, not one after another. When they come back, every fact on the page has a name beside it. One reporter's phone died, so the page says not reached: the safety desk. Two reporters brought back different counts, so the page prints both. That's the report we're building.

Spawn together, bring results back together

Three Task calls in one response, three results in one user turn coordinator: 1 response 3 Task tool_use blocks trips web_search 2 findings safety web_search timeout, 1 partial shops doc_analysis 2 findings running side by side 1 user turn: 3 tool_result blocks matched by tool_use_id, is_error true on safety report with its trail
One round, not three: the calls leave together and the results come back together.

The coordinator has three subagents: two search the web, one reads documents. Each one sees only its own prompt, so the prompt has to carry the question. This is the same hub-and-spoke shape as in multi-agent hub and spoke, here with the Anthropic SDK and a tool call per spoke. The pattern of several subagent calls in one response is covered on its own in parallel subagents: Task calls in one response.

A note on names. The project's code calls the subagent tool Task, as older versions and the exam guide do; current Claude docs call this tool Agent. In the Agent SDK, the coordinator's allowed tools must include it, or it can't spawn anyone.

The Task tool and what each prompt carries

From research/stand_in.py, the tool definition the coordinator sends:

TOOLS = [{"name": "Task", "description": "Hand one piece of research to a subagent.",
          "input_schema": {"type": "object",
                           "properties": {"description": {"type": "string"},
                                          "prompt": {"type": "string"},
                                          "subagent_type": {"type": "string"}},
                           "required": ["description", "prompt", "subagent_type"]}}]

QUESTION = "Did the protected bike lanes change local trips?"
PLAN = [("trips", "web_search", "Find weekday trip counts"),
        ("safety", "web_search", "Find rider safety evidence"),
        ("shops", "doc_analysis", "Read the shop sales documents")]

On the first call the stand-in answers with one text block and three tool_use blocks, the way Claude would. Each prompt names the topic, repeats the question and lists the fields to return:

        for i, (topic, agent, what) in enumerate(PLAN, 1):
            prompt = (f"{topic}: {what}. Question: {QUESTION} "
                      "Return claim, value, evidence, source, url and published for each finding.")
            blocks.append({"type": "tool_use", "id": f"toolu_test_{i}", "name": "Task",
                           "input": {"description": what, "prompt": prompt, "subagent_type": agent}})

Nothing is inherited. If the question isn't in the prompt, the subagent doesn't know it. For why that isolation is useful, see context isolation through subagents.

sources.json: content apart from metadata

The subagents search this sample data. One finding has two blocks:

{
  "content": {
    "key": "weekday_trips",
    "claim": "Weekday bike trips after the lanes opened",
    "value": "up 18%",
    "evidence": "Counters on Main St logged 18 percent more weekday trips."
  },
  "meta": {
    "source": "City Cycling Report",
    "url": "https://example.org/city-cycling",
    "published": "12 Mar"
  }
}

content says what the finding says: the claim, the value and a short excerpt as evidence. meta says where it came from: source, url and publication date. Keeping them apart means a step that rewrites the content never touches the source. In the safety topic, the second query, "crash reports near the lanes", is marked "timeout": true, so it never answers.

pipeline.py: the coordinator turn

"""The coordinator: three Task calls in one response, run side by side, one report with sources."""
import json
from concurrent.futures import ThreadPoolExecutor
from research.stand_in import make_client, TOOLS, QUESTION
from research.subagents import run_subagent
from research.provenance import build_report, render

client = make_client()
messages = [{"role": "user", "content": QUESTION}]
response = client.messages.create(
    model="claude-sonnet-5-5", max_tokens=1024,
    tools=TOOLS, messages=messages)
calls = [b for b in response.content if b.type == "tool_use"]
print(f"1 response -> {len(calls)} Task calls: 1 round, not {len(calls)}")


def research(call):
    return run_subagent(call.input["prompt"])


with ThreadPoolExecutor() as pool:
    results = list(pool.map(research, calls))

blocks, findings, gaps = [], [], []
for call, result in zip(calls, results):
    blocks.append({"type": "tool_result", "tool_use_id": call.id,
                   "content": json.dumps(result),
                   "is_error": result["isError"]})
    if result["isError"]:
        findings += result["partialResults"]
        gaps.append(result)
        print(f"  {call.id}  {result['topic']}: ERROR "
              f"{result['failureType']}, "
              f"{len(result['partialResults'])} partial")
    else:
        findings += result["findings"]
        print(f"  {call.id}  {result['topic']}: "
              f"{len(result['findings'])} findings")

messages.append({"role": "assistant", "content": response.content})
messages.append({"role": "user", "content": blocks})
final = client.messages.create(
    model="claude-sonnet-5-5", max_tokens=1024,
    tools=TOOLS, messages=messages)
print(final.content[0].text)
print(render(build_report(findings, gaps)))

What this file adds:

  • One create call, many blocks. All the tool_use blocks are collected from that single response. Three of them.
  • Side by side. A ThreadPoolExecutor runs the three subagents at once. Each gets only call.input["prompt"].
  • One result per call, matched by id. Every tool_result carries the tool_use_id of its call, and is_error marks the one that failed.
  • One user turn back. The assistant turn and a single user turn holding all three results go into messages. Three results, one round.
  • Partial results aren't thrown away. A failed result adds its partialResults to the findings and goes into gaps.

subagents.py: a timeout that explains itself

def attempt(topic):
    found = []
    for row in DATA[topic]["queries"]:
        try:
            found += search(row)
        except SearchTimeout as err:
            return {"isError": True, "errorCategory": "transient",
                    "isRetryable": True, "failureType": "timeout",
                    "attemptedQuery": err.query, "partialResults": found}
    return {"isError": False, "topic": topic, "findings": found}


def run_subagent(prompt, tries=2):
    topic = prompt.split(":")[0]
    for n in range(1, tries + 1):
        result = attempt(topic)
        if not result["isError"]:
            return result
    result["topic"] = topic
    result["attempts"] = tries
    return result

Follow the safety subagent. It has two queries. The first, "rider safety ratings", returns one finding. The second, "crash reports near the lanes", times out. attempt doesn't raise; it returns a structured error: category transient, isRetryable true, failureType timeout, the attemptedQuery that died, and the one finding it already had in partialResults.

run_subagent tries the whole run twice, right where the problem happened. The timeout comes back again, so the error goes up with attempts set to 2. The coordinator doesn't fail; it carries on with what it has and records the gap. The fields errorCategory and isRetryable are the same idea as in tool input schemas and error responses.

provenance.py: the trail

def classify(items):
    if len({f["content"]["value"] for f in items}) > 1:
        return "contested"
    return "established" if len(items) > 1 else "single source"


def build_report(findings, gaps):
    groups = defaultdict(list)
    for f in findings:
        groups[f["content"]["key"]].append(f)
    report = {"contested": [], "established": [],
              "single source": [], "gaps": gaps}
    for items in groups.values():
        sources = [(f["content"]["value"], f["meta"]["source"],
                    f["meta"]["published"]) for f in items]
        report[classify(items)].append(
            {"claim": items[0]["content"]["claim"], "sources": sources})
    return report


def render(report):
    out = []
    for kind in ("contested", "established", "single source"):
        for entry in report[kind]:
            out.append(f"{kind.upper()}: {entry['claim']}")
            for value, source, when in entry["sources"]:
                out.append(f"  {value:14} <- {source}, {when}")
    for gap in report["gaps"]:
        out.append(f"COVERAGE GAP: {gap['topic']} timed out on "
                   f"\"{gap['attemptedQuery']}\", tried {gap['attempts']}, "
                   "partial results kept")
    return "\n".join(out)

Compared with the standalone provenance example, the lab adds a third bucket. Values that differ are contested. Two or more sources with the same value are established. One source alone is single source: not wrong, just not confirmed. Every value stays attached to its source and date, and every gap gets its own line.

Run it

Running python pipeline.py (after pip install anthropic):

1 response -> 3 Task calls: 1 round, not 3
  toolu_test_1  trips: 2 findings
  toolu_test_2  safety: ERROR timeout, 1 partial
  toolu_test_3  shops: 2 findings
test model reply: 3 reports are back, 1 failed. I will report the gap.
CONTESTED: Weekday bike trips after the lanes opened
  up 18%         <- City Cycling Report, 12 Mar
  up 11%         <- Transit Office Memo, 2 Apr
ESTABLISHED: Shop sales on lane streets
  stayed steady  <- Shop Study, 9 Jan
  stayed steady  <- Chamber Survey, 30 Jan
SINGLE SOURCE: Riders rate the separated lanes as safe
  most riders    <- Rider Survey, 20 Feb
COVERAGE GAP: safety timed out on "crash reports near the lanes", tried 2, partial results kept
  • Line 1: one response held three Task calls. One round.
  • toolu_test_2: safety came back as an error, timeout, with one partial finding.
  • "test model reply": the stand-in's second answer, after it counted the is_error results in the user turn.
  • The report: 18% and 11% both kept with their sources and dates, shop sales confirmed by two sources, rider safety from one survey, and the gap on its own line.

Well established, contested, or still open

How sure the report is about each claim established shop sales stayed steady Shop Study Chamber Survey two sources agree contested weekday trips up 18%: City Cycling up 11%: Transit Memo both kept, none chosen single source riders feel safe Rider Survey only gap: crash reports timed out still open
The structure shows how sure the report is, and never picks a winner quietly.

Notice that the single-source claim sits next to the gap. Rider safety rests on one survey, and the search that might have backed it up or contradicted it (crash reports) never finished. A reader sees both facts together and can weigh the claim accordingly.

Break it: a tidy report that hides the trail

  • Bug one: average and drop the sources. 18% and 11% become 14.5%, a number no source reported, and nobody can trace it.
  • Bug two: hide the failed search. Safety timed out, so it's skipped, and the report reads as if nothing was missing.

The fix is the code above: both values with their sources, a gap line for the failed search, and contested and established kept apart. A smooth answer feels finished, but nobody can check it.

Recap

PieceWhereWhat it guarantees
Three Task calls in one responsepipeline.pySubagents run side by side, one round
One user turn of tool_result blockspipeline.pyEach result matched by tool_use_id, failure marked is_error
Question inside each promptstand_in.pySubagents get the context they can't inherit
Structured timeoutsubagents.pyFailure type, attempted query and partial results reach the coordinator
content / meta per findingsources.jsonClaim, evidence, source and date travel together
contested / established / single source + gapsprovenance.pyThe report shows how sure it is and what's missing

For the exam, this lab mirrors the exercise on orchestrating subagents: when a question shows a timeout or two clashing sources, choose the design that keeps the gap, both values and their sources.

Try it yourself

Remove "timeout": true from the crash reports query in sources.json and give it one finding shaped like the others, with the key rider_safety, the value "most riders" and its own source in meta. Run the pipeline again: the coverage gap line should disappear, and rider safety should move from single source to established.

Tried the exercise? Share your answer or ask a question.

The StudyEasy AI Community is free to join, with the lesson files, notebooks and code.

Join free on Skool

Keep going in Claude · 117 of 123

Previous
Lab: An Extraction Pipeline With a Nullable Schema, Validation-Retry, a 100-Request Batch and Human Review
Next post
Coordinator and Subagents: Decompose, Delegate, Check Coverage, and Call Only the Spokes You Need

Related course on Udemy

Claude Certified Architect - Foundations (CCAR-F) Exam Prep

Agentic loops, tools, MCP, Claude Code, prompts, structured output and context.View on Udemy ↗: Claude Certified Architect - Foundations (CCAR-F) Exam Prep (paid course, opens in a new tab)

Related posts

The Claude Messages API: Your First Call, Field by Field

One request in, one Message out. The four fields of a Messages API call (model, max_tokens, system, messages), how to read content blocks, stop_reason and usage, and why every turn resends the history.

Claude Tool Use: How tool_use and tool_result Work in the Messages API

Follow one order question through Claude's tool round trip: define a tool, read the tool_use block, run your own function and send a matching tool_result back, including parallel calls and is_error.

Claude Client SDKs Wrap One REST API: Raw HTTP, Python, TypeScript and Async Calls Compared

Every Claude client SDK wraps the same REST request: a POST to /v1/messages with a JSON body. See it built by hand, through the Python and TypeScript SDKs, as typed errors, and as async calls that wait together.

Anthropic SDK Timeouts, Retries and Error Classes: Configure the Client Once, Then Give 429, 529, 400 and Timeouts Their Own Move

Configure the Anthropic SDK client (timeout, max_retries, with_options, async, pagination), see which errors it retries by itself, then repair a retry wrapper so a 429, a 529, a 400 and a timeout each get the move the docs support.

On this page

  • A report nobody can check
  • Spawn together, bring results back together
  • The Task tool and what each prompt carries
  • sources.json: content apart from metadata
  • pipeline.py: the coordinator turn
  • subagents.py: a timeout that explains itself
  • provenance.py: the trail
  • Run it
  • Well established, contested, or still open
  • Break it: a tidy report that hides the trail
  • Recap
  • Try it yourself
Community · Free to join
Single logo

StudyEasy AI Community

Hosted onSkool

Learn AI engineering, share what you build, and connect with other learners.

  • Free resources: lesson files, notebooks and code

  • Ask questions and join engineering discussions

  • Meet real people learning and building with AI

Join free on Skool

Related course on Udemy

Claude Certified Architect - Foundations (CCAR-F) Exam Prep

Agentic loops, tools, MCP, Claude Code, prompts, structured output and context.View on Udemy ↗: Claude Certified Architect - Foundations (CCAR-F) Exam Prep (paid course, opens in a new tab)

Single logo

Empowering Education, One Course at a Time

About
About usContact us
Legal
Terms of UsePrivacy Policy

© 2026 StudyEasy Organization. All rights reserved.