saasmail: Instructions file for Codex

AGENTS.md

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

Repository instructions for saasmail, a self-hosted email server running on Cloudflare Workers.

In plain words
What is it for?
Use them when contributing to saasmail, reading its product or contributor documentation, running checks, handling database changes, or preparing a pull request.
Why use it?
They map the important documentation and spell out the package, formatting, type-checking, unit-test, and end-to-end test requirements.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/choyiny/saasmail/agents-md"><img src="https://agentmods.dev/badge/instructions/choyiny/saasmail/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,843 This file is loaded in full into every session.
When invoked 1,843 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.01843 $0.01843
Opus 5.5 $0.00737 $0.00737
Sonnet 5.5 $0.00369 $0.00369
Haiku 4.5 $0.00184 $0.00184

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

Security

Grade A, and why

saasmail 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 17d 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 · 90 lines

How it starts

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

Agent / contributor notes

Conventions for coding agents (and humans) working in this repo. Product docs live in docs/; licensing and human contribution flow in CONTRIBUTING.md; Claude Code skills in CLAUDE.md.

Doc map

Doc Use for
README.md Project overview, quickstart, feature index
docs/ Setup, configuration, architecture, per-feature docs
docs/development.md Local dev commands, seeding, OpenAPI, E2E
CONTRIBUTING.md Fork/PR process, Apache 2.0, CoC
migrations/README.md drizzle-kit generate / apply details
.github/pull_request_template.md PR checklist maintainers expect (not a CI enforcer)

Docs pages are cross-linked and each carries a breadcrumb back to docs/README.md — add new product documentation as a page there and link it from the index rather than growing README.md.

Tooling

  • Use yarn, not npm (yarn install --frozen-lockfile in CI).
  • Format: yarn format before push. Husky runs lint-staged → Prettier on staged *.{js,jsx,ts,tsx,json,css,md,html} at commit; CI runs full-tree yarn format:check (so husky alone is not enough if you skip staging a dirty file).
  • Typecheck: yarn tsc -b. The root tsconfig.json has "files": [] and only references tsconfig.app.json, so yarn tsc --noEmit checks no files and always passes. CI runs yarn tsc -b, and main has zero errors.
  • Installer: yarn saasmail install / status (scripts/saasmail/, docs/setup.md); its tests run in yarn test (own Node vitest config) and yarn typecheck:cli type-checks it.
  • Unit tests: yarn test (runs the installer's tests, then vitest run --config vitest.config.test.ts — bare vitest run hits the wrong pool config and fails to start).
  • E2E: yarn test:e2e (Playwright; wipes local D1 — re-seed with yarn db:seed:dev afterward). Needs DEMO_MODE=1 + DISABLE_PASSKEY_GATE=true in .dev.vars, and http://localhost:8788 in TRUSTED_ORIGINS (in wrangler.jsonc, or .dev.vars when the installer generated it) (see .dev.vars.example / wrangler.jsonc.example and docs/development.md).

Read the full file on GitHub · 90 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. 17d ago Changed · -11 tokens per session b2ebb94f6724
  2. 19d ago Changed · +1 lines · +81 tokens per session 420b97fe25d6
  3. 21d ago Changed · +95 tokens per session 99719bbda930
  4. 2mo ago Changed · +6 lines · +130 tokens per session 499b8ad30bda
  5. 2mo ago First seen · 83 lines · 1,548 tokens per session scan A bd13a5349d3f

Subscribe to this mod's changes

saasmail AGENTS.md is an instructions file published in the GitHub repository choyiny/saasmail (274 stars, last pushed 4d ago), licensed Apache-2.0. It adds 1,843 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-30.

Related

saasmail AGENTS.md compared with instructions from other repositories

saasmail AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
saasmail AGENTS.mdchoyiny/saasmailInstructions file2744d agoApache-2.0A1,843Codex, OpenCode
plan-forge dapr.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA4,975GitHub Copilot
plan-forge database.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA1,890GitHub Copilot
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