plumb: Instructions file for Codex

AGENTS.md

plumb AGENTS.md is an instructions file for Codex, OpenCode from plumbkit/plumb. It costs 1,858 tokens per session, scanned A, original, MIT.

Repository instructions for Plumb, a codebase whose tools manage file access, tasks, diagnostics, and session tracking.

In plain words
What is it for?
They are for editing the correct source file, starting sessions, protecting against concurrent edits, using configured task runners, and checking project versions and changes.
Why use it?
They define how contributors should work safely with Plumb's tools and prevent changes from bypassing its safeguards.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/plumbkit/plumb/agents-md"><img src="https://agentmods.dev/badge/instructions/plumbkit/plumb/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,858 This file is loaded in full into every session.
When invoked 1,858 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.01858 $0.01858
Opus 5.5 $0.00743 $0.00743
Sonnet 5.5 $0.00372 $0.00372
Haiku 4.5 $0.00186 $0.00186

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

Security

Grade A, and why

plumb 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 22d 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 · 89 lines

How it starts

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

Plumb — Agent Instructions

Source of truth: edit AGENTS.md only. CLAUDE.md and GEMINI.md are relative symlinks to it; never edit, replace, or unlink those paths.

This is the always-loaded engineering contract for the public Plumb codebase. Keep rules here and reference detail in docs/; make check-brief enforces the budget.

Working contract

  • Use Plumb's lane. When Plumb exposes a capability, use its MCP tool instead of native file, search, shell, or Git tools. Native tools bypass Plumb's concurrency guards, diagnostics, and session tracking. Exceptions are capabilities Plumb does not cover and read-only commodity tools hidden by a lean profile.
  • Bootstrap and guard writes. Call session_start first, passing a stable per-agent session_id (on Claude Code the identity hook supplies it and stamps every later call; a session_id alone identifies only that call). After read_file, use Plumb edits and pass its mtime or sha256 as expected_mtime or expected_sha when a concurrent writer may intervene. Prefer configured run_task slots over raw build/test/lint commands.
  • Trust live descriptions. Tool behaviour and schemas come from tools/list; session_start supplies client-specific guidance. This brief is orientation, not a second tool reference.
  • Avoid version drift. Read VERSION and CHANGELOG.md for the current version.

Purpose and invariants

Plumb gives coding agents an IDE intelligence layer over MCP: LSP semantics, a tree-sitter topology index, project memory, and a complete safe-filesystem toolkit. plumb serve is a resilient stdio proxy in front of a shared daemon.

  1. LSP-correct semantics. Writes notify language servers through workspace/didChangeWatchedFiles; capabilities are negotiated, including server-initiated registration.
  2. Concurrency-safe durability. Write tools use per-path locks, optimistic checks, atomic rename, and the shared durable-write path.
  3. Per-session isolation. Read tracking, rate limits, and caches belong to a connection or declared agent, never accidental process globals.
  4. Configurable safety. Compiled defaults, global config, project config, and environment overrides resolve with explicit provenance.

Read the full file on GitHub · 89 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. 22d ago Changed a53af3604952
  2. 24d ago Changed · +30 tokens per session d4a729c85c37
  3. 25d ago Changed 3f8a893aa51c
  4. 29d ago Changed e3f671ccba1c
  5. 1mo ago Changed · +16 tokens per session a4e13f8b0672
  6. 1mo ago Changed · +9 tokens per session 49385f9928bc
  7. 1mo ago Changed · +19 tokens per session 7c99662df140
  8. 2mo ago First seen · 89 lines · 1,784 tokens per session scan A f2a4ee88657b

Subscribe to this mod's changes

plumb AGENTS.md is an instructions file published in the GitHub repository plumbkit/plumb (4 stars, last pushed 5d ago), licensed MIT. It adds 1,858 tokens to every session, about $0.0074 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

plumb AGENTS.md compared with instructions from other repositories

plumb AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
plumb AGENTS.mdplumbkit/plumbInstructions file45d agoMITA1,858Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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