ts: Instructions file for Codex

AGENTS.md

ts AGENTS.md is an instructions file for Codex, OpenCode from agentproto/ts. It costs 5,245 tokens per session, scanned A, original, Apache-2.0.

Repository instructions that define how coding-agent sessions should work in agentproto/ts. They describe the checks an agent must complete and distinguish these instructions from other agent configuration files.

In plain words
What is it for?
Use them when working in agentproto/ts to understand session responsibilities, local gates, pull-request expectations, and the difference between related AGENT.md files.
Why use it?
They give agents a shared definition of done and clarify which rules apply to the coding session, reducing confusion about required checks and review steps.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: built for gbrain.

This is agentproto/ts's own configuration. It tells Codex and OpenCode how to work on ts 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 ts configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/agentproto/ts/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/agentproto/ts

Made for: Codex, OpenCode.

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 ts AGENTS.md

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

agentmods 80×15 button for ts AGENTS.md

Your own site · 80×15
<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>
Per session 5,245 This file is loaded in full into every session.
When invoked 5,245 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.05245 $0.05245
Opus 5.5 $0.02098 $0.02098
Sonnet 5.5 $0.01049 $0.01049
Haiku 4.5 $0.00524 $0.00524

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

Security

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.

AGENTS.md · 323 lines

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.

  1. Green gate. Run this repo's own gate before calling anything done: agentproto.json declares scripts.test as pnpm test (agentproto.json:7, itself pnpm -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 -30 reports tail'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:

Read the full file on GitHub · 323 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. 15d ago Changed · +36 lines · +666 tokens per session 573a1e54cd5b
  2. 20d ago Changed · +18 lines · +282 tokens per session 90180e325a34
  3. 28d ago Changed · +13 lines · +215 tokens per session 99cfc6aed59b
  4. 1mo ago Changed · +11 lines · +300 tokens per session 9feca72f5e1e
  5. 1mo ago Changed · +1 lines · +9 tokens per session 90d8bee13cff
  6. 1mo ago Changed · +6 lines · +118 tokens per session 295ae471e950
  7. 1mo ago Changed · +9 lines · +153 tokens per session bbe48626e12c
  8. 2mo ago First seen · 229 lines · 3,502 tokens per session scan A 76d8aaca2f8d

Subscribe to this mod's changes

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.

Related

ts AGENTS.md compared with instructions from other repositories

ts AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ts AGENTS.mdagentproto/tsInstructions file9yesterdayApache-2.0A5,245Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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