autopilot: Instructions file for Claude Code

AGENTS.md

autopilot AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from cookys/autopilot. It costs 2,449 tokens per session, scanned A, original, MIT.

Repository instructions for Autopilot, a project containing coding-agent skills, helper agents, hooks, and support for several agent platforms. They describe its structure, coding rules, tests, builds, and contribution process.

In plain words
What is it for?
Use them when navigating the Autopilot repository, adding a skill or agent, changing hooks or platform support, building the project, or checking contributions.
Why use it?
They give coding agents and contributors a shared set of rules for changing the repository. This helps keep platform-specific files, skills, and tests consistent.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: SessionStart hook event, but also the file is AGENTS.md. Also seen: mentions .claude-plugin; mentions CLAUDE.md; mentions subagents.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/cookys/autopilot/agents-md"><img src="https://agentmods.dev/badge/instructions/cookys/autopilot/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,449 This file is loaded in full into every session.
When invoked 2,449 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.02449 $0.02449
Opus 5.5 $0.00980 $0.00980
Sonnet 5.5 $0.00490 $0.00490
Haiku 4.5 $0.00245 $0.00245

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

Security

Grade A, and why

autopilot 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 · 114 lines

How it starts

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

autopilot — Agent Instructions

Follows the agents.md convention. Claude Code conventions: CLAUDE.md. Portability: references/multi-agent-portability.md. Original wording of the rules shortened here: docs/dev/_archive/entry-docs/agents-md-detail.md.

Codex, agy and OpenCode do not descend into subdirectories: before working in scripts/, skills/, references/, platforms/ or mods/, read that directory's AGENTS.md and the CLAUDE.md it names, in full.


Project Structure (spec)

skills/              30 lifecycle/methodology skills (SKILL.md format)
agents/              3 methodology agents (reviewer, debugger, planner) — markdown body + YAML frontmatter
hooks/               Claude Code hooks (bash + JS) and hooks.json manifest
platforms/codex/     Codex skills + production PostCompact package + repo-local marketplace
.opencode/           OpenCode wrapper (opencode.json; plugin entry .opencode/plugin-package/server.ts)
.claude-plugin/      Claude Code plugin manifest (canonical for version + description)
plugin.json          Root mirror of .claude-plugin/plugin.json (for non-Claude tools)
references/          Cross-skill reference docs (blind-dispatch, model-routing, portability)
scripts/             Deterministic tooling — prefer these over LLM judgment for mechanical work
docs/                projects/ (active + archive), plans/, BACKLOG.md, CHANGELOG.md
.githooks/           Repo-tracked pre-commit hooks (activated via scripts/install-hooks.sh)

Coding Conventions (spec)

  • Severity vocabulary: 🔴 Critical / 🟠 Major / 🟡 Minor / 🔵 Suggestion (think-tank* skills use lowercase critical / important / minor risk tags).
  • No hardcoded dispatch metadata in skill files. Use scripts/resolve-dispatch.sh to map role → {model, mode, agent} JSON.
  • Prefer scripts over LLM judgment for mechanical work (regex scans, JSON parsing, diff filtering). When you write a new script, wire it into the name list in scripts/CLAUDE.md and the relevant skill's "Available Scripts" table.

Read the full file on GitHub · 114 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 · -30 lines · -1,685 tokens per session baf73b8b1ef8
  2. 3d ago Changed · +2 tokens per session 5e885c36d614
  3. 8d ago Changed · +111 tokens per session e52a59de87e5
  4. 15d ago Changed · +39 lines · +791 tokens per session 00737ee02748
  5. 1mo ago Changed · +39 tokens per session c27641f6e3fd
  6. 2mo ago Changed 09c0802607ea
  7. 2mo ago First seen · 105 lines · 3,191 tokens per session scan A 5903901a9c22

Subscribe to this mod's changes

autopilot AGENTS.md is an instructions file published in the GitHub repository cookys/autopilot (12 stars, last pushed today), licensed MIT. It adds 2,449 tokens to every session, about $0.0098 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

autopilot AGENTS.md compared with instructions from other repositories

autopilot AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
autopilot AGENTS.mdcookys/autopilotInstructions file12todayMITA2,449Claude Code, Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,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