agentpantry AGENTS.md

agentpantry AGENTS.md is an instructions file for Codex, OpenCode from escoffier-labs/agentpantry. It costs 1,257 tokens per session, scanned A, original, MIT.

Repository instructions for agentpantry, a Go command-line program that securely syncs browser cookies and named secrets between two machines.

In plain words
What is it for?
Use it when changing agentpantry, especially for security-related code. It lists required build, test, lint, vulnerability, platform, and fuzz checks.
Why use it?
It records the project's rules, security requirements, completion checks, and code layout so changes can be reviewed and tested consistently.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/escoffier-labs/agentpantry/agents-md
Clone the repo
git clone --depth 1 https://github.com/escoffier-labs/agentpantry

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/escoffier-labs/agentpantry/agents-md.svg)](https://agentmods.dev/instructions/escoffier-labs/agentpantry/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/escoffier-labs/agentpantry/agents-md"><img src="https://agentmods.dev/badge/instructions/escoffier-labs/agentpantry/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,257 This file is loaded in full into every session.
When invoked 1,257 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.01257 $0.01257
Opus 5 $0.00629 $0.00629
Sonnet 5 $0.00251 $0.00251
Haiku 4.5 $0.00126 $0.00126

Measured 5d ago against content hash 80e1d7b259d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

agentpantry 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 5d 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 · 49 lines

How it starts

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

Repository Guidance

Go 1.25 single-module CLI (agentpantry) that syncs browser cookies and named secrets from a daily-driver machine (source role) to an agent machine (sink role) over an encrypted byte stream. Single binary, role chosen by subcommand. Default branch is master.

Definition of Done

Before reporting ANY change complete, run this and confirm it passes:

./scripts/verify

It runs make build, go vet ./..., and go test ./... (includes test/ integration tests).

Conditional gates not covered by the script:

  • make windows if you touched anything near a _windows.go / _other.go pair (cmd/agentpantry/, internal/wincrypto)
  • For security-relevant changes (parsers, framing, filesystem writes, cookie decoding): make gosec, make vuln, and the matching fuzz target, e.g. make fuzz PKG=./internal/transport FUZZ=FuzzOpen. Fuzz targets exist in internal/{transport,surface,wire,vault,wincrypto,policy}.

Report actual command results. If anything fails, quote the failure verbatim and do not claim success. CI additionally runs go test -race ./... on Linux and Windows, golangci-lint, govulncheck, and gosec; do not assume local green covers those.

Code Map

  • Entry point: cmd/agentpantry/main.go. All logic under internal/: source, sink, transport (handshake, AES-256-GCM framing, replay counters), cookie, vault/cdpvault/ffvault/wincrypto (per-browser decryption), policy, surface (sink outputs), secret/secretsrc, config, doctor, keyfile, service, state, wire.
  • Cross-package integration tests: test/. Copyable configs: examples/. Threat model: docs/threat-model.md.
  • make package is the full release gate (test, vet, gosec, vuln, multi-platform build into dist/).

Rules

  • Stating a command, flag, or API behavior? Verify it in the code or Makefile first. If you cannot find it, say so. Never invent it.
  • Blocked by sandboxing, missing tool, auth, or network? Stop and report the exact blocker and the command that failed. Do not silently work around it or substitute a weaker check.
  • A test, fuzz target, lint rule, or CI gate fails? Fix the code. Never weaken, skip, delete, or t.Skip it to get green. If you believe the test itself is wrong, say so and wait for confirmation.
  • Touching internal/transport/handshake.go? Keep both salt-direction paths working: --stdio mode inverts who issues the handshake salt (sink sends it over TCP, source sends it over stdio). Add or update tests for both.
  • Changing user-facing flow, surfaces, or doctor checks? Update the README claims to match, and bump CHANGELOG.md for releases.
  • Staging files? Run git status first. psk.key, config.toml, the root agentpantry binary, dist/, memory/, and .brigade/ are gitignored on purpose. Never commit keys, configs, or runtime state, and never use git add -f on ignored paths.
  • Pushing? Never. Do not push unless the user explicitly asks, and never with --no-verify if a pre-push hook exists.

Read the full file on GitHub · 49 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. 5d ago First seen · 49 lines · 1,257 tokens per session scan A 80e1d7b259d9

Subscribe to this mod's changes

agentpantry AGENTS.md is an instructions file published in the GitHub repository escoffier-labs/agentpantry (2 stars, last pushed 5d ago), licensed MIT. It adds 1,257 tokens to every session, about $0.0063 per session on Opus 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.