Borrowing it
Nothing to install: this file belongs to agentproto/ts. 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/agentproto/ts/main/AGENTS.mdgit clone --depth 1 https://github.com/agentproto/tsWrote 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/agentproto/ts/agents-md)<a href="https://agentmods.dev/instructions/agentproto/ts/agents-md"><img src="https://agentmods.dev/badge/instructions/agentproto/ts/agents-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/agentproto/ts/agents-md"><img src="https://agentmods.dev/badge/instructions/agentproto/ts/agents-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.05245 | $0.05245 |
| Opus 5.5 | $0.02098 | $0.02098 |
| Sonnet 5.5 | $0.01049 | $0.01049 |
| Haiku 4.5 | $0.00524 | $0.00524 |
Grade A, and why
ts 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 15d 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 — 323 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent instructions for this repo
This file is the committed definition of done for any agent session working
in agentproto/ts — local or delegated, human-prompted or supervisor-run.
If you're an agent reading this from a prompt instead of loading it, stop:
load this file first, it overrides ad-hoc instructions.
Not to be confused with: an AIP-42 agent manifest (also named AGENT.md,
singular, loaded from <workspace>/.agents/<id>/AGENT.md —
packages/agent/src/load-agent.ts:11), or .github/AGENT.md, the cloud
reviewer/fixer harness that runs on every PR — see that file for what it
does; this file is about what you (the session driving the work) must do
before and around it.
Reach: this is a convention, not enforcement. It binds local and
delegated coding sessions that load it — nothing in the daemon reads it, and
the cloud reviewer doesn't either (it runs on .github/AGENT.md + the
aip-conventions skill from .github/agentic-review.json). Loading this
file is still on the session; it doesn't reach in and gate anything by
itself.
Definition of done for agent sessions
Done = a green local gate + an open PR. That is the terminal state for an
agent session — the handoff, not a request for permission. Your rung ends
there; review, risk-judgement, escalation, and merge are the CI plane's job,
already declared in .github/agentic-review.json + .github/workflows/ci.yml.
Each rung has exactly one owner — don't reach into the next one.
-
Green gate. Run this repo's own gate before calling anything done:
agentproto.jsondeclaresscripts.testaspnpm test(agentproto.json:7, itselfpnpm -r --filter "./packages/**" --filter "./adapters/**" test,package.json:19). Don't invent your own bar.Read the gate's exit code, not its output.
pnpm test | tail -30reportstail's exit status, not the test run's — a pipeline exits with its LAST command's status, so a red gate reads as exit 0 and you will report a passing gate that failed.${PIPESTATUS[0]}does not rescue it either: that's bash, and this repo's sessions run zsh, where it's$pipestatus[1]and the bash spelling silently expands to empty. Redirect and check$?directly:
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.
- 15d ago Changed · +36 lines · +666 tokens per session 573a1e54cd5b
- 20d ago Changed · +18 lines · +282 tokens per session 90180e325a34
- 28d ago Changed · +13 lines · +215 tokens per session 99cfc6aed59b
- 1mo ago Changed · +11 lines · +300 tokens per session 9feca72f5e1e
- 1mo ago Changed · +1 lines · +9 tokens per session 90d8bee13cff
- 1mo ago Changed · +6 lines · +118 tokens per session 295ae471e950
- 1mo ago Changed · +9 lines · +153 tokens per session bbe48626e12c
- 2mo ago First seen · 229 lines · 3,502 tokens per session scan A 76d8aaca2f8d
ts AGENTS.md is an instructions file published in the GitHub repository agentproto/ts (9 stars, last pushed yesterday), licensed Apache-2.0. It adds 5,245 tokens to every session, about $0.0210 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.
ts AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ts AGENTS.mdagentproto/ts | Instructions file | 9 | yesterday | Apache-2.0 | A | 5,245 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | 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 |