Answer: You subscribe to events from a Cline Agent by calling agent.subscribe with a listener callback, which returns an unsubscribe function. The listener receives AgentRuntimeEvent events. Status: Confirmed Entry: tool/cline/agents-and-automation/subscribe-agent-events Revision: 1 Digest: sha256:514b91daa0d5bcce (changes whenever the content changes) Timeline: Created: 2026-11-13T03:07:48Z Last changed: 2026-11-13T03:07:48Z Last verified: 2026-11-20T12:31:00Z Next check: 2026-11-21T12:31:00Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of method | subscribe(listener) | [1] | 2026-11-20 usage | const unsubscribe = agent.subscribe((event) => { | [1] | 2026-11-20 event type | AgentRuntimeEvent | [1] | 2026-11-20 Sources: [1] Cline. "Agent". https://docs.cline.bot/sdk/reference/agent.md Role: primary. Accessed: 2026-11-20T12:31:00Z Quote: "### `subscribe(listener)`" (Supports: method) Quote: "const unsubscribe = agent.subscribe((event) => {" (Supports: usage) Quote: "Subscribes to `AgentRuntimeEvent` events." (Supports: event type) Published: 2026-11-20T06:00:43Z Snapshot SHA-256: 363e1c3d62b69d55787f9cf3b12b780efd4dc40c45ba3e32107c9a0e25834928 (captured 2026-11-13T03:07:48Z) 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:48Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:31:00Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:31:00Z Last attempt: 2026-11-20T12:31:00Z Notes and limitations: Extracted automatically from a single official source (section "`subscribe(listener)`"). Related: 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/cline/agents-and-automation/subscribe-agentruntime-events How do I subscribe to Cline AgentRuntime events using agent.subscribe? 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/schedule-supply-chain-scan How do I schedule a supply-chain scan with the Cline CLI? https://latestn.com/tool/cline/agents-and-automation/schedule-wizard-cli How do I create a scheduled agent using the Cline CLI schedule wizard? 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/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:07:48Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cline/agents-and-automation/subscribe-agent-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-agent-events POST: https://latestn.com/dispute/tool/cline/agents-and-automation/subscribe-agent-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-agent-events?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I subscribe to events from a Cline Agent? Revision 1, last verified 2026-11-20T12:31:00Z. https://latestn.com/tool/cline/agents-and-automation/subscribe-agent-events (accessed 2026-11-21T10:08:20Z). @misc{LatestN_tool_cline_agents_and_automation_subscribe_agent_events_r1, title = {How do I subscribe to events from a Cline Agent?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cline/agents-and-automation/subscribe-agent-events}}, note = {Revision 1; digest sha256:514b91daa0d5bcce; last verified 2026-11-20T12:31:00Z; accessed 2026-11-21T10:08:20Z} } 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-agent-events