Skip to content

Live subagent progress summaries via agentProgressSummaries (SDK 0.2.72) #40

Description

@Number531

Summary

During 30-60+ min memo runs with 29 subagents, active agent cards on the frontend dashboard show only a pulsing border and agent name — zero insight into what each subagent is currently doing. All rich observability data arrives only on subagent_stop.

SDK 0.2.72 adds agentProgressSummaries: true, which emits periodic AI-generated summary fields on task_progress stream events. This issue tracks wiring those events through the server to the frontend for live progress text on active agent cards.

Plan Document

docs/pending-updates/subagent-observation-summary.md (v1.0.0)

Scope

  • 4 files modified, ~80 lines of code
  • SDK upgrade: @anthropic-ai/claude-agent-sdk 0.2.70 → 0.2.72
  • Server: Add agentProgressSummaries: true to both agentQuery() calls, handle task_progress in message switch, emit SSE subagent_progress events
  • Frontend: Render live progress text + activity feed on active agent cards
  • CSS: .agent-progress-text styling, activity feed for active cards
  • No changes needed: sdkHooks.js, hookSSEBridge.js (task_progress is a stream message, not a hook event)

Key Risks

Risk Severity Mitigation
task_idagent_id mapping Medium Log first events, verify field correlation
SDK 0.2.72 regressions Medium Pin-test on branch before merge
Token overhead from summaries Low Monitor via usage.total_tokens on events

Implementation Phases

  • Phase A: SDK upgrade 0.2.70 → 0.2.72 + smoke test
  • Phase B: Server-side task_progress handling + SSE emission
  • Phase C: Frontend rendering + CSS
  • Phase D: Integration testing + verification

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions