Agent context lifecycle (observability)

Feature request for product/service

Cursor SDK

Describe the request

For long-lived SDK agents (Agent.create → many send/run cycles without close):

Remaining context headroom (tokens or %)
Event when context is truncated/summarized internally (what was dropped)
First-class compact() / rollover hook (summarize-in-place without killing the agent)
Why: We run long-lived agents; warm reuse works but context state is an opaque box — we built compensating rollover in our own layer because the SDK doesn’t expose this.

Operating System (if it applies)

MacOS