open-code-review: Instructions file for Codex

AGENTS.md

open-code-review AGENTS.md is an instructions file for Codex, OpenCode from spencermarx/open-code-review. It costs 323 tokens per session, scanned A, original, Apache-2.0.

A set of repository instructions for an AI coding assistant working on the open-code-review project. It covers OpenSpec planning rules, code conventions, and when to follow the project's multi-perspective review workflow.

In plain words
What is it for?
It is for guiding planning, implementation, code conventions, and structured reviews of commits, pull requests, or broad changesets.
Why use it?
It helps the assistant use the project's required documents and practices when making changes or reviewing a large set of changes.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

This is spencermarx/open-code-review's own configuration. It tells Codex and OpenCode how to work on open-code-review 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 open-code-review configures →

Reuse

Borrowing it

Nothing to install: this file belongs to spencermarx/open-code-review. 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/spencermarx/open-code-review/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/spencermarx/open-code-review

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 open-code-review AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/spencermarx/open-code-review/agents-md"><img src="https://agentmods.dev/badge/instructions/spencermarx/open-code-review/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 323 This file is loaded in full into every session.
When invoked 323 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.00323 $0.00323
Opus 5.5 $0.00129 $0.00129
Sonnet 5.5 $0.00065 $0.00065
Haiku 4.5 $0.00032 $0.00032

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

Security

Grade A, and why

open-code-review 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 · 44 lines

What it actually says

OpenSpec Instructions

These instructions are for AI assistants working in this project.

Always open @/openspec/AGENTS.md when the request:

  • Mentions planning or proposals (words like proposal, spec, change, plan)
  • Introduces new capabilities, breaking changes, architecture shifts, or big performance/security work
  • Sounds ambiguous and you need the authoritative spec before coding

Use @/openspec/AGENTS.md to learn:

  • How to create and apply change proposals
  • Spec format and conventions
  • Project structure and guidelines

Keep this managed block so 'openspec update' can refresh the instructions.

Code Conventions

See CLAUDE.md for canonical code conventions

Open Code Review Instructions

These instructions are for AI assistants handling code review in this project.

Always open .ocr/skills/SKILL.md when the request:

  • Asks for code review, PR review, or feedback on changes
  • Mentions "review my code" or similar phrases
  • Wants multi-perspective analysis of code quality
  • Asks to map, organize, or navigate a large changeset

Use .ocr/skills/SKILL.md to learn:

  • How to run the 8-phase review workflow
  • How to generate a Code Review Map for large changesets
  • Available reviewer personas and their focus areas
  • Session management and output format

Keep this managed block so ocr init can refresh the instructions.

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 · 44 lines · 323 tokens per session scan A e2918508f248

Subscribe to this mod's changes

open-code-review AGENTS.md is an instructions file published in the GitHub repository spencermarx/open-code-review (382 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 323 tokens to every session, about $0.0013 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-09-03.

Related

Other instructions, from other repositories