agent-framework-js: Instructions file for Claude Code

CLAUDE.md

agent-framework-js CLAUDE.md is an instructions file for Claude Code from polymind-inc/agent-framework-js. It costs 775 tokens per session, scanned A, original, MIT.

A set of instructions for AI coding assistants working on a TypeScript version of Microsoft's Agent Framework programming model.

In plain words
What is it for?
It guides feature development and maintenance in the repository, including checking reference implementations, following naming rules, and preserving data formats.
Why use it?
It prevents changes from accidentally differing from the official .NET, Python, and Go versions or breaking names and serialized data.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is polymind-inc/agent-framework-js's own configuration. It tells Claude Code how to work on agent-framework-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 agent-framework-js configures →

Reuse

Borrowing it

Nothing to install: this file belongs to polymind-inc/agent-framework-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/polymind-inc/agent-framework-js/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/polymind-inc/agent-framework-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 agent-framework-js CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/polymind-inc/agent-framework-js/claude-md/github.svg)](https://agentmods.dev/instructions/polymind-inc/agent-framework-js/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/polymind-inc/agent-framework-js/claude-md"><img src="https://agentmods.dev/badge/instructions/polymind-inc/agent-framework-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 agent-framework-js CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/polymind-inc/agent-framework-js/claude-md"><img src="https://agentmods.dev/badge/instructions/polymind-inc/agent-framework-js/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 775 This file is loaded in full into every session.
When invoked 775 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.00775 $0.00775
Opus 5.5 $0.00310 $0.00310
Sonnet 5.5 $0.00155 $0.00155
Haiku 4.5 $0.00077 $0.00077

Measured 2mo ago against content hash 4e47f58448bd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-framework-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 2mo 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 · 50 lines

How it starts

The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Notes for AI coding assistants

This repository is a TypeScript implementation of the Microsoft Agent Framework programming model, written so that it could be contributed upstream to microsoft/agent-framework. Read CONTRIBUTING.md first — it is the source of truth for how changes are made here. The points below are the ones most often gotten wrong.

Non-negotiable rules

  1. Semantics match the reference implementations exactly. Signatures follow TypeScript idiom; behaviour does not get to. Default values, side effects, folding, loop behaviour, cancellation and serialization must match. When implementations disagree, the order of authority is .NET, then Python, then Go. Read the reference source — never infer behaviour, and never guess.
  2. Use the current (v1.13) naming generation. Agent, AgentSession, Message, Content, AgentResponse. The pre-rename names — ChatAgent, AgentThread, AgentRunResponse, ChatMessage — appear nowhere, including comments and tests.
  3. Do not break the wire format. Serialized properties are camelCase; Content discriminator values are the Python snake_case literals; unrecognized data is preserved and round-tripped.
  4. The core has exactly one runtime dependency, @opentelemetry/api. Schema libraries are accepted through the Standard Schema interface, never depended on. No Node-specific APIs in the core — it has to keep running on Deno, Bun, edge runtimes and in browsers.
  5. API surface changes are grounded in the reference implementations; new features are gated. The public API is no longer frozen, but a change to its surface must be justified by alignment with the reference implementations — name the reference behaviour it matches. Breaking changes are called out in the changelog (during 0.x, minor releases may break). New functionality — a new package, a new API area, workflows — is not built without an explicit request or an issue asking for it; quality, performance and parity work take priority.
  6. Fix bugs reproduction-first. Write a test that fails against the current code, make the fix, then temporarily revert the fix and confirm the test fails again.
  7. Comments are self-contained. They explain the code to a first-time reader. No references to internal design documents, milestone identifiers or decision logs.

Read the full file on GitHub · 50 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. 2mo ago First seen · 50 lines · 775 tokens per session scan A 4e47f58448bd

Subscribe to this mod's changes

agent-framework-js CLAUDE.md is an instructions file published in the GitHub repository polymind-inc/agent-framework-js (6 stars, last pushed 6d ago), licensed MIT. It adds 775 tokens to every session, about $0.0031 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-31.

Related

agent-framework-js CLAUDE.md compared with instructions from other repositories

agent-framework-js CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-framework-js CLAUDE.mdpolymind-inc/agent-framework-jsInstructions file66d agoMITA775Claude Code
agentforge-py copilot-instructions.mdScaffoldic/agentforge-pyInstructions file101mo agoApache-2.0A101GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot