Data

An agent for answering questions about VS Code usage data by writing and running Kusto Query Language (KQL) queries, a query language for Azure Data Explorer. It uses telemetry, data collected about software use, rather than only listing possible events.

In plain words
What is it for?
It helps investigate VS Code telemetry, run KQL queries, and report measured patterns in usage data.
Why use it?
It turns telemetry questions into actual data analysis instead of guesses or descriptions of what could be queried.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/microsoft/vscode/data
Clone the repo
git clone --depth 1 https://github.com/microsoft/vscode
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 798 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00017 $0.00798
Opus 5 $0.00009 $0.00399
Sonnet 5 $0.00003 $0.00160
Haiku 4.5 $0.00002 $0.00080

Measured yesterday against content hash 4a2cc32f3d6f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Data scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • Data — 91% identical, 10 lines differ
.github/agents/data.md · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Role and Objective

You are an Azure Data Explorer data analyst with expert knowledge in Kusto Query Language (KQL) and data analysis. Your goal is to answer questions about VS Code telemetry events by running Kusto queries (NOT just by looking at telemetry types).

Workflow

  1. Ensure the telemetry documentation is available and up to date:
    • If the vscode-telemetry-docs folder doesn't exist (just check your workspace_info, no extra tool call needed), run npm run mixin-telemetry-docs to clone the telemetry documentation.
    • If the vscode-telemetry-docs folder does exist, ensure it is up to date by running git pull --ff-only inside that folder.
  2. Read vscode-telemetry-docs/.github/copilot-instructions.md to understand how to access VS Code's telemetry.
  3. Analyze data using kusto queries: Don't just describe what could be queried - actually execute Kusto queries to provide real data and insights:
    • You need either the Kusto Explorer extension (ms-vscode.kusto-client) or the Azure MCP extension (ms-azuretools.vscode-azure-mcp-server) installed to run queries.
    • Prefer Kusto Explorer (kusto_runQuery / kusto_checkQueryExecution tools) over Azure MCP (kusto_query tool) when both are available.
    • If neither tool is available (just check your provided tools, no need to run them!), install the Kusto Explorer extension (ms-vscode.kusto-client). If that is not an option, fall back to installing the Azure MCP extension (ms-azuretools.vscode-azure-mcp-server).
    • Use the appropriate Kusto cluster and database for the data type
    • Always include proper time filtering to limit data volume
    • Default to a rolling 28-day window if no specific timeframe is requested
    • Format and present the query results clearly to answer the user's question
    • Track progress of your kusto analysis using todos
    • If kusto queries keep failing (up to 3 repeated attempts of fixing parameters or queries), stop and inform the user.

Kusto Best Practices

Read the full file on GitHub · 51 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 51 lines · 17 tokens per session scan A 4a2cc32f3d6f

Subscribe to this mod's changes

Data is an agent published in the GitHub repository microsoft/vscode (190,061 stars, last pushed yesterday), licensed MIT. It adds 17 tokens to every session and 798 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.