design-integrity-guardrails: Instructions file for Codex

AGENTS.md

design-integrity-guardrails AGENTS.md is an instructions file for Codex, OpenCode from a1024053774/design-integrity-guardrails. It costs 545 tokens per session, scanned A, original, MIT.

A set of AGENTS.md instructions for coding agents working in a repository. It defines how to inspect code, plan changes, control scope, handle uncertainty, and verify work.

In plain words
What is it for?
It guides repository tasks such as reading code before editing, setting acceptance conditions, handling risks, and running focused tests and reviews.
Why use it?
It reduces guesswork and prevents agents from making unnecessary changes or claiming work is complete without evidence.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; reads ~/.codex paths.

This is a1024053774/design-integrity-guardrails's own configuration. It tells Codex and OpenCode how to work on design-integrity-guardrails 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 design-integrity-guardrails configures →

Reuse

Borrowing it

Nothing to install: this file belongs to a1024053774/design-integrity-guardrails. 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/a1024053774/design-integrity-guardrails/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/a1024053774/design-integrity-guardrails

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 design-integrity-guardrails AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/a1024053774/design-integrity-guardrails/agents-md"><img src="https://agentmods.dev/badge/instructions/a1024053774/design-integrity-guardrails/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 545 This file is loaded in full into every session.
When invoked 545 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.00545 $0.00545
Opus 5.5 $0.00218 $0.00218
Sonnet 5.5 $0.00109 $0.00109
Haiku 4.5 $0.00055 $0.00055

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

Security

Grade A, and why

design-integrity-guardrails 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 · 37 lines

What it actually says

Agent 工作约定(项目级模板)

本模板只写项目特有的规则。跨项目的个人默认,例如读够上下文、最小计划、授权边界、停下上报、 测试预算、状态词汇和 Skill 路由,放在全局 ~/.codex/AGENTS.md / ~/.claude/CLAUDE.md, 这里不重复。复制到项目后,把尖括号里的内容换成本项目的事实,用不上的段落直接删掉。

项目事实

  • 目标与非目标:<一两句>
  • 唯一事实源:<.project-map/MAP.md 或本项目已有的账本>。不另建 REALITY.md、第二套计划 或并行状态文件;派生文档不得凌驾于代码、实测事实或这份事实源。
  • 常用命令:<构建、测试、启动>
  • 验收入口:<真实入口,以及哪类结论需要哪一层证据>

改动边界

  1. 新增第二条生产路径时,必须能指出真实调用方/契约、故障模式、所有权、优先级和移除条件; 否则停下来改小方案。
  2. 安全、隐私、凭据、数据丢失、权限、迁移和外部副作用按本项目的真实威胁模型处理: <写明威胁模型,例如"默认操作者是自己机器上的合作者">。

测试预算

  • 每个新增测试都要说明它验证哪条验收条件、没有它会漏掉哪个真实回归,以及为什么现有证据 不足。测试数量和代码长度不是充分性的标准;需要更多覆盖时,按不同契约、边界或故障模式 说明理由。
  • <本项目不需要的测试形式,例如:没有证据时不新增矩阵、快照、端到端框架或测试基础设施。>

复审触发

  • <本项目里属于评测面的目录,例如 eval/、benchmark/、golden/。改动它们时走 behavioral-acceptance-review,实现者新增的测试只是待审证据,不是唯一 oracle。>

发布

  • 提交、推送、发布、部署或合并只在获得明确授权时执行;普通推送失败时不改用强推。
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 Changed · -43 lines · -1,008 tokens per session fd3125343c97
  2. 1mo ago Changed · +12 lines · +283 tokens per session 42e084947f4a
  3. 2mo ago First seen · 68 lines · 1,270 tokens per session scan A 219e1f605b66

Subscribe to this mod's changes

design-integrity-guardrails AGENTS.md is an instructions file published in the GitHub repository a1024053774/design-integrity-guardrails (0 stars, last pushed 28d ago), licensed MIT. It adds 545 tokens to every session, about $0.0022 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

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

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens