matcha: Instructions file for Claude Code

AGENTS.md

matcha AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from plumpslabs/matcha. It costs 3,245 tokens per session, scanned C, original, MIT.

An AGENTS.md instruction file for Matcha, an engineering approach for AI coding agents.

In plain words
What is it for?
Guiding coding work in the Matcha project and deciding when to stop, test, fix failures, or record deliberate shortcuts.
Why use it?
It gives the agent checkpoints for understanding the purpose, reusing code, implementing, cleaning up, verifying, and reviewing changes.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: PreToolUse hook event, but also the file is AGENTS.md. Also seen: mentions Claude Code; built for cline; mentions OpenCode.

This is plumpslabs/matcha's own configuration. It tells Claude Code, Codex and OpenCode how to work on matcha 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 matcha configures โ†’

Reuse

Borrowing it

Nothing to install: this file belongs to plumpslabs/matcha. 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/plumpslabs/matcha/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/plumpslabs/matcha

Made for: Claude Code, 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 matcha AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/plumpslabs/matcha/agents-md/github.svg)](https://agentmods.dev/instructions/plumpslabs/matcha/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/plumpslabs/matcha/agents-md"><img src="https://agentmods.dev/badge/instructions/plumpslabs/matcha/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 matcha AGENTS.md

Your own site ยท 80ร—15
<a href="https://agentmods.dev/instructions/plumpslabs/matcha/agents-md"><img src="https://agentmods.dev/badge/instructions/plumpslabs/matcha/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,245 This file is loaded in full into every session.
When invoked 3,245 The same file โ€” it is already loaded in full.
Security scan C 1 finding. 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.03245 $0.03245
Opus 5.5 $0.01298 $0.01298
Sonnet 5.5 $0.00649 $0.00649
Haiku 4.5 $0.00325 $0.00325

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

Security

Grade C, and why

matcha AGENTS.md scanned grade C with 1 finding 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 11d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **Shield Protection Active:** Command execution is guarded by `matcha-shield.js` and MCP tools (`matcha_shield_check`, `matcha_post_write_scan`). Destructive commands (`rm -rf /`, `git push --force`, `git reset --hard`
AGENTS.md ยท 143 lines

How it starts

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

๐Ÿต matcha โ€” Core AI Directives

Simple. Efficient. Deliberate. Never twice.

Engineering philosophy for AI coding agents. Enforces deliberate, modular, and scalable thinking before, during, and after implementation.

<matcha_balance>

๐Ÿงญ The Matcha Balance: Scalable & Modular, Not Golfed (Anti-Overengineering)

  • Deliberate over Extreme Brevity: Matcha rejects code-golfing and artificial brevity. Do NOT write code that is as short as possible at the expense of readability, types, explicit error handling, modularity, or scalability. Terseness that creates brittle, hard-to-maintain code is technical debt. Build production-ready, clean, scalable code based on project conventions (MATCHA_PROJECT.md).
  • Anti-Overengineering: Simplicity and efficiency are non-negotiable. Do NOT invent speculative abstractions, premature generalizations, or complex design patterns for simple problems. Never write 50-line plans for 2-line fixes.
  • Proportionality Anchor: Match ceremony to reality:
    • ๐ŸŸข Trivial (โ‰ค5 LOC, 1 file, no logic): Fast pass. Implement directly, verify with existing tests, no ceremonial overhead.
    • ๐ŸŸก Standard / Feature (1-5 files): Modular, clean architecture, typed, test coverage.
    • ๐Ÿ”ด Large / High Blast Radius (Cross-cutting, Auth, DB, Crypto): Full Intent Discovery, threat model, review gate. </matcha_balance>

<execution_filter>

The 6-Checkpoint Filter

๐ŸŽฏ Purpose โ†’ ๐Ÿ”Ž Reuse โ†’ ๐Ÿ” Stack โ†’ ๐Ÿ› ๏ธ Implementation โ†’ ๐Ÿงน Cleanup โ†’ โœ… Verify โ†’ ๐Ÿ”’ Review

# Checkpoint Rule
๐ŸŽฏ Purpose + Reuse Intent Discovery with evidence (file:line, metrics). Can't answer Why/How? โ†’ STOP unless trivial (โ‰ค5 LOC, 1 file, no logic) โ€” then proceed on a recorded assumption. Search codebase first (src/, lib/, pkg/, app/). Never duplicate.
๐Ÿ” Stack Scan manifests (package.json, Cargo.toml, go.mod, etc.) for service overlap.
๐Ÿ› ๏ธ Implementation No hardcode. Explicit errors. One function = one responsibility. Simpler path? โ†’ Use it. Deliberate-choice comments โ†’ // matcha: marker at write time (not cleanup).
๐Ÿงน Cleanup Done = working AND clean. Mark deliberate shortcuts with // matcha: [reason] โ€” standard format + English only.
โœ… Verify Run empirical test/build command. Fail? โ†’ STOP and fix immediately.
๐Ÿ”’ Review Risk-tiered gate. L0/L1 async (non-blocking, verdict lands in background); L2/L3 blocking until PASS / EXPERT_REQUIRED. Catch bugs, performance, security, architecture. Nothing ships without PASS.
</execution_filter>

Read the full file on GitHub ยท 143 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. 11d ago Changed ยท +11 tokens per session 74c7234e1eb3
  2. 22d ago Changed ยท +7 lines ยท +302 tokens per session 8654dfd1cfd2
  3. 1mo ago Changed ยท +10 lines ยท +315 tokens per session 4becf00b9bb7
  4. 1mo ago Changed ยท +38 lines ยท +747 tokens per session f28f1a1629e0
  5. 1mo ago First seen ยท 88 lines ยท 1,870 tokens per session scan C 32d9a0bfcb1b

Subscribe to this mod's changes

matcha AGENTS.md is an instructions file published in the GitHub repository plumpslabs/matcha (2 stars, last pushed 5d ago), licensed MIT. It adds 3,245 tokens to every session, about $0.0130 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode ยท 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js ยท 7,581 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode ยท 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain ยท 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode ยท 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno ยท 3,077 tokens