supergoal: Instructions file for Claude Code

AGENTS.md

supergoal AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from robzilla1738/supergoal. It costs 4,178 tokens per session, scanned C, original, MIT.

A project guide file that tells coding agents what a repository contains, how it is organized, and which rules to follow. It documents the Supergoal skill, which turns a vague request into a planned and checked coding run.

In plain words
What is it for?
Use it to orient an agent in an unfamiliar repository and guide changes to the right places. It also describes how to use and install Supergoal with Claude Code or Codex CLI.
Why use it?
It prevents agents from guessing where to work or what the project expects. It also explains which files belong in the project and which do not.

Instructions file for Claude CodeCodexOpenCode

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

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

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/robert/Code/supergoal/.

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/robzilla1738/supergoal/agents-md"><img src="https://agentmods.dev/badge/instructions/robzilla1738/supergoal/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,178 This file is loaded in full into every session.
When invoked 4,178 The same file — it is already loaded in full.
Security scan C 1 finding. 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.04178 $0.04178
Opus 5.5 $0.01671 $0.01671
Sonnet 5.5 $0.00836 $0.00836
Haiku 4.5 $0.00418 $0.00418

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

Security

Grade C, and why

supergoal AGENTS.md scanned grade C with 1 finding 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

6. **Re-sync to Codex**: `rm -rf ~/.codex/skills/supergoal && cp -R skills/supergoal ~/.codex/skills/supergoal`, then verify byte-identical with `diff -r skills/supergoal ~/.codex/skills/supergoal`.
AGENTS.md · 190 lines

How it starts

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

AGENTS.md

Authoritative project doc. Any agent (Claude, Codex, or other) opening this repo should be able to read this file alone and understand the project, where to make changes, and what conventions to follow.

What this repo is

Supergoal is a Claude Code / Codex skill that turns a vague build request into a deeply-planned, autonomously-executed /goal run with built-in retry, fix-spec recovery, per-phase memory writeback, and a final audit pass that re-validates the work against the original plan.

  • Slash command: /supergoal <task>
  • Central mechanism: produces one ready-to-paste /goal command. The user pastes it once; the rest is autonomous.
  • Works on: Claude Code (via plugin marketplace) and Codex CLI (via manual skill copy).
  • Public install: see README.md.

Repo layout

supergoal/
├── .claude-plugin/
│   ├── marketplace.json        Catalog Claude Code reads when added as a marketplace
│   └── plugin.json             Plugin manifest (name, version, description, skills path)
├── .gitattributes              Forces `*.sh` to LF (CRLF shebangs fail on a fresh Windows checkout).
├── .gitignore                  Editor/OS junk + .supergoal/ artifact dirs
├── AGENTS.md                   This file. Authoritative project doc.
├── CLAUDE.md                   Claude Code-specific tips. Points at this file.
├── CHANGELOG.md                Per-version release notes. Keep-a-Changelog format, SemVer.
├── LICENSE                     MIT.
├── README.md                   Public-facing: what it is, install, use, Mermaid flow charts.
├── skills/supergoal/
│   ├── SKILL.md                The skill itself. ~565 lines (grew with v0.7's Stage 0 namespace-claim section; the phase-loop section duplicates PROTOCOL.md and is a candidate for slimming next release).
│   ├── references/             Progressive-disclosure docs the agent reads when needed.
│   │   ├── planning-depth.md          What makes a plan deserve "super".
│   │   ├── phase-design.md            How to slice phases (adaptive count, no cap).
│   │   ├── goal-format.md             /goal mechanics on both hosts; required transcript blocks.
│   │   └── repo-state-comparison.md   The one comparison strategy (complete working tree vs baseline).
│   ├── scripts/                Bash scripts the planner/executor run during stages.
│   │   ├── detect-env.sh       Greenfield env recon.
│   │   ├── detect-stack.sh     Brownfield stack/framework detection.
│   │   ├── summarize-repo.sh   Compressed repo map.
│   │   ├── claim-run.sh        Atomically claims a unique per-run dir under .supergoal/ (concurrent-run isolation). Tested by tests/claim-run.test.sh.
│   │   ├── repo-state.sh       Complete working-tree-vs-baseline comparison (audit + cleanliness). Copied into the run's .supergoal/<run-id>/ dir at Stage 7.
│   │   └── validate-phase.sh   Sanity-checks a phase spec has required markers.
│   └── templates/              Files the planner copies into a run's `.supergoal/<run-id>/` dir.
│       ├── ROADMAP.md          Phase plan with dependencies.
│       ├── STATE.md            Live progress file.
│       ├── phase-goal.txt      Phase spec skeleton (work, criteria, evidence, commands).
│       └── PROTOCOL.md         Execution loop + failure recovery + final audit protocol.
└── tests/                      Repo-only (not shipped in the plugin payload).
    ├── claim-run.test.sh       Fixture tests for claim-run.sh (incl. the concurrent-claim race).
    └── repo-state.test.sh      Fixture tests for repo-state.sh over throwaway git repos.

Read the full file on GitHub · 190 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 · 190 lines · 4,178 tokens per session scan C a681abb345a8

Subscribe to this mod's changes

supergoal AGENTS.md is an instructions file published in the GitHub repository robzilla1738/supergoal (684 stars, last pushed 2mo ago), licensed MIT. It adds 4,178 tokens to every session, about $0.0167 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

supergoal AGENTS.md compared with instructions from other repositories

supergoal AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
supergoal AGENTS.mdrobzilla1738/supergoalInstructions file6842mo agoMITC4,178Claude 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