Borrowing it
Nothing to install: this file belongs to RandyChen1985/nanzi-ai-agent-platform. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/RandyChen1985/nanzi-ai-agent-platform/main/AGENTS.mdgit clone --depth 1 https://github.com/RandyChen1985/nanzi-ai-agent-platformWrote 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.
[](https://agentmods.dev/instructions/randychen1985/nanzi-ai-agent-platform/agents-md)<a href="https://agentmods.dev/instructions/randychen1985/nanzi-ai-agent-platform/agents-md"><img src="https://agentmods.dev/badge/instructions/randychen1985/nanzi-ai-agent-platform/agents-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00831 | $0.00831 |
| Opus 5 | $0.00415 | $0.00415 |
| Sonnet 5 | $0.00166 | $0.00166 |
| Haiku 4.5 | $0.00083 | $0.00083 |
Grade A, and why
nanzi-ai-agent-platform 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 4d 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.
What it actually says
交流语言
- 始终使用中文交流,包括中间过程中的推理与思考,以及所有回复、汇报与文档说明。所有说明请优先用中文。与用户沟通、解释、总结时一律使用中文。
项目技术栈与关键边界
- 运行时:Python 3.11;Docker 基础镜像为
python:3.11-slim。禁止使用仅 Python 3.12+ 支持的语法。 - 后端:FastAPI + Uvicorn + SQLAlchemy 2.x 异步 ORM + Pydantic 2。
- 前端:Vue 3 + TypeScript + Vite 7 + Tailwind CSS 3,按现有 Vue 工程实现,不引入 React 方向的方案。
- AI 编排:AgentScope 2.x 是主运行时;OpenClaw、RAGFlow、MCP 是独立集成边界。修改路由或执行链前,先追踪 router、dispatcher、runner、tool 和权限预检。
- 数据库:平台主库默认 MySQL,也支持 PostgreSQL。MySQL 使用
db-prod/,PostgreSQL 使用db-prod-pg/,两套迁移不可混用;平台主库与外部数据源支持必须分开处理。 - Redis:Redis Stack/RediSearch 是平台运行依赖。
- 权限:
menu:*控制菜单显示,element:*控制具体功能。平台技能管理和待审核使用element:skills:admin。 - 测试:后端使用 pytest;纯前端契约测试使用
pytest --confcutdir=tests/frontend,前端类型检查使用vue-tsc --noEmit。 - 数据库变更:只新增对应版本的迁移 SQL,不直接修改本地或线上数据库。
- 执行边界:Agent 不主动执行
./dev.sh、部署脚本或生产数据库操作;服务启停和部署由用户在控制台执行。
Git 协作:用户说「代码已合」
用户表示 PR/代码已合并后,必须立即执行本地 git 同步,不要只口头确认:
git fetch origingit checkout main && git pull origin maingit checkout dev-agentscope && git merge main(或git rebase main,以DEVELOPMENT.md为准)git push origin dev-agentscope(若本地领先远程)- 汇报:
main/dev-agentscope最新 commit、是否与远程一致 - 提醒用户自行在控制台执行
./dev.sh(Agent 不代跑)
不要在用户未要求时擅自创建 PR 或 force push。
Git 协作:创建 / 更新 Pull Request
用户要求创建或更新 PR 时,必须按仓库根目录 PULL_REQUEST_TEMPLATE.md 填写标题与正文(概要、核心变更、表结构变更清单、Commit Log、测试覆盖、备注),不要使用默认的 Summary/Test plan 两段式。提交前同步更新 tests/CHECKLIST.md,并在 PR 中注明。
开发环境服务启停
任何场景下均严禁主动或自动运行 ./dev.sh 等编译、部署与启动脚本(包括用户说「代码已合」时)。所有的服务编译、启停和重启测试均需交由用户在控制台手动操作。修改完毕或同步完成后,Agent 仅负责通知用户代码/分支已就绪,并提醒用户自行执行 ./dev.sh。
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.
- 4d ago Changed · +7 tokens per session 46261821c934
- 8d ago First seen · 38 lines · 824 tokens per session scan A 2ca55a5b9274
nanzi-ai-agent-platform AGENTS.md is an instructions file published in the GitHub repository RandyChen1985/nanzi-ai-agent-platform (164 stars, last pushed today), licensed MIT. It adds 831 tokens to every session, about $0.0042 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.
Other instructions, from other repositories
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.