The SDK exposes two related event surfaces:Documentation Index
Fetch the complete documentation index at: https://docs.cline.bot/llms.txt
Use this file to discover all available pages before exploring further.
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:
| Category | Events | Use for |
|---|---|---|
| Content | content_start, content_update, content_end | Text/reasoning/tool UI |
| Iterations | iteration_start, iteration_end | Progress tracking |
| Usage | usage | Token/cost tracking |
| Notices | notice | Recovery and status updates |
| Completion | done, error | Final state and failure handling |
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:

