Telemetry

The @agent-native/core and @agent-native/skills command-line tools collect anonymous usage data. It shows us which parts of the CLI work and where people get stuck, so we know what to fix.

Nothing here identifies you, your project or your code, and you can turn it off with one command. This page covers the two CLIs and lists everything they can send. Analytics inside an app you build are a separate choice you configure yourself; see Tracking.

Turn it off

npx @agent-native/core telemetry disable

This covers both CLIs on this machine. It also stops crash reports.

Command What it does
npx @agent-native/core telemetry status Shows whether telemetry is on, and which setting turned it off.
npx @agent-native/core telemetry disable Turns telemetry off on this machine.
npx @agent-native/core telemetry enable Turns it back on.
npx @agent-native/core telemetry reset Replaces this machine's random ID with a new one.

The setting is stored in ~/.agent-native/telemetry.json, next to the random ID in ~/.agent-native/installation-id.

You can also turn it off with either environment variable, which wins over the setting. Use this in CI or a shared shell profile:

DO_NOT_TRACK=1
AGENT_NATIVE_TELEMETRY_DISABLED=1

See what a command would send

Set AGENT_NATIVE_TELEMETRY_DEBUG=1 to print every event to stderr, each on a line starting with [telemetry], and send nothing. It works when telemetry is off too, and it doesn't create a machine ID.

AGENT_NATIVE_TELEMETRY_DEBUG=1 npx @agent-native/core --version

The notice

The first time a command would send anything on a machine, it prints this to stderr:

▶ Agent-Native collects anonymous usage data.
  It shows us which parts of the CLI work and where people get stuck.
  Run "npx @agent-native/core telemetry disable" to opt out.
  https://www.agent-native.com/docs/telemetry

It prints once per machine. It doesn't print in CI or when telemetry is off. CI runs still send events unless one of the variables above is set, and they're marked with ci.

What is sent

Events go to Agent-Native's own analytics service at analytics.agent-native.com, with a write-only key that is public in the CLI's source. Events are sent in the background. A command that waits for them before it exits waits at most 1.5 seconds. A short command that doesn't wait can stay open until a slow or unresponsive network answers or gives up.

Each event has a name, a timestamp, the machine ID and the run ID, plus these properties. The docs test in packages/core/src/cli/telemetry.spec.ts fails if a property the CLI can send is missing from this page.

On every event

Property What it is
cli Which CLI sent it: core or skills-installer.
cliVersion The CLI's version.
command The command name, such as dev. Anything that isn't a command, like a typo or a prompt, is sent as unknown.
node The Node.js version.
platform The operating system: darwin, linux or win32.
ci Whether the command is running in CI.
interactive Whether the command is running in a terminal.
installId The machine ID: a random value created on this machine, tied to nothing else.
runId A random value for this one run of the command.

Some events are also sent under a second, newer name, with canonical_event_name and legacy_event_name recording both names.

Commands

Event When Properties
cli.run A command starts. None.
cli.crash A command crashes. error
cli.scaffold.import_error The project scaffolder can't be loaded. error

error is the short message hint described under Crash reports.

Project activity

These events show how many machines that ran create went on to start a dev server and finish a production build, and from which templates.

Event When Properties
cli_create_finished create finishes, is cancelled or fails. outcome, templates, projectKind, failedStep
cli_dev_ready The dev server first starts listening in a run of dev. A restart doesn't send it again, and in a workspace only the first app to start does. workspace, appCount, readySeconds
cli_deploy_finished build or deploy finishes or fails. outcome, preset, failedStep
Property What it is
outcome completed or failed. create can also send cancelled.
templates The templates chosen, separated by commas. Agent-Native's own templates are sent by name. A community template is sent as community and any other name as unknown, so a URL is never sent.
projectKind What create made: workspace, standalone, headless or workspace-add (an app added to a workspace).
failedStep Where a failed run stopped. create: choose, scaffold or finish. build: doctor, react-router-build, vite-build or deploy-build. deploy: prepare, build or package.
workspace Whether dev is running in a workspace.
appCount How many apps the workspace has, or 1 outside a workspace.
readySeconds Seconds from dev starting to the server listening.
preset The host a build targets: aws, azure, bun, cloudflare, deno, firebase, netlify, node or vercel. A preset for any other host is sent as other.

deploy builds your app and prints the command that publishes it, so completed means the build finished, not that anything went live. The two finished events go out as the command exits, through a short-lived helper process the exit waits for, for at most 1.5 seconds. That wait comes on top of any earlier wait for other events. Ctrl+C at a create prompt counts as cancelled. Stopping build or deploy with Ctrl+C sends no finished event.

Installing skills

These events follow skills add and npx @agent-native/skills, so we can see where an install stops. Skills from Agent-Native's own catalog are sent by name. A skill from anywhere else, such as a local manifest or another repository, is sent as custom.

Event When Properties
skills_cli started The command starts. None.
skills_cli skills listed, skills_cli skills prompted The available skills are shown. available, availableCount
skills_cli skills selected Skills are chosen. selected, selectedCount, selectedAll, preselected
skills_cli plan mode selected A plan mode is chosen. mode
skills_cli clients selected Coding agents are chosen. clients, clientCount
skills_cli scope selected Project or global install is chosen. scope
skills_cli install completed Skill files are written. skills, clients, scope, dryRun, writtenCount
skills_cli instructions updated Instruction files are updated. fileCount
skills_cli mcp registered An MCP connector is registered. skills, serverName, clients, authenticated
skills_cli github action added The PR Visual Recap workflow is added. None.
skills_cli connect started, skills_cli connect completed Sign-in to an app starts or finishes. None.
skills_cli connect failed Sign-in to an app fails. error
skills_cli cancelled The install is cancelled. step
skills_cli completed The command finishes. skills, clients, scope, dryRun, durationMs
skills_cli failed The command fails. command, error, durationMs

Crash reports

When a command fails, the $exception event reports what broke in Agent-Native's code, and nothing about your code:

Property What it is
exceptionType The error's type if it's a standard one, such as TypeError. Any other type, such as a custom error class, is sent as Error.
exceptionCode The error's code if it's a standard one, such as ENOENT.
exceptionMessage A short hint. Agent-Native's own known errors send their fixed text. Any other message sends only its opening words, up to 20 characters, stopping at the first word with anything but letters in it, or right after a word ending in a colon.
exceptionStack The stack frames in Agent-Native's own files, with paths relative to the package. Every other frame is removed.
handled false when the error stopped the command.
level The severity.
occurredAt When it happened.
release The CLI's version.
app Always agent-native-cli.
template Always cli.
runtime Always cli.
source Always cli.
exceptionTags Where the failure happened; see below.
exceptionExtra How the failure ended; see below.

Those two fields hold only these values:

  • exceptionTags: source (the part of the CLI that failed), buildStep (one of our build step names), template (only one of our own template names), command and handled (a label for the check that reported it).
  • exceptionExtra: exitCode and signal (how a build step exited), stage and durationMs.

The hint is the start of the message, so a message that opens with plain words of yours, such as a project name, could carry them. A digit, underscore, slash or other symbol ends the hint, and so does a word too long to fit, so paths, URLs, emails and most tokens can't get through.

Sentry

If @sentry/node is installed alongside @agent-native/core, crashes and failed builds also go to Agent-Native's Sentry project, as do two warnings from the workspace dev server. Failed skills commands don't. These reports follow every setting on this page and carry the same error type, hint, stack frames and exceptionExtra fields, with these tags: the fields of exceptionTags above, the error's code, the command name, nodeVersion and platform. The environment is always production. Reports also carry Sentry's usual event ID, timestamp and severity, the CLI's version, and the Sentry SDK's own name and version. The CLI doesn't send the hostname, source lines, console output or your dependency list.

What is never sent

  • Environment variables
  • File paths, file contents or source code
  • Project, repository or app names, and git remotes
  • Logs or command output
  • Command-line arguments or prompts
  • Emails, usernames or hostnames
  • Raw error messages, or stack frames from your code
  • Any ID for your project

The one limit on this list is the crash hint described above, which can carry the opening words of an error message.

The service receiving an event can see the request's IP address, as any web server can. The CLI doesn't put it in an event.