godot-stagehand: Instructions file for Codex

AGENTS.md

godot-stagehand AGENTS.md is an instructions file for Codex, OpenCode from mrf/godot-stagehand. It costs 1,985 tokens per session, scanned C, original, MIT.

Repository instructions for Godot Stagehand, a project involving the Godot game engine and Go code. They require test-first development and describe checks for Go and GDScript changes.

In plain words
What is it for?
Use them when developing or reviewing Godot or Go code, especially when writing tests, running the full suite, or checking changes before a commit.
Why use it?
They make the expected testing process clear before code is changed or committed.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: names the TodoWrite tool.

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

Reuse

Borrowing it

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

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 godot-stagehand AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mrf/godot-stagehand/agents-md"><img src="https://agentmods.dev/badge/instructions/mrf/godot-stagehand/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,985 This file is loaded in full into every session.
When invoked 1,985 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.01985 $0.01985
Opus 5.5 $0.00794 $0.00794
Sonnet 5.5 $0.00397 $0.00397
Haiku 4.5 $0.00198 $0.00198

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

Security

Grade C, and why

godot-stagehand 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.

rm -rf directory # NOT: rm -r directory
AGENTS.md · 137 lines

How it starts

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

Agent Instructions

This project uses br (beads_rust) for issue tracking. Run br robot-docs guide to get started.

Quality Standards — MANDATORY

Every agent session MUST follow strict TDD. No exceptions.

TDD Protocol

  1. Write a failing test FIRST — before any implementation code
    • Go: unit test in *_test.go or E2E test in e2e_test.go
    • GDScript: GdUnit4 test in testdata/test_project/test/
  2. Run the test — verify it fails for the right reason
  3. Write the minimum code to make the test pass
  4. Run the full test suite — go test ./... — no regressions
  5. Refactor if needed, re-run tests
  6. Run code-simplifier:code-simplifier agent before committing

Quality Gates (run before every commit)

go vet ./...          # Lint
go test ./...         # All Go tests pass
# If GDScript changed — run the GdUnit4 unit suite (headless):
GODOT_BIN=/path/to/Godot_v4.x-stable_linux.x86_64 ./scripts/run-gdscript-tests.sh
# Or through Go, which parses the JUnit report and fails on any failure/skip:
GODOT_BIN=/path/to/Godot_v4.x-stable_linux.x86_64 go test -tags=gdscript -run TestGdUnitSuite .
# Needs Godot 4.6+: GdUnit4 v6.1.3's CLI runner hangs on 4.4 headless. The addon
# itself still targets 4.3+, which the gdscript-parse CI matrix covers.
# If GDScript changed — strict-mode validation:
timeout 5 ${GODOT_BIN:-godot} --path testdata/test_project --headless --stagehand 2>&1 | grep -E "SCRIPT ERROR|Server listening"
# Must show "Server listening on port 26700" with ZERO "SCRIPT ERROR" lines.
# testdata/test_project has all GDScript warnings elevated to errors — this catches:
#   - Implicitly inferred static types (:= without annotation)
#   - float()/int()/bool()/String() constructors with Variant args
#   - Discarded return values
#   - Variable shadowing
#   - Untyped function parameters
#   - Unsafe property/method access on Variant
# Set GODOT_BIN to your Godot binary (e.g. export GODOT_BIN=/path/to/Godot_v4.x-stable_linux.x86_64)

Read the full file on GitHub · 137 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 · 137 lines · 1,985 tokens per session scan C c1956e36d04f

Subscribe to this mod's changes

godot-stagehand AGENTS.md is an instructions file published in the GitHub repository mrf/godot-stagehand (9 stars, last pushed 7d ago), licensed MIT. It adds 1,985 tokens to every session, about $0.0079 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-31.

Related

godot-stagehand AGENTS.md compared with instructions from other repositories

godot-stagehand AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
godot-stagehand AGENTS.mdmrf/godot-stagehandInstructions file97d agoMITC1,985Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
vscode ai-customization.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA1,907GitHub Copilot