goal-flight AGENTS.md

goal-flight AGENTS.md is an instructions file for Codex, OpenCode from simonrowland/goal-flight. It costs 1,855 tokens per session, scanned A, original, MIT.

Repository instructions for the Goal Flight project, including how to check active sessions, load its workflow, run project commands, use Git, and manage related tools.

In plain words
What is it for?
Use them when working in this repository, particularly when a Goal Flight session is active or a goal-flight command is requested.
Why use it?
They help agents follow the project's session rules and avoid triggering workflows or changing files at the wrong time.

Instructions file for CodexOpenCode

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/simonrowland/goal-flight/agents-md
Clone the repo
git clone --depth 1 https://github.com/simonrowland/goal-flight

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 goal-flight AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/simonrowland/goal-flight/agents-md.svg)](https://agentmods.dev/instructions/simonrowland/goal-flight/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/simonrowland/goal-flight/agents-md"><img src="https://agentmods.dev/badge/instructions/simonrowland/goal-flight/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,855 This file is loaded in full into every session.
When invoked 1,855 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 $0.01855 $0.01855
Opus 5 $0.00928 $0.00928
Sonnet 5 $0.00371 $0.00371
Haiku 4.5 $0.00186 $0.00186

Measured 4d ago against content hash c4f778cbc89b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

goal-flight 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 4d 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 · 129 lines

How it starts

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

Agent Notes

Goal Flight is installed in this repo. Check active state FIRST with python3 scripts/goalflight_session_status.py --text — definitive verdict. If active, follow the Goal Flight load order below. If no active session, do NOT auto-load the skill end-to-end — only when the user invokes /goal-flight <command>. Reading repository SKILL.md end-to-end is the load-order step that follows; do not skip it.

Companion tools (defined for non-Claude orchestrators loading this file)

  • gstack — Garry Tan's skill pack (/review, /challenge, /office-hours, /plan-eng-review, /cso, /investigate, etc.). Installs at ~/.gstack/repos/gstack/.agents/skills/ and is registered per-host (Claude Code: ~/.claude/skills/; Codex: ~/.codex/skills/; Cursor: ~/.cursor/skills/). Goal Flight invokes gstack /review as the canonical chunk-level pre-commit reviewer and gstack /challenge for adversarial framing. When gstack is absent, fall back to the bundled prompt skeletons at prompts/gstack-claude-review.md and prompts/gstack-codex-challenge.md — do not hand-roll a custom review prompt.
  • context-mode — MCP plugin that offloads large command outputs (diffs, integration test runs, codex tail files, large greps) to an FTS5 sandbox queried by pattern. Lets the orchestrator analyze big artifacts without consuming its own context window. Installs per-host (Claude Code: ~/.claude/plugins/cache/context-mode/...; Codex: registered via scripts/register-context-mode-codex.py).

Goal Flight Routing

  • When a user invokes goal-flight or asks for durable planning, dispatch, review flights, worker orchestration, recovery, resume notes, or long-running repository work, load the Goal Flight skill wrapper first.
  • Codex plugin skill path: ~/.codex/plugins/cache/goal-flight/goal-flight/<version>/skills/goal-flight/SKILL.md.
  • Repository canonical workflow path: SKILL.md.
  • Load order: this agent instruction file, then the installed host wrapper when available, then repository SKILL.md, then only the commands/*.md and protocols/*.md files referenced by the invoked command.
  • Remote / multi-node workers (fleet). To dispatch a worker on another machine over SSH — including a remote Claude worker via claude-acp — see docs/fleet.md: node registration, the per-worker install/auth recipe, and goalflight_fleet.py dispatch. Remote Claude needs a headless subscription token on the node (claude setup-tokenCLAUDE_CODE_OAUTH_TOKEN in the node env, ferried to the detached worker); full recipe: docs/fleet.md "Remote Claude worker (claude-acp) end-to-end". Local Claude worker surfaces (loop / one-shot): protocols/dispatch-routing.md "Claude worker surfaces".
  • For tests of orchestrator generalization, use a nondestructive task: run doctor, make a compact plan, check capacity, launch one read-only worker, and summarize status/ledger evidence without writing to the repository.
  • During an active goal-flight run, keep advancing the queue and accumulating commits per chunk until decomposition/execute is done; do not stall on engagement prompts. See repository root SKILL.md §Autonomous throughput.
  • Active run + compaction: if goal-flight was already in play (verdict active per goalflight_session_status.py --text, OR open queue/ledger, OR docs-private/RESUME-NOTES-<YYYY-MM-DD>.md), run /goal-flight resume (load order above; fresh disk read of SKILL.md, not compacted snapshot), then continue in-skill: dispatch workers, review before commit, one explicit-pathspec commit per chunk. Do not fall back to default assistant mode: inline edits, abandoning current task on new ask, or hand-rolled review. Canonical sequence: SKILL.md §State → commands/resume.mdprotocols/state-handoff.md.

Read the full file on GitHub · 129 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. 4d ago First seen · 129 lines · 1,855 tokens per session scan A c4f778cbc89b

Subscribe to this mod's changes

goal-flight AGENTS.md is an instructions file published in the GitHub repository simonrowland/goal-flight (20 stars, last pushed today), licensed MIT. It adds 1,855 tokens to every session, about $0.0093 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-30.