Runtime Overview
Asymptote supports Cursor through native hook payloads sent tobeacon-hooks.
For provider-managed Cursor cloud sessions, see
Cursor Cloud Agents.
Prerequisites
Before enabling Cursor hooks, make sure:- Cursor is installed for the user or the
~/.cursordirectory exists. beacon endpoint installhas run so shared endpoint config and runtime log paths exist.- Asymptote hooks are installed with
beacon endpoint hooks install --harness cursor. - For project-level collection, install hooks from the target project with
--level project. - Cursor is restarted after hook install or removal so new sessions load the updated hook configuration.
Collection path
Cursor invokes Asymptote’s hook adapter from Cursor hook configuration. The adapter writes normalized endpoint events to the configured runtime JSONL log.Discovery and status
Asymptote detects Cursor through the Cursor binary or~/.cursor, then checks Asymptote hook configuration.
Use beacon endpoint hooks status --harness cursor to inspect Cursor hook status.
Install or configuration support
beacon endpoint install prepares shared endpoint config and runtime log paths. Install Cursor hooks separately:
Install runtime hooks
Install project-level hooks
Telemetry coverage
Deployment notes
Restart Cursor after installing or removing hooks so the updated hook configuration is picked up by new sessions. Hook events include metadata such as file path, operation, language, diff hash, and diff byte count. Raw diffs and reasoning text are subject to Asymptote’s redaction, sanitization, truncation, and event-size limits before writing.Token usage
Cursor’s hook payloads do not include token counts today, so hook telemetry alone cannot power the token views for Cursor sessions. Two mechanisms close the gap:- Local state-store sync.
beacon token-usage sync-cursorreads a private snapshot of Cursor’s local state store (state.vscdb) and appends the runtime-recorded per-generation token counts to the runtime log astoken.usageevents attributed to thecursorharness, keyed by the same conversation id the hooks record. The store is undocumented and best-effort: generations without recorded counts are skipped, and Beacon never estimates token counts or derives cost locally. - Hook passthrough. If a Cursor release starts including usage fields in
hook payloads, the hook adapter normalizes them into
gen_ai.usageautomatically, and rollups prefer hook-reported usage over synced usage for the same session, so the two sources never double count.
beacon token-usage
and the dashboard token view alongside other harnesses.
Related
Supported agent harnesses
Return to the runtime support overview.
Hooks
Install, inspect, and uninstall runtime hook integrations.
Cursor Cloud Agents
Capture Cursor cloud agent telemetry with sandbox-local hooks and GCS upload.

