Microsoft 365 Agents SDK for JavaScript and TypeScript is a software development kit for building agents that handle conversations and requests across Microsoft 365, Teams, Copilot Studio, Webchat, and selected third-party messaging platforms. Developers use its packages to host agents, validate activity data, add channel features, and connect AI components.
Borrowing it
Nothing to install: this file belongs to microsoft/Agents-for-js. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/microsoft/Agents-for-js/main/CLAUDE.mdgit clone --depth 1 https://github.com/microsoft/Agents-for-jsWrote 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.
[](https://agentmods.dev/instructions/microsoft/agents-for-js/claude-md)<a href="https://agentmods.dev/instructions/microsoft/agents-for-js/claude-md"><img src="https://agentmods.dev/badge/instructions/microsoft/agents-for-js/claude-md/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.
<a href="https://agentmods.dev/instructions/microsoft/agents-for-js/claude-md"><img src="https://agentmods.dev/badge/instructions/microsoft/agents-for-js/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.02991 | $0.02991 |
| Opus 5.5 | $0.01196 | $0.01196 |
| Sonnet 5.5 | $0.00598 | $0.00598 |
| Haiku 4.5 | $0.00299 | $0.00299 |
Grade A, and why
Agents-for-js CLAUDE.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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 278 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
This is the Microsoft 365 Agents SDK for JavaScript/TypeScript (formerly known as BotFramework SDK v5). It provides a comprehensive framework for building enterprise-grade conversational agents that work across M365, Teams, Copilot Studio, Webchat, and other platforms.
The repository is a monorepo using npm workspaces with multiple interconnected packages.
Repository Structure
Core Packages (in packages/)
- agents-activity: Activity protocol types, validators, and schema definitions using Zod. Replaces
botframework-schema. - agents-hosting: Core hosting components including ActivityHandler, TurnContext, CloudAdapter, authentication, and state management. Replaces
botbuilder. - agents-hosting-express: Express.js integration for hosting agents.
- agents-hosting-fastify: Fastify integration for hosting agents.
- agents-hosting-dialogs: Dialog system for building conversational flows. Replaces
botbuilder-dialogs. - agents-hosting-directline-namedpipes: Direct Line transport over named pipes.
- agents-hosting-extensions-msteams: Teams-specific features (TaskModules, Messaging Extensions).
- agents-hosting-extensions-slack: Slack-specific integration and extensions.
- agents-hosting-extensions-teams: Deprecated legacy Teams extension retained for backward compatibility.
- agents-hosting-storage-blob: Azure Blob Storage adapter. Replaces
botbuilder-azure. - agents-hosting-storage-cosmos: CosmosDB storage adapter. Replaces
botbuilder-azure. - agents-copilotstudio-client: Direct-to-Engine client for interacting with Copilot Studio agents.
- agents-telemetry: Shared telemetry instrumentation for Microsoft 365 Agents SDK packages.
Test Agents (in test-agents/)
Sample agents used for internal testing ("samples"). For learning examples, refer to https://github.com/Microsoft/Agents.
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.
- 8d ago Changed · +17 lines · +363 tokens per session f28e265c2ba6
- 1mo ago Changed · +8 tokens per session c1b0bcdfeb2d
- 1mo ago Changed · -6 lines · -7 tokens per session 00f97a5bf46c
- 2mo ago First seen · 267 lines · 2,627 tokens per session scan A 85ee61367b82
Agents-for-js CLAUDE.md is an instructions file published in the GitHub repository microsoft/Agents-for-js (92 stars, last pushed yesterday), licensed MIT. It adds 2,991 tokens to every session, about $0.0120 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.
Agents-for-js CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| Agents-for-js CLAUDE.mdmicrosoft/Agents-for-js | Instructions file | 92 | yesterday | MIT | A | 2,991 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |