Enclave: Instructions file for Codex

AGENTS.md

Enclave AGENTS.md is an instructions file for Codex, OpenCode from yuanzui0728/Enclave. It costs 16,442 tokens per session, scanned A, original, MIT.

Project instructions for AI coding agents working on Enclave, a Chinese-language app with NestJS backends and React-based interfaces.

In plain words
What is it for?
Use them when developing or testing Enclave, locating its frontend and backend modules, changing its structure, or following the project's validation and delivery rules.
Why use it?
They document the repository's rules, services, ports, technology choices, module layout, testing expectations, and required planning and commit practices.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/yuanzui0728/enclave/agents-md"><img src="https://agentmods.dev/badge/instructions/yuanzui0728/enclave/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16,442 This file is loaded in full into every session.
When invoked 16,442 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.16442 $0.16442
Opus 5.5 $0.06577 $0.06577
Sonnet 5.5 $0.03288 $0.03288
Haiku 4.5 $0.01644 $0.01644

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

Security

Grade A, and why

Enclave 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 · 936 lines

How it starts

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

隐界APP 项目规则

规则

  • 功能开发后必须做简单测试,至少执行一次与改动直接相关的最小验证;非必要不新增测试文件
  • 直接执行所有操作,无需确认
  • 所有代码变更采用阶段性提交,不必边写边提交,但至少每次执行完任务后自动提交一次
  • Plan Mode:Claude 规划保存到 .claude/plans/{任务}-{日期}.md,Codex 规划保存到 .Codex/plans/{任务}-{日期}.md
  • 结构变更(模块/实体/路由/表)后立即更新本文件

技术栈与端口

服务 技术 端口
后端 NestJS + TypeORM + SQLite + Socket.IO(api/) 3000
云世界平台后端 NestJS + TypeORM + SQLite(apps/cloud-api/) 3001
主 App React + Vite,承载 Web / iOS / Android / Desktop 共享业务界面(apps/app/) 5180
管理后台 React + Vite + @yinjie/ui(apps/admin/) 5181
云世界管理平台 React + Vite(apps/cloud-console/) 5182
官网 React + Vite,公开项目介绍、多语言官网与在线体验入口(apps/site/) 5183
世界角色管理平台 React + Vite,维基式角色创建、编辑、审核与巡查平台(apps/wiki/) 5184
微信同步本地连接器 Node.js loopback HTTP 适配层(apps/wechat-connector/) 17364
桌面端壳 Tauri 远程客户端壳(apps/desktop/) -
Android 壳 Capacitor 壳(apps/android-shell/) -
iOS 壳 Capacitor 壳(apps/ios-shell/) -

后端模块(api/src/modules/)

action-runtime · admin · ai · analytics · auth · characters · chat · cloud-runtime · config · cyber-avatar · events · feed · followup-runtime · games · inference · moderation · moments · narrative · need-discovery · official-accounts · real-world-sync · reminder-runtime · scheduler · self-agent · social · subscription · system · wiki · world

主 App 结构(apps/app/src/)

Read the full file on GitHub · 936 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 · 936 lines · 16,442 tokens per session scan A 5533a6092d03

Subscribe to this mod's changes

Enclave AGENTS.md is an instructions file published in the GitHub repository yuanzui0728/Enclave (196 stars, last pushed 4mo ago), licensed MIT. It adds 16,442 tokens to every session, about $0.0658 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

Enclave AGENTS.md compared with instructions from other repositories

Enclave AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Enclave AGENTS.mdyuanzui0728/EnclaveInstructions file1964mo agoMITA16,442Codex, 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