showcase/integrations/claude-sdk-python/qa/subagents.md
/demos/subagents on the dashboard host/api/health); ANTHROPIC_API_KEY is set on Railway; the FastAPI backend exposes POST /subagents/demos/subagents; verify the page renders within 3s with a left-side delegation log and a right-side CopilotChat panedata-testid="delegation-log" is visible with heading "Sub-agent delegations"data-testid="delegation-count" reads "0 calls" on first loaddata-testid="supervisor-running" appears with the "Supervisor running" pulse indicatordata-testid="delegation-entry" appears with badge "Research" and data-testid="delegation-status" initially reading runningcompleted once the sub-agent returns and the result text is visible inside the entry's white inner paneldata-testid="delegation-count" updates to match the number of entries (e.g. "3 calls")data-testid="delegation-entry" shows: a #N index, a sub-agent badge with the correct emoji (🔎 Research / ✍️ Writing / 🧐 Critique), a status chip, the task text after "Task:", and the sub-agent's result rendered with whitespace preservedresult is a single polished paragraph (the writing sub-agent's signature)result is a bulleted list of 3-5 facts (the research sub-agent's signature)result contains 2-3 actionable critiquesstate["delegations"] accumulates across turns within the same threadfailed and a result line starting with "sub-agent call failed:" — confirms the fail-loud pathrunning -> completed (or failed) and the count badge stays in sync with state["delegations"].length