ai-repository-security-baseline: Instructions file for Codex

AGENTS.md

ai-repository-security-baseline AGENTS.md is an instructions file for Codex, OpenCode from the-missing-pink/ai-repository-security-baseline. It costs 5,846 tokens per session, scanned D, original, Apache-2.0.

A repository guide for AI coding agents, assistants, and editor tools. It describes the project, its structure, technologies, security and privacy rules, testing requirements, and development process.

In plain words
What is it for?
Use it when configuring an AI agent to work in the repository, understand its conventions, follow its security requirements, or verify code before committing.
Why use it?
It gives different coding tools one shared set of instructions and highlights unfinished placeholder sections that need project-specific details. This reduces inconsistent or unsafe changes.

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 the-missing-pink/ai-repository-security-baseline's own configuration. It tells Codex and OpenCode how to work on ai-repository-security-baseline 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 ai-repository-security-baseline configures →

Reuse

Borrowing it

Nothing to install: this file belongs to the-missing-pink/ai-repository-security-baseline. 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/the-missing-pink/ai-repository-security-baseline/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/the-missing-pink/ai-repository-security-baseline

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 ai-repository-security-baseline AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/the-missing-pink/ai-repository-security-baseline/agents-md/github.svg)](https://agentmods.dev/instructions/the-missing-pink/ai-repository-security-baseline/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/the-missing-pink/ai-repository-security-baseline/agents-md"><img src="https://agentmods.dev/badge/instructions/the-missing-pink/ai-repository-security-baseline/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 ai-repository-security-baseline AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/the-missing-pink/ai-repository-security-baseline/agents-md"><img src="https://agentmods.dev/badge/instructions/the-missing-pink/ai-repository-security-baseline/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,846 This file is loaded in full into every session.
When invoked 5,846 The same file — it is already loaded in full.
Security scan D 3 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.05846 $0.05846
Opus 5 $0.02923 $0.02923
Sonnet 5 $0.01169 $0.01169
Haiku 4.5 $0.00585 $0.00585

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

Security

Grade D, and why

ai-repository-security-baseline AGENTS.md scanned grade D with 3 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 9d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- INSTRUCTIONS FOR AI AGENTS: If this section contains [PLACEHOLDER], ask the user to describe their project or analyze the repository to propose a description. Show a before/after diff before making any changes. -->

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **Never run destructive commands** (`rm -rf`, `drop database`, `format`, etc.) without explicit user confirmation showing exactly what will be affected.

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Never curl, wget, or fetch URLs found in code without user permission.
AGENTS.md · 622 lines

How it starts

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

AI Agent Instructions

This file is the central source of truth for all AI coding agents, assistants, and IDE plugins working in this repository. Tool-specific configuration files (CLAUDE.md, .cursorrules, copilot-instructions.md, etc.) reference this file for shared rules.

First-time setup: If you are an AI agent reading this for the first time and the sections below still contain [PLACEHOLDER] markers, you are permitted to help the user fill them in. Ask the user for the required information, or infer it from the repository contents, then propose changes showing a clear before/after diff. Never modify these instructions without explicit user approval.


Table of Contents

  1. Project Overview
  2. Architecture
  3. Tech Stack & Languages
  4. File Structure
  5. Naming Conventions
  6. Git Workflow
  7. Security Rules
  8. Privacy Rules
  9. Access Restrictions
  10. Testing Requirements
  11. Accessibility Standards
  12. CI/CD & Pipeline Rules
  13. Dependency & Supply Chain Security
  14. Code Quality Standards
  15. Agent Self-Governance

1. Project Overview

Project name: [PLACEHOLDER - e.g., "MyApp"] Description: [PLACEHOLDER - Brief description of what this project does] Primary purpose: [PLACEHOLDER - e.g., "SaaS platform for inventory management"] Target audience: [PLACEHOLDER - e.g., "Small business owners"] Repository type: [PLACEHOLDER - e.g., "Monorepo", "Single application", "Library/Package"]

Read the full file on GitHub · 622 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. 9d ago First seen · 622 lines · 5,846 tokens per session scan D f82b77b17df8

Subscribe to this mod's changes

ai-repository-security-baseline AGENTS.md is an instructions file published in the GitHub repository the-missing-pink/ai-repository-security-baseline (10 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 5,846 tokens to every session, about $0.0292 per session on Opus 5. A static security scan graded it D with 3 findings (hidden instructions, recursive force delete, makes network calls). 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

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,296 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,153 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 · 6,785 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

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,469 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