Skip to content

Task capsule surface

Task capsules compress agent work into a stable attention layer. They are especially useful for long-running tasks, queues, background agents, and sessions that should not fully render while inactive.

Standard task states

StateMeaningAttentionRequired affordance
runningWork is active.LowOpen details, interrupt when supported.
queuedWork is waiting.MediumShow position, preview, edit/remove when supported.
steeringInput is being delivered to current work.MediumShow pending steer preview.
needs_inputUser must provide information.HighClear CTA and oldest age.
plan_readyA plan awaits approval or edit.HighApprove, reject, edit, inspect.
permission_requiredA risky action needs permission.HighApprove/reject with scope and risk summary.
failedWork failed but may be recoverable.HighRetry, inspect diagnostic, export evidence.
cancelledWork stopped intentionally.LowQuiet summary.
completedWork finished.LowSummary and artifact/evidence links.
staleNo activity beyond threshold.MediumInspect, interrupt, or resume.

Attention rules

  1. Normal running work should be visible but calm.
  2. needs_input, plan_ready, permission_required, and failed may use stronger visual priority.
  3. Completed tasks should collapse automatically unless they produced important artifacts or evidence.
  4. Capsules should open details without navigating away from the user's current context.
  5. Multiple capsules should aggregate by session, workspace, or task group when screen space is limited.

Capsule content

A capsule SHOULD include:

  • short label
  • state
  • count or queue position when relevant
  • latest meaningful activity
  • primary CTA only for attention states
  • link to process, artifact, or evidence details

Avoid putting full tool output, logs, or long plan text inside the capsule.

Session interaction

Task capsules can keep inactive sessions cheap:

  • active session may render full conversation and process surfaces
  • recent session may keep a snapshot and active capsule
  • suspended session may keep only title, summary, and task states
  • discarded session may keep restore metadata and artifact/evidence index

This makes task state visible without forcing every session to hydrate full history.

Acceptance scenarios

  1. Two running tasks appear as compact capsules without flooding conversation.
  2. A needs_input task is visually higher priority than a normal running task.
  3. A queued turn shows preview and remove action before it starts.
  4. Clicking a capsule opens task details in context.
  5. Closing or suspending an inactive session releases heavy process rendering while preserving capsule state.

Draft runtime-first standard for agent interaction surfaces.