# Cloud Agent Environment Choosing

**URL:** <https://forum.cursor.com/t/cloud-agent-environment-choosing/169443>\
**Category:** Help\
**Tags:** cursor-sdk, performance, cloud-agents\
**Created:** [August 25, 2026, 2:20pm UTC](https://forum.cursor.com/t/cloud-agent-environment-choosing/169443 "2026-08-25T14:20:36Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [August 30, 2026, 5:44pm UTC](https://forum.cursor.com/t/cloud-agent-environment-choosing/169443/17 "2026-08-30T17:44:55Z")

</div>

Glad you got it sorted. And yep, you can pull that kind of breakdown yourself via the SDK.

`run.stream()` in `@cursor/sdk` gives you a typed event stream while the run is happening, not just the final text. It includes everything you need to understand what the agent did and where the time went:

- `tool_call` - tool name (`edit_file`, `run_terminal_cmd`, `task` for delegating to sub-agents, etc.), `status` (running/completed/error), plus `args` and `result`
- `thinking` - includes `thinking_duration_ms`
- `assistant` - text steps
- `usage` - token usage
- `status` - run lifecycle (CREATING/RUNNING/FINISHED/etc.)

If you add your own timestamp when you receive each event, you get a per-step timeline. You can see which tool calls and sub-agents ran and how long each one took. That’s exactly how those two 20+ minute `computerUse` stretches in Task 60 would show up. There’s an example of streaming events into a transcript in the SDK docs: [Cursor TypeScript SDK | Cursor Documentation](https://cursor.com/docs/sdk/typescript)

Under the hood, it’s an SSE stream `GET /v1/agents/{id}/runs/{runId}/stream` with resume via `Last-Event-ID`, so you can continue if the connection drops.

What’s missing today is a single ready-made summary that includes per-step durations, number of files and lines changed, and cost in one field. For now, you need to aggregate it from the stream yourself. A durable run summary with metrics is a request we’re tracking, here’s a related thread where you can add a vote and details: [Feature request: Cloud Agents API live activity stream, stable events, and run summary for third-party chat UIs](https://forum.cursor.com/t/feature-request-cloud-agents-api-live-activity-stream-stable-events-and-run-summary-for-third-party-chat-uis/167711)

Try wiring streaming into your task board, it’ll give you exactly the diagnostics you were missing. Let me know if anything doesn’t work.

---

_[View the full topic](https://forum.cursor.com/t/cloud-agent-environment-choosing/169443)._
