claude-code-plugins: Instructions file for Codex

AGENTS.md

claude-code-plugins AGENTS.md is an instructions file for Codex, OpenCode from lestrrat-ai/claude-code-plugins. It costs 4,022 tokens per session, scanned A, original, MIT.

Repository instructions for the claude-code-plugins project, covering how its plug-ins and agent instructions should be used with Claude Code and Codex.

In plain words
What is it for?
Use them when developing or reviewing this repository’s plug-ins, especially work involving compatibility, run leases, heartbeats, adoption, and refresh behavior.
Why use it?
They provide project-specific rules that may not be obvious from the source files, including how to treat its single-user workflows.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

This is lestrrat-ai/claude-code-plugins's own configuration. It tells Codex and OpenCode how to work on claude-code-plugins 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 claude-code-plugins configures →

Runs only inside a plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else, and the catalogue could not identify which plugin ships it.

Reuse

Borrowing it

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

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 claude-code-plugins AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/lestrrat-ai/claude-code-plugins/agents-md"><img src="https://agentmods.dev/badge/instructions/lestrrat-ai/claude-code-plugins/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,022 This file is loaded in full into every session.
When invoked 4,022 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.04022 $0.04022
Opus 5.5 $0.01609 $0.01609
Sonnet 5.5 $0.00804 $0.00804
Haiku 4.5 $0.00402 $0.00402

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

Security

Grade A, and why

claude-code-plugins 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 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.

AGENTS.md · 222 lines

How it starts

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

claude-code-plugins

This repo authors the agent instructions: plugins/** defines the skills that may be driving the current session. The skills actually running in a session are the installed copies, not the working tree. The consequences below are all non-obvious:

This is a SINGLE-USER, advisory workflow — calibrate severity to that

The gauntlet campaign, its lease, its heartbeat / adoption / refresh machinery, and these plugin skills serve ONE user driving their own runs. Do NOT chase airtight consistency or distributed-systems-grade correctness in the heartbeat / lease / adoption / refresh paths. A momentary inconsistency the single user creates is one the single user notices and resolves — an ACCEPTED RESIDUAL, not a gating defect. (The user's stated policy.)

  • The lease is advisory and LOOSE by design. Its heartbeat-proof precondition gates the FIRST acquire — taking a run; an owner's refresh — including refresh of its own STALE lease — is not required to re-present proof. Findings of the form "a stale/matching refresh revives a run without re-proof", "two agents could briefly both drive one run", or "heartbeat/adoption/refresh could be made more consistent/airtight" are accepted residuals, NOT defects — the tool never promised otherwise.
  • Calibrate finding severity to what the artifact IS. A same-machine, single-user skill helper is not a web server facing millions of hostile requests. A guard being incomplete against an input only the one user could hand-edit into their own git-ignored state (e.g. a 1e99999 float in their own lease.json) is not, by itself, a defect — the user shooting their own foot is the user's call. Document the boundary; do not build machinery to defend against the single user.
  • This does NOT lower the bar on REAL guarantees. Fail-closed on malformed input, refusing a non-owner's destructive op, and accurate agent-consumed docs still gate. The line is: "a real guarantee is broken" gates; "consistency could be more airtight for the one user" is an accepted residual. When a review keeps generating true-but-that-kind-of finding, it is over-reaching on scope, not finding defects — bound the intent (repair-pass.md, REPAIR-INTENT) rather than fixing them.

Read the full file on GitHub · 222 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 · 222 lines · 4,022 tokens per session scan A 82883d9429f7

Subscribe to this mod's changes

claude-code-plugins AGENTS.md is an instructions file published in the GitHub repository lestrrat-ai/claude-code-plugins (20 stars, last pushed 1mo ago), licensed MIT. It adds 4,022 tokens to every session, about $0.0161 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

claude-code-plugins AGENTS.md compared with instructions from other repositories

claude-code-plugins AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
claude-code-plugins AGENTS.mdlestrrat-ai/claude-code-pluginsInstructions file201mo agoMITA4,022Codex, OpenCode
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
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot