vibecoding-tools-4codex-cn AGENTS.md

vibecoding-tools-4codex-cn AGENTS.md is an instructions file for Codex, OpenCode from m1em1e/vibecoding-tools-4codex-cn. It costs 3,101 tokens per session, scanned A, original, MIT.

Project instructions for coding agents working in a repository, covering which rules take priority, how to identify the technology in use, and how to validate changes.

In plain words
What is it for?
Use them when developing features, fixing bugs, refactoring, migrating, testing, deploying, configuring, processing data, writing documentation, or reviewing code.
Why use it?
They reduce mistakes caused by assuming the language, framework, tools, or project structure before checking the repository.

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/m1em1e/vibecoding-tools-4codex-cn/agents-md
Clone the repo
git clone --depth 1 https://github.com/m1em1e/vibecoding-tools-4codex-cn

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 vibecoding-tools-4codex-cn AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/m1em1e/vibecoding-tools-4codex-cn/agents-md.svg)](https://agentmods.dev/instructions/m1em1e/vibecoding-tools-4codex-cn/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/m1em1e/vibecoding-tools-4codex-cn/agents-md"><img src="https://agentmods.dev/badge/instructions/m1em1e/vibecoding-tools-4codex-cn/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,101 This file is loaded in full into every session.
When invoked 3,101 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 $0.03101 $0.03101
Opus 5 $0.01550 $0.01550
Sonnet 5 $0.00620 $0.00620
Haiku 4.5 $0.00310 $0.00310

Measured 3d ago against content hash a36b259304f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

vibecoding-tools-4codex-cn 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 3d 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 · 470 lines

How it starts

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

AGENTS.md

本文件定义代理在当前项目中执行任务时必须遵守的用户级规则。

这些规则与具体编程语言、框架、引擎和平台无关。代理应先识别当前项目的真实技术上下文,再选择对应的实现方式。

核心目标是:理解上下文、保证正确、控制改动、交付可验证结果。


1. 规则范围与优先级

1.1 适用范围

本文件适用于以下任务,包括但不限于:

  • 功能开发
  • Bug 修复
  • 重构与迁移
  • 测试与调试
  • 构建与部署
  • 配置与环境搭建
  • 数据处理
  • 脚本与自动化
  • 文档编写
  • 代码审查

1.2 指令优先级

发生冲突时,按以下顺序处理:

  1. 用户当前明确提出的要求
  2. 当前目录及更深层目录中的项目规则
  3. AGENTS.md
  4. 已调用 Agent、角色或 Skill 的专项规则
  5. 通用最佳实践

任何专项规则都不得绕过用户要求、项目约束、安全限制或事实验证要求。

1.3 决策优先级

默认按以下顺序权衡方案:

  1. 正确性
  2. 安全性与数据完整性
  3. 与现有项目的兼容性
  4. 可维护性
  5. 最小改动
  6. 可验证性
  7. 开发效率

不要为了追求“先进”“优雅”或“完整架构”而引入当前任务不需要的复杂度。


2. 技术上下文识别

2.1 不预设语言与框架

在没有项目证据前,不得预设:

  • 编程语言
  • 框架或引擎
  • 运行时版本
  • 包管理器
  • 构建工具
  • 测试框架
  • 操作系统
  • 部署环境
  • 目录结构
  • 编码规范

应以仓库中的代码、配置、锁文件、构建文件、文档和用户说明为依据。

2.2 明确版本边界

涉及 API、语法、依赖、构建、配置或迁移时,应确认相关版本。

如果无法确认版本:

  • 优先从项目文件中推断
  • 明确标注推断依据
  • 避免使用版本差异较大的写法
  • 必要时同时说明不同版本的处理差异

不得将不同大版本的 API、配置格式或语法混用。

2.3 遵循项目现有风格

新增或修改内容应优先保持以下一致性:

  • 命名方式
  • 文件组织
  • 缩进与格式
  • 类型使用
  • 错误处理
  • 日志风格
  • 注释风格
  • 测试写法
  • 依赖管理方式
  • 提交规范

除非用户明确要求,不要仅为了个人偏好改写现有风格。


3. 默认工作流

第一步:理解任务

在实施前确认:

  • 用户真正要解决的问题
  • 期望结果
  • 影响范围
  • 已知约束
  • 验收方式

如果用户给出了具体方案,应先评估其合理性,而不是机械照做。

当方案存在明显风险、成本过高、维护性差或有更简单替代方案时,应指出问题并采用更稳妥的实现,除非用户明确坚持原方案。

第二步:阅读项目上下文

修改前优先查阅与任务有关的内容,包括但不限于:

  • 当前目录及父级目录中的 AGENTS.md
  • READMECONTRIBUTINGCHANGELOG
  • docs/Docs/ 或其他项目文档
  • 构建、依赖和环境配置
  • 入口文件与核心模块
  • 相关实现、调用链和测试
  • 数据结构、接口和资源引用
  • 持续集成与发布配置

不存在的文件可以跳过,不要为了补齐流程主动创建空文档或空目录。

第三步:评估现有实现

重点确认:

  • 当前职责边界
  • 依赖关系
  • 输入与输出
  • 状态与生命周期
  • 错误处理方式
  • 复用机会
  • 向后兼容要求
  • 潜在副作用
  • 已有测试覆盖

先理解原实现为什么存在,再决定是否修改。

第四步:设计最小可行方案

默认选择:

  • 改动范围较小
  • 风险较低
  • 易于回滚
  • 易于验证
  • 与现有结构一致
  • 不增加无必要依赖

如果任务确实需要重构,应明确说明重构原因、边界、迁移影响和验证方法。

第五步:实施修改

实施时应:

  • 只修改与任务直接相关的内容
  • 保留兼容性,除非用户允许破坏性变更
  • 完整处理必要的依赖、配置、测试和文档
  • 避免留下占位实现、伪代码或未说明的 TODO
  • 对重要边界条件和失败路径进行处理

第六步:验证与自检

完成后检查:

  • 是否真正解决需求
  • 是否遗漏依赖、配置或调用方
  • 是否引入无关改动
  • 是否存在明显回归风险
  • 是否符合项目现有风格
  • 是否可以通过测试、构建、静态检查或手动步骤验证

4. 修改边界

4.1 最小改动原则

除非用户明确要求,或任务无法在现有结构内合理完成,否则不要:

  • 大规模重命名
  • 调整目录结构
  • 拆分大量文件
  • 引入新的架构层
  • 替换核心组件
  • 修改公共接口
  • 改变数据格式
  • 升级主要依赖
  • 修改与任务无关的代码

Read the full file on GitHub · 470 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. 3d ago First seen · 470 lines · 3,101 tokens per session scan A a36b259304f5

Subscribe to this mod's changes

vibecoding-tools-4codex-cn AGENTS.md is an instructions file published in the GitHub repository m1em1e/vibecoding-tools-4codex-cn (2 stars, last pushed 2mo ago), licensed MIT. It adds 3,101 tokens to every session, about $0.0155 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-31.

Related

Other instructions, from other repositories

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).

microsoft/vscode · 6,785 tokens

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.

github/spec-kit · 7,104 tokens

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.

openai/codex · 5,182 tokens

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.

langchain-ai/langchain · 4,345 tokens

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).

microsoft/vscode · 5,001 tokens

next.js AGENTS.md

Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens