airflow: Instructions file for Claude Code

AGENTS.md

airflow AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from apache/airflow. It costs 5,396 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for contributing to Apache Airflow, including naming, environment setup, commands, and project structure. Apache Airflow is software for defining and running scheduled data workflows.

In plain words
What is it for?
Use them when editing Airflow code, setting up development tools, choosing the correct terminology, finding files, or running project checks.
Why use it?
They give contributors the project’s required conventions and prevent unsupported ways of running tests or commands.

Instructions file for Claude CodeCodexOpenCode ✓ vendor

Written for Claude Code and Codex and OpenCode: Claude Code plugin machinery, but also the file is AGENTS.md. Also seen: mentions Claude Code; mentions Codex.

This is apache/airflow's own configuration. It tells Claude Code, Codex and OpenCode how to work on airflow 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 airflow configures →

About the project

Apache Airflow is a platform for defining, scheduling, and monitoring workflows as code, with a scheduler assigning dependent tasks to workers. Teams use it to orchestrate automated data and software pipelines and inspect their progress through a user interface. Its catalogue skills and instructions help agents work with Airflow.

apache/airflow · 47,377 stars · on GitHub · airflow.apache.org

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/apache/airflow/agents-md"><img src="https://agentmods.dev/badge/instructions/apache/airflow/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,396 This file is loaded in full into every session.
When invoked 5,396 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.05396 $0.05396
Opus 5.5 $0.02158 $0.02158
Sonnet 5.5 $0.01079 $0.01079
Haiku 4.5 $0.00540 $0.00540

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

Security

Grade A, and why

airflow 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 9d 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 · 254 lines

How it starts

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

AGENTS instructions

Naming

Write Dag (title case) in all prose. Keep the all-caps or lowercase spelling only when reproducing a literal code token — never rewrite these, even inside fenced code blocks:

  • Python: the SDK class DAG (from airflow.sdk import DAG, dag = DAG("my_dag", ...)); identifiers like dag_id, dag, my_dag.
  • CLI: airflow dags list, airflow dags test, etc.
  • Paths and config keys: dag_processing/, dagprocessor, get_dag, etc.
  • Anti-pattern quotes that show the wrong form to teach the rule itself (e.g., Use "DAG" — always write "Dag").

Don't spell out Directed Acyclic Graph except for historical context.

Environment Setup

  • Install prek: uv tool install prek
  • Enable commit hooks: prek install
  • Install breeze shim (one-time, per machine): scripts/tools/setup_breeze — installs ~/.local/bin/breeze that runs breeze via uv run --locked from the current git worktree's dev/breeze, with dependencies pinned by dev/breeze/uv.lock (so each worktree, including ephemeral agent worktrees, gets its own breeze tied to its sources). See ADR 0017.
  • Never run pytest, python, or airflow commands directly on the host — always use breeze. The only exception is the uv run --project <PROJECT> ... commands listed below, run against the workspace sources.
  • If a step needs breeze and it cannot run (Docker missing, or its Docker calls refused by a sandbox or socket proxy), stop and tell the user which call failed. Do not build a substitute host environment instead, such as a virtualenv with a released Airflow version.
  • Place temporary scripts in dev/ (mounted as /opt/airflow/dev/ inside Breeze).

Commands

<PROJECT> is folder where pyproject.toml of the package you want to test is located. For example, airflow-core or providers/amazon. <target_branch> is the branch the PR will be merged into — usually main, but could be v3-1-test when creating a PR for the 3.1 branch.

Read the full file on GitHub · 254 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. 9d ago Changed · +2 lines · +130 tokens per session b59aa74425eb
  2. 19d ago Changed · -23 tokens per session 6a3c762f810a
  3. 1mo ago Changed · +1 lines · +54 tokens per session c1d589f742d9
  4. 1mo ago Changed · +4 lines · +73 tokens per session 167cd246efda
  5. 1mo ago Changed · +7 lines 95a748605b57
  6. 1mo ago Changed · -298 lines · -3,442 tokens per session 701b7265c785
  7. 1mo ago Changed · +2 tokens per session a07d140f253e
  8. 1mo ago Changed · +14 tokens per session 46773701753d
  9. 1mo ago Changed · +5 lines · -2 tokens per session 10c0e828b9be
  10. 2mo ago First seen · 533 lines · 8,590 tokens per session scan A be50de1e7a20

Subscribe to this mod's changes

airflow AGENTS.md is an instructions file published in the GitHub repository apache/airflow (47,377 stars, last pushed yesterday), licensed Apache-2.0. It adds 5,396 tokens to every session, about $0.0216 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

airflow AGENTS.md compared with instructions from other repositories

airflow AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
airflow AGENTS.mdapache/airflowInstructions file47kyesterdayApache-2.0A5,396Claude Code, Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode