campaign-preflight AGENTS.md

campaign-preflight AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from katekruger/campaign-preflight. It costs 4,921 tokens per session, scanned A, original, MIT.

Repository instructions for campaign-preflight, a read-only checker for outbound email campaigns. It documents the project layout, command-line tool, and MCP server, which lets coding agents use external tools.

In plain words
What is it for?
It guides code changes to the repository, including its agent instructions, source files, command-line interface, and MCP interface.
Why use it?
It gives contributors the project rules needed to preserve the approval gate and prevent accidental campaign changes.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: ${CLAUDE_PLUGIN_ROOT} variable, but also the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Installs and runs on its own, but its text points at files inside the plugin that ships it — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed.

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

Made for: Claude Code, 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 campaign-preflight AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/katekruger/campaign-preflight/agents-md.svg)](https://agentmods.dev/instructions/katekruger/campaign-preflight/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/katekruger/campaign-preflight/agents-md"><img src="https://agentmods.dev/badge/instructions/katekruger/campaign-preflight/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,921 This file is loaded in full into every session.
When invoked 4,921 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.04921 $0.04921
Opus 5 $0.02461 $0.02461
Sonnet 5 $0.00984 $0.00984
Haiku 4.5 $0.00492 $0.00492

Measured yesterday against content hash 1be60c993ec0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

campaign-preflight 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 yesterday.

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 · 363 lines

How it starts

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

AGENTS.md

Working notes for anyone — human or agent — changing this repository. These are the conventions that are easy to break by accident because they look like mistakes until you know why they are there.

CLAUDE.md at the repo root is a one-line @AGENTS.md include, kept only because Claude Code auto-loads CLAUDE.md as project context and does not (yet) do the same for AGENTS.md. It is not shipped as plugin context — see the plugin-manifest warning under CI workflows below; a plugin install never sees it. Edit this file, never CLAUDE.md directly.

Self-descriptions go stale. This file has restated a checkable fact about the codebase in prose twice now — a test count and a test-coverage claim — and been wrong both times within weeks, caught only by an external audit rather than anything in the repo. When adding a sentence here that describes what the test suite or the code currently does, point at the file that holds the truth (see tests/unit/test_mcp_safety.py) rather than restating a count, a percentage, or a line number that the next commit can invalidate without touching this file.

What this is

campaign-preflight, a read-only linter for outbound email campaigns. It ships three ways: a Python CLI, an MCP server, and a Claude plugin.

Naming. The repository and the plugin share one name: campaign-preflight. Use it verbatim in prose, headings, install commands, and URLs.

Non-negotiables — this tool cannot write, and must never be able to

This is a pre-send safety tool. Its entire value is that it can be pointed at a real campaign and a real API key without any risk of the campaign changing. No change may weaken that, however small or however good the reason looks. Concretely, no change may:

  • Add a code path that writes to a provider. There is no PATCH/PUT/ DELETE/mutating-POST call anywhere in this codebase, and there must never be one. ReadOnlyTransport in src/campaign_preflight/providers/instantly_transport.py matches every outbound (method, path) against READ_ONLY_ALLOWLIST — an explicit tuple of compiled patterns — and raises ReadOnlyViolation on anything else, before the request leaves the process. Exactly one entry is a POST (/api/v2/leads/list, a filter-body read modelled as a POST); the test suite asserts no second POST entry ever appears. Adding a provider call means adding an allowlist entry that a reviewer can see is a read — never widening the match to something broader like a whole path prefix.
  • Let an MCP tool's name, description, or annotations imply a write. _assert_read_only() in src/campaign_preflight/mcp/server.py runs at server startup — not only in tests — and refuses to start if any tool name contains a mutating verb (MUTATING_VERBS), if its description doesn't start with the literal READ-ONLY. prefix, or if it isn't annotated readOnlyHint: True. This is a fail-closed guard specifically so a mistake in a fork can't ship a write tool to somebody's Cowork or Claude Desktop. All three failure branches are covered by tests/unit/test_mcp_safety.py, parametrized over every verb in MUTATING_VERBS, including the over-breadth direction — see Testing conventions below.
  • Let missing or unreadable data produce a PASS. Every provider read returns data plus the reason it does or does not exist (ProviderResult in providers/base.py: ok, failed, forbidden, unsupported, misconfigured). Every rule declares the Capability values it requires, and engine.evaluate() short-circuits a rule to UNKNOWN before calling it if a required capability isn't available (_missing_capabilities()). Rules cannot opt out of this — there is no parameter that lets a rule run anyway and guess. There are four verdicts, not two, and INCOMPLETE is a first-class outcome, not an error state.
  • Let a credential reach a log, a report, an exception, or a PR comment. The Instantly API key is read from the environment only — no CLI flag, no MCP tool argument accepts one (test_no_tool_accepts_a_credential_argument enforces the latter) — set once as an Authorization header, and never formatted into a message. redact_secrets() (errors.py) runs over every provider-facing error string, every log line, and every rendered report, unconditionally; --no-redact on the CLI disables contact-mailbox masking only, never credential masking.
  • Accept a raw campaign edit, activation call, or send trigger as a feature request. This tool inspects; it does not act. If a request is "and then also send it" or "and then also pause it," the answer is no, not a design discussion — see What this repo deliberately does not do.

Read the full file on GitHub · 363 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. yesterday Changed · +8 lines · +116 tokens per session 1be60c993ec0
  2. 4d ago First seen · 355 lines · 4,805 tokens per session scan A db23cfbc9128

Subscribe to this mod's changes

campaign-preflight AGENTS.md is an instructions file published in the GitHub repository katekruger/campaign-preflight (0 stars, last pushed 3d ago), licensed MIT. It adds 4,921 tokens to every session, about $0.0246 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.

Related

Other instructions, from other repositories

instantly-mcp AGENTS.md

AGENTS.md instructions for katekruger/instantly-mcp, covering agents.md, stop and read this before you write code, commands, layout and credentials.

katekruger/instantly-mcp · 2,965 tokens

instantly-mcp CLAUDE.md

Claude Code instructions for katekruger/instantly-mcp, a project described as: MCP server for the Instantly.ai v2 API — analytics, leads, campaigns, Unibox, sender accounts — where every write is gated behind an explicit confirm, with code-enforced autonomy tiers, volume caps, and an audit log. Runs locally over stdio…

katekruger/instantly-mcp · 5 tokens

headless-gtm AGENTS.md

Instructions for Zevenue/headless-gtm, covering headless gtm - agent notes, where things are and operating rules.

Zevenue/headless-gtm · 483 tokens

agentmailkit AGENTS.md

AGENTS.md instructions for ariaxhan/agentmailkit, covering agentmailkit: setup guide for coding agents, compression — mandatory, 0. what this tool is, so you explain it correctly, 1. ask these questions first and 2. install.

ariaxhan/agentmailkit · 2,584 tokens

email-skills CLAUDE.md

Claude Code instructions for sendx/email-skills, covering email marketing skills, repo structure, skill format, how skills work and key context.

sendx/email-skills · 555 tokens

inbox-to-action CLAUDE.md

Instructions for tarunlnmiit/inbox-to-action, covering claude.md — project context for claude code, commands, security invariant (do not break), package layout and config & env.

tarunlnmiit/inbox-to-action · 826 tokens