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.
npx agentmods add instructions/d13/vscode-web-components-ai/agents-mdgit clone --depth 1 https://github.com/d13/vscode-web-components-aiWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.01377 | $0.01377 |
| Opus 5 | $0.00688 | $0.00688 |
| Sonnet 5 | $0.00275 | $0.00275 |
| Haiku 4.5 | $0.00138 | $0.00138 |
Grade A, and why
vscode-web-components-ai AGENTS.md 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.
How it starts
The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Guidance for AI-powered coding assistants (Augment Agent Mode, Augment Auggie CLI, Copilot Agent Mode, Claude Code, Cursor, Windsurf, etc.) when working with code in this repository. Read this before writing, editing, or executing anything in this repo.
Project Overview
This is a VS Code extension that provides web component information to AI assistants via Model Context Protocol (MCP). The extension discovers custom elements manifests in workspaces and exposes them through an MCP server with HTTP/SSE transports.
Common Commands
Prerequisites
nvm use- Switch to the correct Node.js versioncorepack enable- Enable corepack for package managerpnpm install- Install dependencies
Development
pnpm run build- Build extension in development modepnpm run bundle- Build extension for productionpnpm run watch- Watch mode for developmentpnpm run clean- Clean build artifacts
Code Quality
pnpm run lint- Run ESLint on TypeScript filespnpm run lint:fix- Run ESLint with auto-fixpnpm run format- Format code with Prettierpnpm run format:check- Check code formatting
Packaging & Publishing
pnpm run package- Create VSIX packagepnpm run package-pre- Create pre-release VSIX packagepnpm run pub- Publish to marketplacepnpm run pub-pre- Publish pre-release to marketplacepnpm run generate:licenses- Generate license files
Architecture Overview
Core Components
Extension Entry Point (src/extension.ts):
- Main activation point that initializes logging, configuration, and container
- Sets up the dependency injection container and registers commands
Container (src/container.ts):
- Dependency injection container managing all services and providers
- Central point for service resolution and lifecycle management
MCP Provider (src/mcp/provider.ts):
- Core MCP server implementation providing web component data
- Serves HTTP and SSE endpoints for AI assistant integration
- Implements MCP tools: search-components, get-component-details, list-all-components
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.
- yesterday First seen · 178 lines · 1,377 tokens per session scan A f3134fa30c79
vscode-web-components-ai AGENTS.md is an instructions file published in the GitHub repository d13/vscode-web-components-ai (11 stars, last pushed 10mo ago), licensed MIT. It adds 1,377 tokens to every session, about $0.0069 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.
Other instructions, from other repositories
vscode-peacock copilot-instructions.md
Instructions for johnpapa/vscode-peacock, covering copilot instructions — peacock, project type, typescript conventions, vs code extension patterns and color handling.
grok-build-vscode CLAUDE.md
Claude Code instructions for phuryn/grok-build-vscode, covering claude.md — grok-build-vscode, status, where the detail lives, build + test and test taxonomy — three layers.
grok-build-vscode AGENTS.md
AGENTS.md instructions for phuryn/grok-build-vscode: Import the repository instructions from CLAUDE.md instead of duplicating them.
awesome-vscode CLAUDE.md
Instructions for viatsko/awesome-vscode, covering claude.md, what this repo is, adding an entry, themes and linting / ci.
vscode-peacock AGENTS.md
Instructions for johnpapa/vscode-peacock, covering peacock — agent guide, project overview, repository structure, tech stack and build & run.
vscode-angular-snippets AGENTS.md
Instructions for johnpapa/vscode-angular-snippets, covering angular snippets for vs code — agent guide, repository structure, tech stack, build & run and test in browser (vscode.dev mode).