Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>PanDev MetricsNew to Visual Studio Code? Get it now.
PanDev Metrics

PanDev Metrics

PanDev

|
353 installs
| (0) | Free
Metrics, insights, and time tracking automatically generated from your programming activity.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PanDev Metrics for Visual Studio Code

PanDev Metrics is a VS Code extension that provides metrics, insights, and time tracking automatically generated from your programming activity.

Installation

  1. Open VS Code
  2. Go to Extensions (Cmd+Shift+X / Ctrl+Shift+X)
  3. Search for "PanDev Metrics"
  4. Click Install

Getting Started

  1. After installation, click "Metrics" in the status bar (bottom left)
  2. Select "Add new server"
  3. Enter your server URL, login, and password
  4. Click "Connect to server"

Features

Automatic Time Tracking

The extension runs in the background and automatically tracks your coding activity — no manual input needed.

Status Bar

  • Left side: "Metrics" button — click to manage servers
  • Right side: Your daily coding time — click to open the dashboard

Status Indicators

Icon Color Meaning
Green Activity is being tracked
Yellow Offline — data is saved locally and will sync when connected
Red Project is not associated with your company
Gray No git repository detected

AI Assistant Tracking

If you use Cursor, Windsurf or Antigravity, the extension automatically tracks your AI assistant usage (prompts, file edits, sessions and token usage) alongside regular coding activity. Prompt text is transmitted — see What the extension collects.

Offline Support

When your connection is lost, all activity data is saved locally and automatically synced when the connection is restored.

Multi-language Support

  • English (default)
  • Russian (follows your VS Code language setting)

Commands

Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P) and type:

Command Description
PanDev Metrics: Add new server Connect to a new server
PanDev Metrics: Open server settings View and manage connected servers
PanDev Metrics: Remove all servers Disconnect all servers

What the extension collects

Read this before deploying PanDev Metrics. It describes what leaves a developer's machine, how it is collected, and what does and does not protect it.

Editor activity

While a developer works, the extension sends a periodic heartbeat carrying: timestamp, project and module name, language, file name and full file path, the repository's git remote and branch, line count, the line being edited and the cursor position. File contents are not sent.

AI assistant activity

For each tracked assistant — Cursor, Windsurf, Antigravity, Claude Code, AI command-line tools run in the integrated terminal, and PanDev's own chat — four kinds of event are recorded:

Event What is sent
prompt the full text of the prompt, its length, model, conversation id
file_edit absolute file path, file name, lines added and removed
session_end end of a generation, model, conversation id
token_usage input, output and cache token counts, model, provider

Every event also carries the repository's git remote and branch.

When the folder open in the editor is not a repository but holds several — a directory of checkouts — an event cannot name a repository of its own. Such an event instead carries the git remotes of the repositories lying directly inside that folder, so the work can be recorded against them collectively. Only remotes the configured server confirms as the organisation's are included, and the list is sent only on events that name no repository of their own.

Prompt text IS transmitted, for every supported assistant without exception. The extension is built for organisations that measure how their teams work with AI, and prompt content is part of that measurement.

Personal data and secrets are cut out of it first, on this machine, before the text is written to any queue or sent anywhere. A find is replaced by a <sanitized:type> label: private keys, JWTs, tokens of about a hundred services, credentials in a URL, authorization and cookie headers, the value behind a password=-style key, email addresses, phone numbers, card numbers, IBANs and Kazakhstan IINs. If nothing meaningful survives, the whole prompt becomes <sanitized>. prompt_length stays the length of the text as typed, because a length is not a secret.

What this does not catch, stated plainly: names and postal addresses, which regular expressions cannot identify; a secret behind a key that is not in the dictionary (пароль от базы: qwerty123); and tokens with no recognisable prefix and no key next to them — long random-looking strings appear in about 40% of prompts (toolu_…, UUIDs, hashes), so cutting them would cut the prompt to pieces. The algorithm is specified centrally and shared by every PanDev plugin; its service-token rules come from gitleaks (MIT).

Command-line assistants

  • Claude Code is tracked through its own hook mechanism, with the same fields as the editor assistants: prompt text, the absolute path of each edited file, and session ends.
  • AI command-line tools started in the integrated terminal — aider, gemini, codex, opencode, qodo, cody — are tracked from the command line itself. The first 500 characters of the command, sanitized as above, are transmitted in place of a prompt, with the tool's name as the model. A command line carries everything put on it, including its arguments and any value assigned inline before the command, so on a machine running this extension a secret passed that way is transmitted with it.

How it is collected

  • Editor activity comes from the editor's own events in VS Code and Cursor.
  • Cursor and Windsurf activity is collected through hook scripts that the IDE itself invokes. The extension registers them in ~/.cursor/hooks.json and ~/.codeium/windsurf/hooks.json; they append each event to ~/.pandev/<ide>/logs/activity.jsonl, which the extension reads.
  • Antigravity activity is read from Antigravity's own transcript and token files.
  • Claude Code activity is collected through a hook the extension registers with Claude Code, which appends events to ~/.pandev/cli/logs/activity.jsonl.
  • Terminal activity comes from the editor's Terminal Shell Integration API, which reports the command line of each execution. Hosts older than VS Code 1.93 do not provide it and are not tracked this way.

How it is transmitted

Events are posted to the server configured by whoever deployed the extension.

The payload is wrapped in an AES layer whose key is issued by that same server. This is obfuscation, not confidentiality: it offers no protection against anyone able to observe the connection. Confidentiality in transit is a property of the endpoint, not of this layer. The hosted service uses HTTPS. A self-hosted installation often points at an internal address with no TLS, and in that case the payload — prompt text included — is not protected in transit.

What is stored on the developer's machine

Five files hold activity, including prompt text, and none of them is encrypted. The text in them is sanitized as described above, with one exception named below:

  • ~/.pandev/<ide>/logs/activity.jsonl — written by the hook scripts; emptied once the extension has read it. This is the exception: the hook is a shell script that runs before the extension sees anything, so the text lands here as the editor sent it and is sanitized when the extension reads it. The file is emptied immediately afterwards.
  • ~/.pandev/ide-activity/activity-buffer.json — events waiting for the generation they belong to to finish.
  • ~/.pandev/cli/logs/activity.jsonl — written by the Claude Code hook and the terminal tracker; emptied on the same terms.
  • ~/.pandev/ide-activity/failed-activities.jsonl — events the server did not accept, kept for retry until delivery succeeds. An unreachable server means this file persists.
  • ~/.pandev/ide-activity/pending-attribution.json — events waiting to learn which repository they belong to; they leave within fifteen minutes at the latest.

Pending heartbeats are held in the editor's own extension storage under the AES layer described above.

The deployment model

An organisation installs the extension on its own developers' machines, and it reports to a server that same organisation operates. The confidentiality boundary is that organisation's network and its own choice of transport; the extension does not add one.

Uninstalling

  1. Open Extensions sidebar (Cmd+Shift+X / Ctrl+Shift+X)
  2. Search for "PanDev Metrics"
  3. Click Uninstall

Support

  • PanDev Website
  • Dashboard
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft