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 (831 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 · 193,657 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 831 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.00831
Opus 5.5 $0.00007 $0.00332
Sonnet 5.5 $0.00003 $0.00166
Haiku 4.5 $0.00002 $0.00083

Measured 27d ago against content hash 35d10fab8450, 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, 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. 27d ago Changed 35d10fab8450
  2. 1mo 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 (193,657 stars, last pushed today), licensed MIT. It adds 17 tokens to every session and 831 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

Other agents, from other repositories

performance-optimizer

Full-Stack Performance Architect. Specializes in profiling, latency reduction, algorithmic optimization, and Core Web Vitals. Operates on the principle of "Evidence over Intuition.".

DDS-Solutions/AI-TadPole-OS · 40 tokens

testing-engineer

Testing specialist for Rust and TypeScript projects focused on comprehensive test coverage, test infrastructure, and quality assurance. Applies the project's language rules from the stack profile. Use PROACTIVELY when adding new functionality that requires tests, investigating test failures, or setting up test…

bug-ops/claude-plugins · 131 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens