AgentRuntimeEventfrom@cline/agents, delivered throughagent.subscribe(listener).AgentEvent/CoreSessionEventfrom@cline/core, delivered through core session adapters andcline.subscribe(listener).
AgentRuntime Events
AgentRuntimeEvent is the low-level event stream from the browser-compatible runtime.
Core / Host-Facing Agent Events
AgentEvent is the host-facing event shape used by @cline/core session orchestration. For direct Agent usage, prefer agent.subscribe(...) and AgentRuntimeEvent.
Common host-facing event categories:
ClineCore Session Events
Usecline.subscribe() for session-level events:
sessionId filter when you only want one session:
Streaming UI Pattern
Subscribe to events to build real-time UIs:Usage Tracking Pattern
Runtime State Snapshots
Callsnapshot() when you need the current state:

