TenonAdmin: Instructions file for Codex

AGENTS.md

TenonAdmin AGENTS.md is an instructions file for Codex, OpenCode from Tenon-Net/TenonAdmin. It costs 3,733 tokens per session, scanned A, original, Apache-2.0.

A repository instruction file for TenonAdmin, a .NET administration framework distributed as NuGet packages. It records project rules for product contracts, package dependencies, service replacement, code layers, and Vue and React web templates.

In plain words
What is it for?
Use it as the source of repository rules when modifying TenonAdmin, including its .NET backend, database access, service registration, Vue frontend, or React frontend.
Why use it?
It gives coding agents the project-specific constraints they need before making changes. This helps preserve compatibility between the framework, its extension points, backend layers, and frontend templates.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tenon-net/tenonadmin/agents-md"><img src="https://agentmods.dev/badge/instructions/tenon-net/tenonadmin/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,733 This file is loaded in full into every session.
When invoked 3,733 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.03733 $0.03733
Opus 5.5 $0.01493 $0.01493
Sonnet 5.5 $0.00747 $0.00747
Haiku 4.5 $0.00373 $0.00373

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

Security

Grade A, and why

TenonAdmin 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 today.

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

How it starts

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

AGENTS.md

本文件是 Codex 与 Claude Code 共用的仓库指令唯一来源,包含产品契约、任务参考和工作规则。CLAUDE.md 仅作为 Claude Code 的导入入口;修改共同规则时只编辑本文件。

Product contracts

TenonAdmin (榫卯) is a distributable .NET 10 admin kernel shipped as NuGet packages. Consumers replace built-in services without forking.

  • Preserve replaceability: interface-backed services, overridable virtual steps, and TryAdd* registration. Consumer registrations before AddTenonAdmin() win. The ReplaceabilityTests contracts also protect ApplicationAssemblies entity/controller discovery.
  • Runtime dependencies in core packages are SqlSugarCore and Microsoft.* only. Security fixes may directly pin existing transitive dependencies without adding runtime libraries. Manage package versions in backend/Directory.Packages.props.
  • Layering: Core contracts ← SqlSugar data access ← Services domain/entities ← AspNetCore host integration; the TenonAdmin meta-package references AspNetCore. Core has no SqlSugar/ASP.NET dependency.
  • web/ (Vue/Naive UI) and web-react/ (React/Ant Design) are independent, self-contained templates against the same API. Their duplication is intentional; no cross-template imports, shared layer, or requirement to bundle both. Work on the requested template; backend contract changes require checking both consumers.
  • Permissions are normalized routes (VERB:/api/...); business errors use numeric ErrorCode, localized by the frontend. Preserve session revocation, data-scope filters, and automatic audit fields.
  • Generate each frontend's src/api/schema.d.ts from OpenAPI; do not hand-edit it.
  • Comments and documentation are Chinese; commits use English conventional commits (type(scope): subject).

Task context

按当前任务需要的契约、模式或验证方式查阅下表中的相关章节;可复用本轮已读且未变化的上下文。局部文案或格式修改只需目标文件及其适用约束。

Task 按需参考
Backend services, DI, auth, database, bootstrap Repository reference: backend and relevant tests/callers
Vue 开发、调试、测试与审查 先按下方「Vue 开发规范」加载技能,再查阅 web/COMPONENTS.md、web/DESIGN.md 和 Vue architecture
React pages/components web-react/COMPONENTS.md, React architecture; use stable zustand selectors and Ant Design 6 APIs
CI, database test performance, template packaging Repository reference: CI; preserve multi-replica smoke coverage and nightly full SQL Server coverage
New module, entity, CRUD, jobs, import/export, service replacement Select the recipe in skills/README.md; complete modules start at new-module
site/ pages or root README*.md: writing, editing, translation skills/write-docs.md: voice, scope, README presentation, translation and validation
Release/version/tag/NuGet skills/tenon-release.md; human runbook: docs/releasing.md
Domain terminology or architecture decisions docs/agents/domain.md; existing CONTEXT.md and relevant ADRs
GitHub issues/PRDs or triage issue tracker, label mapping

Read the full file on GitHub · 174 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. today First seen · 174 lines · 3,733 tokens per session scan A 8325713b5347

Subscribe to this mod's changes

TenonAdmin AGENTS.md is an instructions file published in the GitHub repository Tenon-Net/TenonAdmin (41 stars, last pushed 15d ago), licensed Apache-2.0. It adds 3,733 tokens to every session, about $0.0149 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-07.

Related

TenonAdmin AGENTS.md compared with instructions from other repositories

TenonAdmin AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
TenonAdmin AGENTS.mdTenon-Net/TenonAdminInstructions file4115d agoApache-2.0A3,733Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k3d agoMITA4,313Codex, OpenCode