fonline: Instructions file for Codex

AGENTS.md

fonline AGENTS.md is an instructions file for Codex, OpenCode from cvet/fonline. It costs 4,289 tokens per session, scanned A, original, MIT.

A maintainer guide for the reusable FOnline game engine, the shared software used by games such as Last Frontier.

In plain words
What is it for?
Use it before changing engine code, build tools, resources, tests, or documentation, and when checking whether a feature is reusable across games.
Why use it?
It helps determine whether a change belongs in the engine or in the game that embeds it, while keeping source code and documentation consistent.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/cvet/fonline/agents-md"><img src="https://agentmods.dev/badge/instructions/cvet/fonline/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,289 This file is loaded in full into every session.
When invoked 4,289 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.04289 $0.04289
Opus 5.5 $0.01716 $0.01716
Sonnet 5.5 $0.00858 $0.00858
Haiku 4.5 $0.00429 $0.00429

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

Security

Grade A, and why

fonline 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 · 265 lines

How it starts

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

FOnline Engine — Agent Instructions

This is the reusable Engine's maintainer entry point. Read it fully before Engine work, then open the owning guide. Human entry: README.md. Documentation: English index, Russian mirror. Keep this file concise; detailed contracts belong to their existing owners.

Working agreement

  1. Confirm checkout/branch/diff/scope; preserve unrelated work. Re-anchor from source/plan/diff after handoff. Reports are evidence, not authority.
  2. Read owners, validators and callers: source proves current behavior, owner requirements define intended behavior. Keep game policy/content/tooling outside Engine; fix reusable defects here instead of adding project workarounds.
  3. Finish authorized verification; ask for material decisions or missing access. Establish every required source before multi-source synthesis.
  4. No stage/commit/push/publication/deployment without action/scope authority. Past permission does not cover later tasks. Requested history integration may create its necessary merge. Stay on the requested branch; no generic-workflow branch churn.

Language: commits/prepared messages, PRs/issues, comments, diagnostics, plans and release notes are English. Russian docs translate English; chat language does not change this. Continue existing documents in their own language. No agent signatures.

Artifacts: task screenshots/logs/scripts/downloads/drafts/worker materials use Workspace/<task-id>/; follow an embedding project's explicit artifact root. Standard tool outputs retain their locations. No credentials/private raw sessions in versioned docs; sanitize evidence.

History, compatibility and documentation

  • Rebase unpublished commits, preserve published history. Fetch origin/master before an authorized update, then rebase only unpublished local work. A branch's upstream or earlier pushes do not make its newer commits published. Merge only diverged published histories. No reset/amend/rebase of pushed commits, force-push or remote branch deletion. Before an authorized push, verify git merge-base --is-ancestor <destination-remote-tip> HEAD.
  • Revision updates follow reconciliation: old/new SHAs, complete incoming range, owners/models and validation before dropping safety stashes. Check the embedding gitlink and Engine HEAD separately.
  • Every master update follows versioning: derive the next minor from the latest published master, current UTC year, YEAR.MAJOR.MINOR-dev, dated EN/RU changes and exhaustive migration notes. All change types count. Release branches need an owner command; their cut freezes and advances patch. Local preparation does not authorize publication/commits.
  • Current API, preserved meaning: valid inputs/outputs/units/IDs/defaults/side effects retain meaning. Replacements get distinct names/types/keys/formats and remove old surfaces. No deprecated aliases, shims, permissive parsing or masking; unmigrated consumers fail explicitly. ADR-0002 and migration records own the details.
  • Serialized changes update ///@ MigrationRule; network/runtime compatibility changes bump the current central marker in Source/Common/Common.h. Never copy a historical number or accept mixed metadata bakes. Business migrations stay project-owned.
  • Temporary old-build/platform/dependency restrictions use one ID/date across FO_TEMPORARY_COMPAT, [TemporaryCompat] or CMake TemporaryCompat; run BuildTools/temporary_compat.py. This never authorizes an old API bridge.
  • Update owning docs and EN/RU/generated parity in the same change. Engine docs stand alone; projects may be examples, never normative validation dependencies. Follow documentation maintenance.

Read the full file on GitHub · 265 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 Changed · +40 lines · +660 tokens per session 79980e2833a3
  2. 11d ago Changed · +13 lines · +210 tokens per session cc40e5df1df1
  3. 13d ago Changed · +30 tokens per session cf6b6085c919
  4. 14d ago Changed · -25 lines · -12,675 tokens per session 4815486451fc
  5. 18d ago Changed · +2 lines · +62 tokens per session 37620dad3f6a
  6. 24d ago Changed · +5 tokens per session df80425d35e2
  7. 26d ago Changed · +51 tokens per session 7e2e3e5386b0
  8. 28d ago Changed · +3 lines · +286 tokens per session 1e7a934ac326
  9. 1mo ago Changed · +3 lines · +37 tokens per session 2fd3012c1aac
  10. 1mo ago First seen · 229 lines · 15,623 tokens per session scan A 4169e08d7d47

Subscribe to this mod's changes

fonline AGENTS.md is an instructions file published in the GitHub repository cvet/fonline (343 stars, last pushed yesterday), licensed MIT. It adds 4,289 tokens to every session, about $0.0172 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

fonline AGENTS.md compared with instructions from other repositories

fonline AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fonline AGENTS.mdcvet/fonlineInstructions file343yesterdayMITA4,289Codex, 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