agentops: Instructions file for Codex

AGENTS.md

agentops AGENTS.md is an instructions file for Codex, OpenCode from boshu2/agentops. It costs 3,019 tokens per session, scanned C, original, Apache-2.0.

A set of operating rules for coding agents working in the AgentOps repository. It defines how agents plan, make changes, validate them independently, and report evidence.

In plain words
What is it for?
Use it to guide repository exploration, implementation, validation, evidence collection, and reporting for Go and agent-workflow changes.
Why use it?
It gives agents a shared process and clear trust rules, so a change can be checked by someone or something other than the agent that made it.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 agentops AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/boshu2/agentops/agents-md"><img src="https://agentmods.dev/badge/instructions/boshu2/agentops/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,019 This file is loaded in full into every session.
When invoked 3,019 The same file — it is already loaded in full.
Security scan C 1 finding. 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.03019 $0.03019
Opus 5.5 $0.01208 $0.01208
Sonnet 5.5 $0.00604 $0.00604
Haiku 4.5 $0.00302 $0.00302

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

Security

Grade C, and why

agentops AGENTS.md scanned grade C with 1 finding 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 4d 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.

mutating work. Do not use the removed `ao beads dir` command or initialize a new <!-- ao-resolve: ignore -->
AGENTS.md · 234 lines

How it starts

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

AgentOps Operating Contract

For execution steps, final judgment, or evidence storage, read the workflow reference.

AgentOps is the operations layer for agentic engineering: tools, optional skills and evidence for independently judgeable changes. Its federated integration graph connects evidence; tracker, Git and coding agents own work, history and execution. Native execution needs zero mandatory AgentOps skills.

Accepted intent -> native implementation and checks -> one fresh read where a mistake is costly -> finish

Use the existing issue or conversation and load a skill only for a concrete uncertainty or an explicitly selected workflow. Checks and CI are the gate for an ordinary change; a fresh read is for the costly cases named in the charter below. Native goals supply continuity; BD keeps work and handoffs. Neither needs RPI. Creating a goal does not reset the conversation or enforce a resource limit. Delegate focused intent, scope and evidence; retrieve history only when it can change a decision. When a fresh read is owed, assign it once, preserving any required review legs. See the skill menu for optional guidance. Plan states observable behavior in existing domain terms; Validate checks those same accepted examples. Conversation or bead examples suffice.

Repository map and mechanics

Path What it is
cli/ the Go ao tool
skills/ the shipped product; one SKILL.md contract per skill, loaded directly by every runtime
agents/ Claude Code plugin agents (bulk-reader, code-writer, code-reviewer, researcher)
scripts/check-*.sh the deterministic gates
tests/ bats suites
schemas/ evidence contracts (*.schema.json)
docs/adr/ active constraints
.agents/ requested legacy proof and local scratch; preserve by owner policy (ADR-0016)

Build bar for any Go change:

cd cli && go build ./... && go vet ./... && go test ./...

Read the full file on GitHub · 234 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. 4d ago Changed · +17 tokens per session ae0d1da4a8ee
  2. 6d ago Changed · -15 lines · -193 tokens per session c7e32f87dc60
  3. 24d ago Changed · +61 tokens per session ea0c51b52997
  4. 1mo ago Changed · +6 tokens per session scan A → C 5d85ae0d1bf5
  5. 1mo ago Changed · -14 tokens per session 20c2e4c0e3ce
  6. 1mo ago Changed · -2 lines · +84 tokens per session 40f237fdf5b2
  7. 1mo ago Changed · +1 lines · +70 tokens per session f88caf7dc5df
  8. 1mo ago Changed · +5 lines · +46 tokens per session 3cf7748e4712
  9. 1mo ago Changed · -4 lines · -86 tokens per session 96330b863246
  10. 1mo ago First seen · 249 lines · 3,028 tokens per session scan A 2366b5e67410

Subscribe to this mod's changes

agentops AGENTS.md is an instructions file published in the GitHub repository boshu2/agentops (450 stars, last pushed yesterday), licensed Apache-2.0. It adds 3,019 tokens to every session, about $0.0121 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories