Answer: You stream events from a Cline SDK agent run by subscribing to events with agent.subscribe, then handling event types such as "assistant-text-delta" and "tool-started" in a switch statement. Status: Confirmed Entry: tool/cline/agents-and-automation/event-streaming Revision: 1 Digest: sha256:e952a0e502edd4d3 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:07:36Z Last changed: 2026-11-13T03:07:36Z Last verified: 2026-11-20T12:30:30Z Next check: 2026-11-21T12:30:30Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of method | agent.subscribe | [1] | 2026-11-20 event type | assistant-text-delta | [1] | 2026-11-20 Sources: [1] Cline. "Building an Agent". https://docs.cline.bot/sdk/guides/building-an-agent.md Role: primary. Accessed: 2026-11-20T12:30:30Z Quote: "agent.subscribe((event) => {" (Supports: method) Quote: "case "assistant-text-delta":" (Supports: event type) Published: 2026-11-20T06:00:36Z Snapshot SHA-256: cf25f857878714fd999cfc471551493fc97ed24e31746344e35d48e3722bce8f (captured 2026-11-13T03:07:35Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:07:36Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:30:30Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:30:30Z Last attempt: 2026-11-20T12:30:30Z Notes and limitations: Extracted automatically from a single official source (section "Event Streaming"). Related: https://latestn.com/tool/cline/agents-and-automation/handle-tool-errors How do I handle tool errors in Cline agents so the agent can recover? https://latestn.com/tool/cline/agents-and-automation/how-github-actions-integration-works How does the Cline GitHub Actions integration work under the hood? https://latestn.com/tool/cline/agents-and-automation/hub-spoke-roles What are the hub, spoke, and client roles in Cline's hub-spoke architecture? https://latestn.com/tool/cline/agents-and-automation/done-event-reasons What reasons can a Cline done event have? https://latestn.com/tool/cline/agents-and-automation/enable-automation-apis How do I enable automation APIs in ClineCore? https://latestn.com/tool/cline/agents-and-automation/enable-multi-agent-teams How do I enable multi-agent teams in Cline? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:07:36Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cline/agents-and-automation/event-streaming/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cline/agents-and-automation/event-streaming POST: https://latestn.com/dispute/tool/cline/agents-and-automation/event-streaming with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cline/agents-and-automation/event-streaming?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I stream events from a Cline SDK agent run? Revision 1, last verified 2026-11-20T12:30:30Z. https://latestn.com/tool/cline/agents-and-automation/event-streaming (accessed 2026-11-21T10:07:07Z). @misc{LatestN_tool_cline_agents_and_automation_event_streaming_r1, title = {How do I stream events from a Cline SDK agent run?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cline/agents-and-automation/event-streaming}}, note = {Revision 1; digest sha256:e952a0e502edd4d3; last verified 2026-11-20T12:30:30Z; accessed 2026-11-21T10:07:07Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cline/agents-and-automation/event-streaming