fable-bench: Instructions file for Codex

AGENTS.md

fable-bench AGENTS.md is an instructions file for Codex, OpenCode from casualsav/fable-bench. It costs 348 tokens per session, scanned A, original, MIT.

Repository instructions for the fable-bench project, covering code structure, error handling, tests, linting and shell-script rules.

In plain words
What is it for?
They guide implementation, testing through public interfaces, file organisation, comments, lint checks and safe handling of hook failures.
Why use it?
They give coding agents concrete standards for changing this repository and help prevent silent failures, misplaced code and untested behaviour.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 fable-bench AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/casualsav/fable-bench/agents-md"><img src="https://agentmods.dev/badge/instructions/casualsav/fable-bench/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 348 This file is loaded in full into every session.
When invoked 348 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.00348 $0.00348
Opus 5.5 $0.00139 $0.00139
Sonnet 5.5 $0.00070 $0.00070
Haiku 4.5 $0.00035 $0.00035

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

Security

Grade A, and why

fable-bench 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 16d 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 · 29 lines

What it actually says

AGENTS.md

Code standard

The repo's own rules come first: README.md says what each file is for, the header comment of each script says what it must keep true, and skills/fable/LEAD.md is the playbook a Fable-led session works by.

  • An error is handled, logged with what failed, or raised. Never turn it into a default or an empty result in silence; where a default is right, a comment says why. The hooks exit 0 on their own failure on purpose, so a broken hook never blocks a session, and each says so.
  • A comment says why the code is the way it is. What changed, when and for whom goes in the commit.
  • A test drives the behaviour through the public interface and fails on a broken version of it.
  • One concern per file. New code goes in the file of its concern, not the largest one open; a file past 800 lines (400 for shell) is split rather than grown.
  • Nothing is added for a state that cannot occur: no speculative option, layer or fallback.
  • The linter is green on new code: bun run lint. What it recorded when it came in (biome.json overrides, .shellcheck-baseline) is left alone unless a change is about it.
  • Shell scripts start with set -euo pipefail, and carry no || true without a comment saying why.
  • The installers send errors to stderr with a non-zero exit, and never prompt when not on a terminal.
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. 16d ago First seen · 29 lines · 348 tokens per session scan A ae15c601948e

Subscribe to this mod's changes

fable-bench AGENTS.md is an instructions file published in the GitHub repository casualsav/fable-bench (5 stars, last pushed 3d ago), licensed MIT. It adds 348 tokens to every session, about $0.0014 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-11-16.

Related

fable-bench AGENTS.md compared with instructions from other repositories

fable-bench AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fable-bench AGENTS.mdcasualsav/fable-benchInstructions file53d agoMITA348Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196kyesterdayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196kyesterdayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196kyesterdayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109kyesterdayMITA3,077GitHub Copilot