baba-is-auto: Instructions file for Codex

AGENTS.md

baba-is-auto AGENTS.md is an instructions file for Codex, OpenCode from utilForever/baba-is-auto. It costs 1,680 tokens per session, scanned A, original, MIT.

Repository instructions for AI coding agents working on a C++17 Baba Is You simulator with reinforcement-learning examples, a graphical interface, an editor, and a Python interface.

In plain words
What is it for?
Understanding where simulator, Python, GUI, editor, map, and training files live, and checking mirrored implementations before making changes.
Why use it?
They explain the project’s split structure and warn agents to keep the core simulator and its Python binding in sync when changing behavior.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 baba-is-auto AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/utilforever/baba-is-auto/agents-md"><img src="https://agentmods.dev/badge/instructions/utilforever/baba-is-auto/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,680 This file is loaded in full into every session.
When invoked 1,680 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.01680 $0.01680
Opus 5.5 $0.00672 $0.00672
Sonnet 5.5 $0.00336 $0.00336
Haiku 4.5 $0.00168 $0.00168

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

Security

Grade A, and why

baba-is-auto 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 · 121 lines

How it starts

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

AGENTS.md

Guidance for AI coding agents (Codex, Claude Code, etc.) working in this repository. Humans should start with README.md; this file restates the project rules in the operational order an agent needs them.

What this repository is

This is baba-is-auto, a C++17 Baba Is You simulator with reinforcement learning examples, a pygame GUI, an optional C++ ImGui level editor, and a Python API exposed through pybind11.

It is not just a single C++ library:

  • The core simulator is in Includes/baba-is-auto/ and Sources/baba-is-auto/.
  • The Python extension under Extensions/BabaPython/ mirrors parts of the core API and implementation.
  • Python GUI/RL examples consume the Python-facing behavior from Extensions/BabaGUI/ and Extensions/BabaRL/.
  • The optional C++ level editor lives in Extensions/BabaEditor/.
  • Test fixtures and sample levels live in Resources/Maps/.

Upstream lives at https://github.com/utilForever/baba-is-auto.git.

Golden rules (read before any change)

  1. Keep the C++ core and Python binding in sync. If you change game, map, rule, enum, object, or agent behavior in the core library, check whether the mirrored files under Extensions/BabaPython/ need the same update.
  2. Do not hand-edit generated aggregate headers casually. Includes/baba-is-auto.hpp is generated by Scripts/header_gen.py during the CMake build. Change headers or the generator instead of treating the generated file as the primary source.
  3. Use CMake targets as the source of truth. Before adding or moving C++ files, read the relevant CMakeLists.txt so the intended target will build on Ubuntu, macOS, and Windows.
  4. Preserve C++17 portability. Avoid compiler-specific assumptions unless they are guarded by CMake or clearly isolated.
  5. Do not add unpinned Python dependencies. requirements.txt is hash-pinned and CI installs it with --require-hashes.
  6. Run the relevant tests before considering behavior changes complete. Documentation-only changes usually do not need a build, but code or API changes should be verified with the commands below.

Read the full file on GitHub · 121 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 Changed · +4 lines · +30 tokens per session 2f97d89643cd
  2. 2mo ago First seen · 117 lines · 1,650 tokens per session scan A 98ee7965242e

Subscribe to this mod's changes

baba-is-auto AGENTS.md is an instructions file published in the GitHub repository utilForever/baba-is-auto (192 stars, last pushed 7d ago), licensed MIT. It adds 1,680 tokens to every session, about $0.0067 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

baba-is-auto AGENTS.md compared with instructions from other repositories

baba-is-auto AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
baba-is-auto AGENTS.mdutilForever/baba-is-autoInstructions file1927d agoMITA1,680Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,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 file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k2d agoMITA4,313Codex, OpenCode