chiwei-platform: Instructions file for Codex

AGENTS.md

chiwei-platform AGENTS.md is an instructions file for Codex, OpenCode from bezhai/chiwei-platform. It costs 341 tokens per session, scanned A, original, MIT.

A project instruction guide for AI coding agents working on the chiwei-platform repository. It points them to the project documents, safety rules, development process, and testing guidance.

In plain words
What is it for?
Use it when an AI agent must understand which documents to read, how changes are approved, how work is tested, and how Claude Code procedures map to Codex.
Why use it?
It reduces the need to explain the repository’s rules and structure in every AI-assisted coding session.

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 bezhai/chiwei-platform's own configuration. It tells Codex and OpenCode how to work on chiwei-platform 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 chiwei-platform configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bezhai/chiwei-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.

Copy the file
curl -O https://raw.githubusercontent.com/bezhai/chiwei-platform/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/bezhai/chiwei-platform

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 chiwei-platform AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/bezhai/chiwei-platform/agents-md"><img src="https://agentmods.dev/badge/instructions/bezhai/chiwei-platform/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 341 This file is loaded in full into every session.
When invoked 341 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.00341 $0.00341
Opus 5.5 $0.00136 $0.00136
Sonnet 5.5 $0.00068 $0.00068
Haiku 4.5 $0.00034 $0.00034

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

Security

Grade A, and why

chiwei-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 13d 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 · 20 lines

What it actually says

AGENTS.md

本项目的 AI 协作规范分布在以下文件中,所有 AI Agent 必须遵守:

Codex 主会话的机制映射

CLAUDE.md 以 Claude Code 的机制描述,规则本身适用于所有 AI 工具。Codex 作为主会话时:

Claude Code 机制 Codex 等价
子 agent spawn_agent(在 prompt 里说明任务性质:调研还是实现)
/ship、/ops 等 slash command 按 CLAUDE.md 和对应 .claude/skills/*/SKILL.md 手动执行
.claude/hooks/enforce-routing.sh 不生效,CLAUDE.md「操作边界」里的限制只能靠自律
.claude/settings.json 权限 不生效,同上
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. 13d ago Changed · -3 tokens per session 6f009e0cc0b8
  2. 1mo ago Changed · -13 lines · -206 tokens per session 086c14209eef
  3. 2mo ago First seen · 33 lines · 550 tokens per session scan A d2dda58bd38b

Subscribe to this mod's changes

chiwei-platform AGENTS.md is an instructions file published in the GitHub repository bezhai/chiwei-platform (22 stars, last pushed 2d ago), licensed MIT. It adds 341 tokens to every session, about $0.0014 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

chiwei-platform AGENTS.md compared with instructions from other repositories

chiwei-platform AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
chiwei-platform AGENTS.mdbezhai/chiwei-platformInstructions file222d agoMITA341Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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