axern: Instructions file for Codex

AGENTS.md

axern AGENTS.md is an instructions file for Codex, OpenCode from cofy-x/axern. It costs 494 tokens per session, scanned A, original, Apache-2.0.

Repository-wide instructions for an AI coding agent working on the axern project. They explain which files to read, which documents or code define the truth, and which local rules apply before changing code.

In plain words
What is it for?
Use them when asking the agent to modify axern code, especially when finding the right subsystem, checking build rules, validating changes, or updating stale documentation.
Why use it?
They reduce unnecessary repository reading and help prevent changes that conflict with local guidance, project structure, or actual code behavior.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/cofy-x/axern/agents-md"><img src="https://agentmods.dev/badge/instructions/cofy-x/axern/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 494 This file is loaded in full into every session.
When invoked 494 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.00494 $0.00494
Opus 5.5 $0.00198 $0.00198
Sonnet 5.5 $0.00099 $0.00099
Haiku 4.5 $0.00049 $0.00049

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

Security

Grade A, and why

axern 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 yesterday.

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 · 22 lines

How it starts

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

Axern Agent Contract

Platform Boundaries

  • Axern is a self-hosted execution platform for AI agents. Prioritize Linux single-host serving and continued agent work; macOS is a client and Linux-VM development host. See the Product Direction and Single-Host Architecture Decision for target scope versus implemented capabilities.
  • The durable execution model is Environment -> Run -> Allocation. Sandbox is an SDK facade over that chain; terminal, process, file, SSH, and Tunnel capabilities bind to an explicit, never-reused Allocation ID.
  • Caller workflows, agent planning, memory, messages, approvals, and semantic retries remain outside Axern. The planned persistent Workspace is a separate data identity, not another execution lifecycle; current writable data remains Allocation-local until the coordinated contract is implemented.
  • gVisor/runsc is the sole long-term sandbox backend. Do not introduce another runtime, runtime registry, or fallback. Missing required isolation or platform capability must fail closed.
  • PostgreSQL is the only authoritative central state backend. Internal schema changes must update the owning model atomically; do not preserve obsolete internal tables, protobuf gaps, aliases, dual reads, or dual writes unless a published compatibility contract explicitly requires them.
  • Keep root deployment contracts cloud-neutral; provider credentials, account setup, and regional orchestration belong outside this repository.

Working Rules

  • Read the applicable subtree AGENTS.md; use the Module Guide to locate owners, Coding Standards for implementation rules, and the Stable Domain Model for public identity or lifecycle changes.
  • Keep behavior in its owning package, depend on narrow capabilities, and do not add catch-all helpers, bridge aliases, or parallel lifecycle paths.
  • Change durable contracts atomically across callers, generated code, tests, and their single authoritative document.

Read the full file on GitHub · 22 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. yesterday Changed · +107 tokens per session b69087e9cf2b
  2. 1mo ago Changed · -29 tokens per session 00bf571ae507
  3. 1mo ago Changed · -14 lines · -349 tokens per session 9a47e9718400
  4. 1mo ago Changed · -1 lines · +62 tokens per session 3827208de9ff
  5. 1mo ago Changed · -64 lines · -417 tokens per session c1b65e7636f1
  6. 1mo ago Changed · +13 lines · +195 tokens per session 8dd057f2aac8
  7. 2mo ago First seen · 88 lines · 925 tokens per session scan A 4a1799c47977

Subscribe to this mod's changes

axern AGENTS.md is an instructions file published in the GitHub repository cofy-x/axern (65 stars, last pushed yesterday), licensed Apache-2.0. It adds 494 tokens to every session, about $0.0020 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

axern AGENTS.md compared with instructions from other repositories

axern AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
axern AGENTS.mdcofy-x/axernInstructions file65yesterdayApache-2.0A494Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot