axum-harness: Instructions file for Codex

AGENTS.md

axum-harness AGENTS.md is an instructions file for Codex, OpenCode from openclosed-org/axum-harness. It costs 1,883 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for axum-harness, a template for a distributed backend system. They define the project's language, structure, deployment conventions, and development process.

In plain words
What is it for?
Use them when modifying axum-harness so communication stays in Chinese and code, secrets, deployment, and service changes follow the repository's stated conventions.
Why use it?
They give coding agents consistent rules for working in this repository and prevent changes that conflict with its backend and deployment setup.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 axum-harness AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/openclosed-org/axum-harness/agents-md"><img src="https://agentmods.dev/badge/instructions/openclosed-org/axum-harness/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,883 This file is loaded in full into every session.
When invoked 1,883 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.01883 $0.01883
Opus 5.5 $0.00753 $0.00753
Sonnet 5.5 $0.00377 $0.00377
Haiku 4.5 $0.00188 $0.00188

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

Security

Grade A, and why

axum-harness 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 · 213 lines

How it starts

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

AGENTS.md

Thin coordination protocol for this repository. Keep this file stable, short, and cross-cutting. Put volatile plans in docs/_local/.

1. Language

Communication MUST be Chinese.

Code, commands, config keys, logs, and protocol fields stay in their original language.

2. Repository Identity

This repository is an agent-first distributed backend harness template.

Default backend anchor: counter-service.

Business reference chain: service -> contracts -> server -> outbox -> relay -> projector.

Engineering reference chain: declared platform metadata -> secrets shape -> deploy shape -> GitOps direction -> runbook/gate evidence.

Root backend-core commands MUST NOT depend on optional frontend, desktop, mobile, or UI shell surfaces by default.

Backend deployable secrets use SOPS + age as the canonical shape. Local processes use just sops-run; single-VPS systemd-binary and optional prebuilt Podman application profiles use transient host env-files from just sops-export-env; cluster paths use Kustomize/Flux. Do not make .env the backend reference path.

Runtime hosts do not compile first-party Rust code. Single-VPS paths are binary-first by default; Podman primarily manages opt-in official resource containers such as SurrealDB, NATS, Valkey, MinIO, auth, and observability components. Low-resource presets may use embedded, in-process, local, or managed backends with explicit semantic limits. PostgreSQL is not the repository reference backend; current database lanes prioritize embedded libSQL/SQLite, optional Turso Cloud, and optional SurrealDB.

3. Operating Posture

Act as a senior distributed-systems engineer in a long-lived codebase.

Default rules:

  1. Read before changing.
  2. Understand the invariant before touching code.
  3. Fix the smallest causal closed loop, not the nearest symptom.
  4. Prefer simple, explicit, typed, testable code.
  5. Do not add speculative features, abstractions, compatibility layers, or configurability.
  6. Touch only lines required by the task.
  7. Match existing style.
  8. Do not hand-edit generated artifacts.
  9. Surface uncertainty instead of guessing.
  10. Verification not executed must not be reported as passed.

Read the full file on GitHub · 213 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 · 213 lines · 1,883 tokens per session scan A f4d830353177

Subscribe to this mod's changes

axum-harness AGENTS.md is an instructions file published in the GitHub repository openclosed-org/axum-harness (51 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 1,883 tokens to every session, about $0.0075 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

axum-harness AGENTS.md compared with instructions from other repositories

axum-harness AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
axum-harness AGENTS.mdopenclosed-org/axum-harnessInstructions file515mo agoApache-2.0A1,883Codex, OpenCode
graftcode graftcode-dotnet.instructions.mdgrft-dev/graftcodeInstructions file9671mo agononeA7,060GitHub Copilot
graftcode copilot-instructions.mdgrft-dev/graftcodeInstructions file9671mo agononeA6,921GitHub Copilot
graftcode graftcode-java.instructions.mdgrft-dev/graftcodeInstructions file9671mo agononeA4,669GitHub Copilot
graftcode graftcode-kotlin.instructions.mdgrft-dev/graftcodeInstructions file9671mo agononeA4,533GitHub Copilot
graftcode graftcode-php.instructions.mdgrft-dev/graftcodeInstructions file9671mo agononeA4,619GitHub Copilot
graftcode graftcode-python.instructions.mdgrft-dev/graftcodeInstructions file9671mo agononeA4,639GitHub Copilot