mailroom AGENTS.md

mailroom AGENTS.md is an instructions file for Codex, OpenCode from iannuttall/mailroom. It costs 1,620 tokens per session, scanned A, original, Apache-2.0.

A set of instructions for Mailroom, a private Cloudflare email service with a command-line tool, TypeScript library, and MCP server. It explains the public package, repository layout, documentation rules, and architecture constraints.

In plain words
What is it for?
Use it when developing Mailroom, writing its documentation or command help, or making architecture decisions. It identifies the public interfaces, required runtime version, and repository structure.
Why use it?
Mailroom contains several internal components but exposes a specific public package contract. These instructions help agents avoid documenting or publishing private packages by mistake.

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/iannuttall/mailroom/agents-md
Clone the repo
git clone --depth 1 https://github.com/iannuttall/mailroom

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/iannuttall/mailroom/agents-md.svg)](https://agentmods.dev/instructions/iannuttall/mailroom/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/iannuttall/mailroom/agents-md"><img src="https://agentmods.dev/badge/instructions/iannuttall/mailroom/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,620 This file is loaded in full into every session.
When invoked 1,620 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 $0.01620 $0.01620
Opus 5 $0.00810 $0.00810
Sonnet 5 $0.00324 $0.00324
Haiku 4.5 $0.00162 $0.00162

Measured 4d ago against content hash eedbdeb62c2b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mailroom 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 4d 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 · 194 lines

How it starts

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

Agent notes

This repository contains Mailroom, a private Cloudflare email service, global CLI, TypeScript library, router skill, and stdio MCP server. The public repository is iannuttall/mailroom. The public npm package is @iannuttall/mailroom.

Read PRODUCT.md before making product-shape decisions. Read CONTENT.md before writing user-facing copy, command help, MCP descriptions, or documentation.

CLAUDE.md must remain a symlink to this file.

Public package contract

The repository is a monorepo internally, but users install one package.

@iannuttall/mailroom       TypeScript API
@iannuttall/mailroom/mcp   stdio MCP server API
bin: mailroom              executable CLI
skills/mailroom            router skill
prompts                    automation prompts
config                     safe example configuration

Internal workspace packages are private. Do not publish or teach @mailroom/core, @mailroom/cli, or @mailroom/mcp.

Node 22.19 or newer is required for the public package. The runtime Workers are configured separately under apps/.

Repository map

  • packages/core: schemas, operation registry, API client, parsing helpers, routing, search documents, automation configuration, and shared types.
  • packages/cli: the mailroom command, Keychain-backed auth, curated help, and human output.
  • packages/mcp: a stdio MCP server exposing compact list, describe, and run tools.
  • apps/worker: central Email Service handler, private API, D1, R2, AI Search, Telegram, and outbound mail.
  • apps/ingress: small cross-account relay for signed inbound and outbound delivery.
  • prompts: versioned Markdown instructions used by optional automation.
  • config: non-secret automation examples.
  • migrations: D1 migrations owned by the central Worker.
  • skills/mailroom/SKILL.md: one router skill for discovery.
  • docs/index.md: public documentation map and setup order.
  • docs/deploy.md: central and cross-account Cloudflare deployment.
  • docs/configuration.md: bindings, variables, secrets, and credential boundaries.
  • docs/gmail.md: Gmail forwarding, Send As, SMTP, and Sent synchronization.
  • docs/testing.md: phased installation acceptance tests.
  • docs/migration.md: MX cutover and rollback.
  • docs/troubleshooting.md: evidence-first setup diagnosis.
  • docs/agents.md: agent and browser-assisted installation runbook.

Read the full file on GitHub · 194 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. 4d ago First seen · 194 lines · 1,620 tokens per session scan A eedbdeb62c2b

Subscribe to this mod's changes

mailroom AGENTS.md is an instructions file published in the GitHub repository iannuttall/mailroom (15 stars, last pushed 3d ago), licensed Apache-2.0. It adds 1,620 tokens to every session, about $0.0081 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-30.