Agents-for-js: Instructions file for Claude Code

CLAUDE.md

Agents-for-js CLAUDE.md is an instructions file for Claude Code from microsoft/Agents-for-js. It costs 2,991 tokens per session, scanned A, original, MIT.

Repository instructions for Microsoft's JavaScript and TypeScript SDK for building conversational agents across products such as Teams and Microsoft 365. They explain the project layout, its packages, and its npm-workspaces monorepo, which is one repository containing multiple related packages.

In plain words
What is it for?
Use them when changing core agent hosting, activity handling, dialogs, authentication, state management, or platform integrations in this repository.
Why use it?
They help a coding agent understand where code belongs and how the interconnected packages and tests are organised.

Instructions file for Claude Code ✓ vendor

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is microsoft/Agents-for-js's own configuration. It tells Claude Code how to work on Agents-for-js 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 Agents-for-js configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { Errors } from '../errorHelper' // adjust relative path per package.

About the project

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.

microsoft/Agents-for-js · 92 stars · on GitHub

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/microsoft/Agents-for-js/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/microsoft/Agents-for-js

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 Agents-for-js CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/microsoft/agents-for-js/claude-md/github.svg)](https://agentmods.dev/instructions/microsoft/agents-for-js/claude-md)
Your own site
<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.

agentmods 80×15 button for Agents-for-js CLAUDE.md

Your own site · 80×15
<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>
Per session 2,991 This file is loaded in full into every session.
When invoked 2,991 The same file — it is already loaded in full.
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.02991 $0.02991
Opus 5.5 $0.01196 $0.01196
Sonnet 5.5 $0.00598 $0.00598
Haiku 4.5 $0.00299 $0.00299

Measured 8d ago against content hash f28e265c2ba6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

CLAUDE.md · 278 lines

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.

Read the full file on GitHub · 278 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. 8d ago Changed · +17 lines · +363 tokens per session f28e265c2ba6
  2. 1mo ago Changed · +8 tokens per session c1b0bcdfeb2d
  3. 1mo ago Changed · -6 lines · -7 tokens per session 00f97a5bf46c
  4. 2mo ago First seen · 267 lines · 2,627 tokens per session scan A 85ee61367b82

Subscribe to this mod's changes

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.

Related

Agents-for-js CLAUDE.md compared with instructions from other repositories

Agents-for-js CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Agents-for-js CLAUDE.mdmicrosoft/Agents-for-jsInstructions file92yesterdayMITA2,991Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode