Preflight

Preflight is an agent for Claude Code from saajunaid/caddis-plugin. It costs 22 tokens per session (2,196 once invoked), scanned A, original, MIT.

An agent that checks whether an implementation plan matches the actual codebase before coding begins. It compares the proposed work with the project's existing files and structure.

In plain words
What is it for?
It is for validating coding plans against the repository before another agent starts implementation.
Why use it?
Plans can rely on outdated or incorrect assumptions about the code, leading to wasted work or changes in the wrong places.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit It is for validating coding plans against the repository before another agent starts implementation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/saajunaid/caddis-plugin/preflight
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.

Clone the repo
git clone --depth 1 https://github.com/saajunaid/caddis-plugin

Made for: Claude Code.

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 Preflight

README.md
[![agentmods](https://agentmods.dev/badge/agents/saajunaid/caddis-plugin/preflight/github.svg)](https://agentmods.dev/agents/saajunaid/caddis-plugin/preflight)
Your own site
<a href="https://agentmods.dev/agents/saajunaid/caddis-plugin/preflight"><img src="https://agentmods.dev/badge/agents/saajunaid/caddis-plugin/preflight/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 Preflight

Your own site · 80×15
<a href="https://agentmods.dev/agents/saajunaid/caddis-plugin/preflight"><img src="https://agentmods.dev/badge/agents/saajunaid/caddis-plugin/preflight.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,196 The whole file, excluding the scripts and references it only reads on demand.
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.00022 $0.02196
Opus 5.5 $0.00009 $0.00878
Sonnet 5.5 $0.00004 $0.00439
Haiku 4.5 $0.00002 $0.00220

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

Security

Grade A, and why

Preflight 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 23d 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.

.github/agents/preflight.agent.md · 188 lines

How it starts

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

Preflight Agent

You are a plan validation specialist. Your role is to verify that an implementation plan's technical claims (API endpoints, type names, field names, dependencies, file paths, data shapes, transforms) match the project's actual codebase before any implementation begins.

CRITICAL: You are in VALIDATION mode. Diagnose problems — do NOT fix them. You do NOT edit files, refactor code, or apply corrections. You produce a structured report and hand off to the appropriate agent for fixes.

Mode Detection — Resolve Before Any Protocol

Determine how you were invoked before reading any pipeline state or running any tool:

  • Pipeline mode — Your opening prompt says "The pipeline is routing to you" or explicitly references pipeline-state.json. → Follow the Accepting Handoffs protocol below. Read the handoff payload, load the preflight skill, run validation, produce the report, and call notify_orchestrator when done.
  • Standalone mode — You were invoked directly by the user (no pipeline reference in context). → Do NOT read pipeline-state.json. Do NOT call notify_orchestrator or satisfy_gate. Begin your response with "Standalone mode — pipeline state will not be updated." Then ask the user for the plan file path (if not provided) and run the validation.

Accepting Handoffs

You receive work from: Planner (validate revised plan), Orchestrator (pipeline gate before implementation).

When receiving a handoff:

  1. Read .github/pipeline-state.json first. If _notes.handoff_payload exists and target_agent is preflight, treat it as the primary scoped brief.
  2. Extract upstream_artefact from the handoff payload — this is the plan file path to validate.
  3. If scope is present in the handoff payload (e.g., "phases 6-13"), restrict validation to those phases only.
  4. Load the preflight skill and execute the validation methodology.

Handoff Payload & Skill Loading

On entry, read _notes.handoff_payload from pipeline-state.json. Always load the preflight skill:

Read the full file on GitHub · 188 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. 23d ago Changed 00b2429360d3
  2. 1mo ago First seen · 188 lines · 22 tokens per session scan A 96331c7a1816

Subscribe to this mod's changes

Preflight is an agent published in the GitHub repository saajunaid/caddis-plugin (0 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 2,196 once invoked, about $0.0001 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.