Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
cursor-agent in ACP mode never reports token usage, while the exact same binary reports it fine on the --print path. This makes it impossible for ACP clients to account for spend.
Version: 2026.09.15-d2fe57e (also reproduced on 2026.09.08-6caf4ff), macOS arm64
Steps to Reproduce
$ cursor-agent acp # minimal ACP client: initialize -> session/new -> session/prompt
session/prompt response: {"stopReason":"end_turn"}
Expected Behavior
Token usage reported as per ACP spec: https://unpkg.com/@agentclientprotocol/[email protected]/dist/schema/types.gen.d.ts).
Either:
- Emit usage_update — this is the stable part of ACP, documented as something the Agent MAY send (spec), and it carries cost.
- Populate usage on the session/prompt response — currently experimental (schema), and the natural home for per-turn token counts.
I understand this is marked “experimental” in the ACP spec, but other providers already support it, and the capability already exists in terminal calls with -p, so hopefully easy to port to ACP:
$ cursor-agent -p --force --output-format json "Reply with exactly: PONG"
{"type":"result",...,"usage":{"inputTokens":3,"outputTokens":6, "cacheReadTokens":12635,"cacheWriteTokens":3136}}
Operating System
MacOS
Linux
Version Information
cursor-agent 2026.09.15
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor