rustzen-admin: Instructions file for Codex

AGENTS.md

rustzen-admin AGENTS.md is an instructions file for Codex, OpenCode from idaibin/rustzen-admin. It costs 770 tokens per session, scanned A, original, Apache-2.0.

A project guide for RustZen Admin, a Rust-based web administration project. It defines which files are authoritative and the rules agents should follow when changing the codebase.

In plain words
What is it for?
Use it to decide what to read first, locate product and architecture information, and follow repository-specific coding and command rules.
Why use it?
It prevents agents from using outdated documentation or crossing boundaries between shared code, backends, frontend code, and deployment files.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 rustzen-admin AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/idaibin/rustzen-admin/agents-md"><img src="https://agentmods.dev/badge/instructions/idaibin/rustzen-admin/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 770 This file is loaded in full into every session.
When invoked 770 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.00770 $0.00770
Opus 5.5 $0.00308 $0.00308
Sonnet 5.5 $0.00154 $0.00154
Haiku 4.5 $0.00077 $0.00077

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

Security

Grade A, and why

rustzen-admin 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 28d 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 · 66 lines

How it starts

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

Repository Rules

Source of Truth

Reading Order

Unless explicitly relative (such as ../../DESIGN.md), docs/ and command paths in this repository's nested guidance are relative to the repository root.

  1. Read README.md.
  2. Read AGENTS.md.
  3. For product boundary, positioning, direction, or module-purpose decisions, read docs/product/product.md.
  4. Read the nearest subdirectory AGENTS.md.
  5. Read only the relevant guide in docs/guides/.
  6. Use docs/reference/ only for deeper context.

Boundaries

  • Rustzen classification: Web/Rust A-class reference layout.
  • Shared auth and permission capability code lives in crates/auth/.
  • Shared Manifest, route, and delegation contracts live in crates/ipc/.
  • Backends live in apps/admin/, apps/monitor/, apps/insights/, and apps/reports/.
  • Each backend owns its migrations under its application directory.
  • Frontend lives in apps/web/.
  • Deployment assets live in deploy/.
  • Root keeps workspace metadata, docs, command entry points, and shared crates.
  • Deployment contract uses one signed target/rz/rz-<version>-<arch>.tar bundle, /opt/rz, deploy/rz-full.service, deploy/rz-recovery.service, four server units, and deploy/setup-layout.sh.
  • Do not apply Peripheral, Tauri client, or legacy zen-server / zen-web layout rules to this repository.
  • Do not add systemd User/Group, hardening, or install-path permission changes without reviewing deploy/setup-layout.sh and the /opt runtime directory ownership model together.

Working Rules

  • Versioning belongs to rustzen-admin independently of ops-suite and former standalone products. Follow this repository's CHANGELOG.md and explicitly approved release plan; keep unreleased work under Unreleased without an implicit version bump. Synchronize the workspace, Web package, lockfile, and current examples only when a version change is authorized.
  • This repository is an initialization template. Maintain only the final fresh-install baseline; compatibility with any earlier release, schema, protocol, configuration, path, or persisted data is out of scope.
  • When a schema changes, update that application's existing initialization migration directly. Do not add sequential upgrade migrations, legacy data conversion, dual-read or dual-write paths, fallback branches, rollback compatibility, or old-database support.
  • Acceptance starts from a newly initialized database. Do not delete an existing database during implementation unless the user explicitly requests that destructive action.
  • Keep stable product decisions in docs/product/product.md; keep stable implementation facts and rules in docs/architecture.md and docs/guides/.
  • Do not use docs/reference/ or docs/history/ as default implementation truth.
  • SQLite is the default storage backend.
  • Update code, docs, and commands together when structure changes.

Read the full file on GitHub · 66 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. 28d ago Changed · -3 tokens per session f505bd2486f0
  2. 1mo ago Changed · +8 lines · +111 tokens per session 226fced5da3c
  3. 2mo ago First seen · 58 lines · 662 tokens per session scan A 630ef14169c8

Subscribe to this mod's changes

rustzen-admin AGENTS.md is an instructions file published in the GitHub repository idaibin/rustzen-admin (172 stars, last pushed 8d ago), licensed Apache-2.0. It adds 770 tokens to every session, about $0.0031 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

rustzen-admin AGENTS.md compared with instructions from other repositories

rustzen-admin AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rustzen-admin AGENTS.mdidaibin/rustzen-adminInstructions file1728d agoApache-2.0A770Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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