Surface Claude Agent SDK workflow runs (the Workflow orchestration tool) end to end in the desktop app: - Contracts: WorkflowProgressEntry schemas, run handles, workflow inspection RPCs, thread.task.stop command + task-stop-requested event - ClaudeAdapter: normalize the SDK's undocumented workflow_progress snapshot (size-capped, tolerant), forward workflow identity on task events, emit task.workflowMeta from Workflow tool results, stopTask - Ingestion: upsert workflow snapshots under a stable per-task activity id so projections and reconnect payloads stay one row per run - WorkflowInspectionService: path-validated, size-capped reads of the run's script, journal, and per-agent transcripts (realpath containment under ~/.claude/projects) - Web: WorkflowRunCard inline in the chat timeline, a workflow right- panel surface with Run/Script/Logs tabs, cursor-paged transcript polling, stop + resume affordances; remote runs link to their cloud session Co-Authored-By: Claude Fable 5 <[email protected]>
Client Runtime
Shared client behavior for web and mobile. Public APIs are organized by package subpath. The package intentionally has no root export.
Public subpaths
| Subpath | Responsibility |
|---|---|
authorization |
Bearer and DPoP authorization plus token persistence contracts |
connection |
Targets, catalog, supervision, retries, registry, and onboarding |
environment |
Environment identity, descriptors, endpoints, and scoped keys |
errors |
Shared client error inspection |
operations |
Multi-step application workflows |
operations/projects |
Multi-step project creation workflows |
platform |
Platform capability and persistence service contracts |
relay |
Managed relay API and environment discovery |
rpc |
HTTP/RPC clients, protocol, sessions, and subscriptions |
state/<domain> |
Focused shared state, retention, reducers, and Atom constructors |
Dependency direction
Platform applications provide platform services. connection composes those
capabilities with authorization, relay, and rpc to supervise environment
sessions. Independent state modules consume the connection registry and expose
focused state or Atom constructors to application-owned runtimes.
Applications should import the narrowest relevant subpath. There is no broad
state export: use domain paths such as state/shell, state/threads,
state/terminal, or state/vcs. Subpath indices and explicitly exported domain
files are public API boundaries; all other files remain implementation details.