coding-agent-safety-gate: Instructions file for Codex

AGENTS.md

coding-agent-safety-gate AGENTS.md is an instructions file for Codex, OpenCode from ASER-ho/coding-agent-safety-gate. It costs 589 tokens per session, scanned A, original, MIT.

A set of safety instructions for AI coding agents working in a documentation-only repository containing Markdown files.

In plain words
What is it for?
Use it to constrain repository edits, require human approval for rule-breaking actions, protect confidential information, and flag unclear work for human review.
Why use it?
It prevents agents from making unapproved changes, handling real secrets, adding software or automation, or claiming work is complete without evidence.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions Codex; mentions Gemini CLI.

This is ASER-ho/coding-agent-safety-gate's own configuration. It tells Codex and OpenCode how to work on coding-agent-safety-gate 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 coding-agent-safety-gate configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ASER-ho/coding-agent-safety-gate. 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/ASER-ho/coding-agent-safety-gate/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/ASER-ho/coding-agent-safety-gate

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 coding-agent-safety-gate AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/aser-ho/coding-agent-safety-gate/agents-md"><img src="https://agentmods.dev/badge/instructions/aser-ho/coding-agent-safety-gate/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 589 This file is loaded in full into every session.
When invoked 589 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.00589 $0.00589
Opus 5.5 $0.00236 $0.00236
Sonnet 5.5 $0.00118 $0.00118
Haiku 4.5 $0.00059 $0.00059

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

Security

Grade A, and why

coding-agent-safety-gate 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 1mo 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 · 38 lines

What it actually says

AGENTS / 代理规则

本文件由 AI 编程助手(Claude Code、Codex、Cursor、Gemini CLI 等)进入仓库时读取,定义它们必须遵守的安全约束。

This file is read by AI coding agents (Claude Code, Codex, Cursor, Gemini CLI, and others) when they enter this repository. It defines the safety constraints they must follow.

仓库类型 / Repository type

本仓库是文档优先的。只包含 Markdown 文件:一个 skill 定义、模板、文档和示例。没有运行时代码、没有 package.json、没有依赖、没有自动化。

This repository is documentation-first. It contains only Markdown files: a skill definition, templates, docs, and examples. There is no runtime code, no package.json, no dependencies, and no automation.

AI 代理规则 / Rules for AI coding agents

在本仓库工作时:

  • 规则 #1 — 在违反本文件任何规则之前,必须先停下来,获得用户的明确批准。
  • 优先做小的、仅 Markdown 的改动。
  • 不要新增 CLI、MCP server、VS Code 插件、npm 包、runtime enforcement 工具、secret scanner、GitHub Actions 工作流、release 自动化或任何依赖。
  • 不要读取、打印、推断、请求或存储真实机密(API key、token、cookie、私钥、凭据或 SecretStore 值)。
  • 不要在任何文件中暴露完整的本地机器路径。
  • 未经用户明确批准,不要执行 git push、git tag、创建 release、添加 remote、force push 或重写历史。
  • 未经用户确认,不要决定下一步任务。
  • 在声称完成工作之前提供证据。
  • 如果任务范围不清晰,停止并标记 NEEDS HUMAN REVIEW。

When working in this repository:

  • Rule #1 — stop and get explicit human approval before breaking any rule in this file.
  • Prefer small, Markdown-only changes.
  • Do not add a CLI, MCP server, VS Code plugin, npm package, runtime enforcement tool, secret scanner, GitHub Actions workflow, release automation, or any dependency.
  • Do not read, print, infer, request, or store real secrets (API keys, tokens, cookies, private keys, credentials, or SecretStore values).
  • Do not expose full local machine paths in any file.
  • Do not run git push, git tag, create a release, add a remote, force push, or rewrite history without explicit human approval.
  • Do not decide the next task without human confirmation.
  • Provide evidence before claiming work is complete.
  • If task scope is unclear, stop and mark NEEDS HUMAN REVIEW.
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. 1mo ago First seen · 38 lines · 589 tokens per session scan A 9e6d4336971b

Subscribe to this mod's changes

coding-agent-safety-gate AGENTS.md is an instructions file published in the GitHub repository ASER-ho/coding-agent-safety-gate (2 stars, last pushed 3mo ago), licensed MIT. It adds 589 tokens to every session, about $0.0024 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-31.

Related

Other instructions, from other repositories

agent-rulescope copilot-instructions.md

Copilot instructions for 13624725933/agent-rulescope, a project described as: See exactly which instructions your coding agent inherits. Scan AGENTS.md, CLAUDE.md, Cursor and Copilot rules.

13624725933/agent-rulescope · 25 tokens

agent-rulescope tests.instructions.md

Instructions for 13624725933/agent-rulescope, a project described as: See exactly which instructions your coding agent inherits. Scan AGENTS.md, CLAUDE.md, Cursor and Copilot rules.

13624725933/agent-rulescope · 38 tokens

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 · 9,715 tokens

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.

vercel/next.js · 7,461 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, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 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,680 tokens