Enclave 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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/yuanzui0728/enclave/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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.08221 $0.08221
Sonnet 5 $0.03288 $0.03288
Haiku 4.5 $0.01644 $0.01644

Measured 6d ago against content hash 5533a6092d03, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 6d 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/uiapps/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. 6d 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 (183 stars, last pushed 2mo ago), licensed MIT. It adds 16,442 tokens to every session, about $0.0822 per session on Opus 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

Other instructions, from other repositories