unbanished: Instructions file for Codex

AGENTS.md

unbanished AGENTS.md is an instructions file for Codex, OpenCode from tanepiper/unbanished. It costs 6,043 tokens per session, scanned A, original, Apache-2.0.

A repository instruction file for Un-Banished, a Rust and WebAssembly reimplementation of the Banished strategy game. It explains the project’s goals, setup, repository layout, and rules for human and AI contributors.

In plain words
What is it for?
Guiding code changes, performance work, testing, and repository contributions for the Un-Banished game.
Why use it?
It gives contributors one place to learn the project’s constraints, including matching the original game’s observable behaviour and avoiding waste in browser builds.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tanepiper/unbanished/agents-md"><img src="https://agentmods.dev/badge/instructions/tanepiper/unbanished/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6,043 This file is loaded in full into every session.
When invoked 6,043 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.06043 $0.06043
Opus 5.5 $0.02417 $0.02417
Sonnet 5.5 $0.01209 $0.01209
Haiku 4.5 $0.00604 $0.00604

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

Security

Grade A, and why

unbanished 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 3d 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 · 289 lines

How it starts

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

AGENTS.md — working on Un-Banished

Instructions for anyone changing this repository: human contributors and AI coding agents (Claude Code, Codex, Cursor and others). Players want the README and the user guide instead.

The goal

Un-Banished is a 1:1 reimplementation of Banished 1.0.7 (Steam build 170910, Windows x64) in Rust + wgpu. It runs natively and in the browser (WASM) on the player's own game data. "1:1" means the behaviour, data formats, constants, timings and interface match the original executable, down to float rounding where the simulation depends on it. It is not "inspired by".

1:1 applies to what the player can observe. The port may be built differently inside. Where it changes nothing observable (rules, numbers, Random order, saves, visuals), make the port efficient in memory, CPU and GPU: share assets instead of copying them per instance, upload each texture once, avoid rebuilding unchanged data every frame. The browser build runs in a 4 GB wasm heap, so waste shows up as crashes and stutter. Look for such waste while you work, measure it before and after, and fix it; determinism.sh and the emulator tests must still pass. A change like this is not a deviation.

Anything Un-Banished adds that the original does not have (the probe, the mod sites, the cinematic camera, multiplayer) is an extension: its own files behind a cargo feature, reaching the game only through the doors listed in docs/develop/EXTENSIONS.md. A new extension starts as an unstable-NAME feature, which no release contains, and moves into the default more feature when it is stable. --vanilla turns every extension off for one run. The core crate, unbanished-sim, never depends on an extension or on drawing, windows, the interface, sound or the network.

The code is named unbanished: crates unbanished-*, the programs unbanished, unbanished-mods, unbanished-cli and unbanished-server, environment variables UNBANISHED_*. Before 1.0 there is no backward-compatible naming; old names survive only where old builds or old data need them (tools/compat sets both for builds before the rename). Player-data names stay as they are, so nobody loses settings, kept game files or saves: the settings folder and the browser's storage are banished-wasm. The save folder is the original's. The product name is Un-Banished.

Read the full file on GitHub · 289 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. 3d ago First seen · 289 lines · 6,043 tokens per session scan A 1cbfe812d15c

Subscribe to this mod's changes

unbanished AGENTS.md is an instructions file published in the GitHub repository tanepiper/unbanished (23 stars, last pushed 22d ago), licensed Apache-2.0. It adds 6,043 tokens to every session, about $0.0242 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-15.

Related

unbanished AGENTS.md compared with instructions from other repositories

unbanished AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
unbanished AGENTS.mdtanepiper/unbanishedInstructions file2322d agoApache-2.0A6,043Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA8,130Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file284ktodayMITA4,342Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,153GitHub Copilot