Answer: You subscribe to Cline AgentRuntime events by calling agent.subscribe with a callback that receives each event, which returns an unsubscribe function; you then call unsubscribe() when done. Status: Confirmed Entry: tool/cline/agents-and-automation/subscribe-agentruntime-events Revision: 1 Digest: sha256:5ab0db063f1ec79c (changes whenever the content changes) Timeline: Created: 2026-11-13T03:07:33Z Last changed: 2026-11-13T03:07:33Z Last verified: 2026-11-20T12:30:24Z Next check: 2026-11-21T12:30:24Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of subscribe call | agent.subscribe((event) => { | [1] | 2026-11-20 event type check | assistant-text-delta | [1] | 2026-11-20 unsubscribe call | unsubscribe() | [1] | 2026-11-20 event stream type | AgentRuntimeEvent | [1] | 2026-11-20 Sources: [1] Cline. "Events". https://docs.cline.bot/sdk/events.md Role: primary. Accessed: 2026-11-20T12:30:24Z Quote: "const unsubscribe = agent.subscribe((event) => {" (Supports: subscribe call) Quote: "if (event.type === "assistant-text-delta") {" (Supports: event type check) Quote: "unsubscribe()" (Supports: unsubscribe call) Quote: "`AgentRuntimeEvent` is the low-level event stream from the browser-compatible runtime." (Supports: event stream type) Published: 2026-11-20T00:16:31Z Snapshot SHA-256: b7447d32faf579123e11b6fdcd8be6e25e717f4b0728b0e6ca16e74adfac5776 (captured 2026-11-13T03:07:33Z) 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:33Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:30:24Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:30:24Z Last attempt: 2026-11-20T12:30:24Z Notes and limitations: Extracted automatically from a single official source (section "AgentRuntime Events"). Related: https://latestn.com/tool/cline/agents-and-automation/teams-vs-sub-agents When should I use Cline teams instead of sub-agents? https://latestn.com/tool/cline/agents-and-automation/test-custom-tools How do I test a custom tool in Cline? https://latestn.com/tool/cline/agents-and-automation/when-to-use-subagents When should I use subagents in Cline? https://latestn.com/tool/cline/agents-and-automation/start-agent-team How do I start an agent team in Cline CLI? https://latestn.com/tool/cline/agents-and-automation/subscribe-agent-events How do I subscribe to events from a Cline Agent? https://latestn.com/tool/cline/agents-and-automation/subscribe-agent-runtime-events How do I subscribe to low-level runtime events from a Cline AgentRuntime? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:07:33Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cline/agents-and-automation/subscribe-agentruntime-events/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/subscribe-agentruntime-events POST: https://latestn.com/dispute/tool/cline/agents-and-automation/subscribe-agentruntime-events with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cline/agents-and-automation/subscribe-agentruntime-events?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I subscribe to Cline AgentRuntime events using agent.subscribe? Revision 1, last verified 2026-11-20T12:30:24Z. https://latestn.com/tool/cline/agents-and-automation/subscribe-agentruntime-events (accessed 2026-11-21T10:04:01Z). @misc{LatestN_tool_cline_agents_and_automation_subscribe_agentruntime_events_r1, title = {How do I subscribe to Cline AgentRuntime events using agent.subscribe?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cline/agents-and-automation/subscribe-agentruntime-events}}, note = {Revision 1; digest sha256:5ab0db063f1ec79c; last verified 2026-11-20T12:30:24Z; accessed 2026-11-21T10:04:01Z} } 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/subscribe-agentruntime-events