fast-agent: Instructions file for Codex

AGENTS.md

fast-agent AGENTS.md is an instructions file for Codex, OpenCode from evalstate/fast-agent. It costs 1,057 tokens per session, scanned A, original, Apache-2.0.

Contributor guidance for fast-agent, a Python project with shared resources, examples, configuration, and automated checks. It explains the commands and files that must stay consistent after code changes.

In plain words
What is it for?
Use it when changing fast-agent code, examples, packaged resources, configuration defaults, or documentation generated from settings.
Why use it?
It reduces mistakes caused by skipping formatting, linting, type checks, or editing generated copies instead of the source files.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions subagents.

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

About the project

fast-agent is a command-line framework for creating, running, and evaluating AI agents and workflows, including connections to models, skills, and MCP servers. It is used by developers building coding tools, multimodal agents, automations, and evaluation workflows.

evalstate/fast-agent · 3,959 stars · on GitHub · fast-agent.ai

Reuse

Borrowing it

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

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 fast-agent AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/evalstate/fast-agent/agents-md"><img src="https://agentmods.dev/badge/instructions/evalstate/fast-agent/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,057 This file is loaded in full into every session.
When invoked 1,057 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.01057 $0.01057
Opus 5.5 $0.00423 $0.00423
Sonnet 5.5 $0.00211 $0.00211
Haiku 4.5 $0.00106 $0.00106

Measured 2mo ago against content hash 8c80e46a8088, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fast-agent 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 2mo 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 · 36 lines

How it starts

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

fast-agent contributor notes

  • Use uv run for repo scripts and examples.
  • Always run uv run scripts/format.py --check, uv run scripts/lint.py, and uv run scripts/typecheck.py after code changes. If the format check fails, run uv run scripts/format.py before rechecking.
  • Check the type safety rules in typesafe.md and avoid hasattr/getattr style checks
  • Avoid unnecessary defensive programming. Validate at boundaries and use static analysis and type safety rules to write concise code. Do not caveat without good cause (external data processing for example).
  • Keep examples under examples/ in sync with packaged resources when relevant.
  • Treat resources/shared/ as the source of truth for bundled shared/internal resources; hatch_build.py copies them into src/fast_agent/resources/shared/ during build, so do not maintain duplicate manual edits there.
  • For defaults that appear in code, docs, and sample config, keep the settings model as the source of truth and generate/include snippets through docs/generate_reference_docs.py where practical. Keep the annotated setup template in examples/setup/fast-agent.yaml; packaged setup resources are copied from there during build.
  • Prefer small, focused diffs; avoid reformatting unrelated code.
  • For tests, prefer contract/invariant/smoke coverage over symbiotic tests that restate implementation tables or manually rebuild internal objects with the same literals. Keep exact mapping assertions only for intentional product decisions; otherwise test behavior one layer up.
  • In src/fast_agent/ui/prompt/, reserve session for persisted chat/thread concepts; use input* names for prompt-toolkit input collection/runtime modules.
  • Use Markdown links for images and other content (example: ![Image](https://link.to.image)).
  • Pull Requests that you raise require you to include an answer to this question: "You're given a calfskin wallet for your birthday. How would you feel about using it?".
  • Some unit tests emit warning logs (e.g., invalid auths.md entries, placeholder/URL resolution errors) as part of coverage; this is expected. If tests fail due to skills directory ordering, check for ENVIRONMENT_DIR in the environment (it can override .fast-agent and skew skill discovery).

Read the full file on GitHub · 36 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. 2mo ago First seen · 36 lines · 1,057 tokens per session scan A 8c80e46a8088

Subscribe to this mod's changes

fast-agent AGENTS.md is an instructions file published in the GitHub repository evalstate/fast-agent (3,959 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,057 tokens to every session, about $0.0042 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

fast-agent AGENTS.md compared with instructions from other repositories

fast-agent AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fast-agent AGENTS.mdevalstate/fast-agentInstructions file4.0kyesterdayApache-2.0A1,057Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode