vscode: Agent for Claude Code

.github/agents/data.md

Data is an agent for Claude Code from microsoft/vscode. It costs 17 tokens per session (888 once invoked), scanned A, original, MIT.

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 for Claude Code ✓ vendor

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: Copilot chat-mode frontmatter (tools: vscode/*).

This is microsoft/vscode's own configuration. It tells Claude Code how to work on vscode itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything vscode configures →

About the project

Visual Studio Code is a code editor that supports editing, navigating, understanding, debugging, and extending software projects. Developers use it for the edit-build-debug cycle, and the catalogue add-ons provide skills, instructions, and agents for working within the editor.

microsoft/vscode · 195,911 stars · on GitHub · code.visualstudio.com

Reuse

Borrowing it

Nothing to install: this file belongs to microsoft/vscode. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/microsoft/vscode/main/.github/agents/data.md
Clone the repo
git clone --depth 1 https://github.com/microsoft/vscode

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Data

README.md
[![agentmods](https://agentmods.dev/badge/agents/microsoft/vscode/data/github.svg)](https://agentmods.dev/agents/microsoft/vscode/data)
Your own site
<a href="https://agentmods.dev/agents/microsoft/vscode/data"><img src="https://agentmods.dev/badge/agents/microsoft/vscode/data/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Data

Your own site · 80×15
<a href="https://agentmods.dev/agents/microsoft/vscode/data"><img src="https://agentmods.dev/badge/agents/microsoft/vscode/data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 888 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00017 $0.00888
Opus 5.5 $0.00007 $0.00355
Sonnet 5.5 $0.00003 $0.00178
Haiku 4.5 $0.00002 $0.00089

Measured 27d ago against content hash 69f1b403302e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 27d ago.

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, 16 lines differ
.github/agents/data.md · 55 lines

How it starts

The opening of the file, as written. The whole thing — 55 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 pnpm 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 · 55 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. 27d ago Changed · +4 lines 69f1b403302e
  2. 28d ago Changed e60ddb20883a
  3. 2mo ago Changed 35d10fab8450
  4. 3mo ago 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 (195,911 stars, last pushed today), licensed MIT. It adds 17 tokens to every session and 888 once invoked, about $0.0001 per session on Opus 5.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.

Related

Data compared with agents from other repositories

Data next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Datamicrosoft/vscodeAgent196ktodayMITA17Claude Code
playwright-test-generatormicrosoft/playwrightAgent101ktodayApache-2.0A151Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code
Pimcore Expertgithub/awesome-copilotAgent42ktodayMITA26Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent42ktodayMITA11Claude Code
WinForms Expertgithub/awesome-copilotAgent42ktodayMITA19Claude Code
azure-iac-exportergithub/awesome-copilotAgent42ktodayMITA70Claude Code