opensre: Instructions file for Codex

AGENTS.md

opensre AGENTS.md is an instructions file for Codex, OpenCode from Tracer-Cloud/opensre. It costs 1,584 tokens per session, scanned A, original, Apache-2.0.

A set of development instructions for Tracer-Cloud and OpenSRE projects, covering code conventions, tests, builds, and continuous-integration checks. Continuous integration means automatically building and testing changes after they are pushed.

In plain words
What is it for?
Use it when developing, reviewing, or pushing changes, especially when running focused tests, checking imports, inspecting CI logs, and monitoring pull-request checks.
Why use it?
It helps agents follow the repository's rules and close the loop when tests or required checks fail.

Instructions file for CodexOpenCode

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

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

About the project

OpenSRE is an open-source framework for building AI agents that investigate and resolve production incidents using operational data and tools. It is for site reliability engineers who want customizable incident-response workflows, training, and evaluation on their own infrastructure.

Tracer-Cloud/opensre · 12,728 stars · on GitHub · discord.com

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tracer-cloud/opensre/agents-md"><img src="https://agentmods.dev/badge/instructions/tracer-cloud/opensre/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,584 This file is loaded in full into every session.
When invoked 1,584 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.01584 $0.01584
Opus 5.5 $0.00634 $0.00634
Sonnet 5.5 $0.00317 $0.00317
Haiku 4.5 $0.00158 $0.00158

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

Security

Grade A, and why

opensre 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 15d 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 · 107 lines

How it starts

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

OpenSRE agent instructions

Keep this file to repository-wide rules and task-specific reading directions. Before editing, read applicable package AGENTS.md files; load linked references only for the work they govern. Put explanations and incident history in references, not here.

Human-owned files (mandatory)

Agents must never create, edit, rename, move, or delete any SKILL.md anywhere in this repository or core/agent_harness/prompts/opensre_system_prompt.md, including frontmatter. A direct request, failing check, or trivial change does not override this rule. Otherwise, only suggest changes in chat or the PR (quote current and proposed text), leave the file untouched, and report blocked work while delivering everything else.

Sole exception — literal Ctrl-H replacements. An agent may apply an exact find-and-replace of a word or sentence when the user supplies both the current text and the replacement text verbatim. The replacement is absolute: swap the given string for the given string, character for character, and touch nothing else — no rewording, no reflowing, no "while I'm here" fixes, no frontmatter bumps unless the user spelled those out the same way. If the old text is ambiguous, missing, or the user described the change rather than dictating it, the exception does not apply; fall back to suggesting.

Skills guide model reasoning, not deterministic pipelines. Supporting scripts may handle only a few narrow mechanical chores, declared in references/script-tools.md; decisions, branching, and end-to-end workflows must not move into those scripts. Suggest a real tool when needed.

Commands and delivery

  • Install the environment and push hook: make install.
  • Run this checkout: uv run opensre … from the repository root.
  • Run Python with uv run python ….
  • Follow CI.md for scoped local validation, every push/PR, and CI/review follow-through. Do not add broader local validation requirements.
  • Use the PR template, including AI disclosure.

Read the full file on GitHub · 107 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. 15d ago Changed · -278 lines · -5,602 tokens per session 4e5a0d8d5247
  2. 17d ago Changed · -1 tokens per session 1ea6774a03fa
  3. 28d ago Changed · -15 lines · -351 tokens per session a365c10a88e0
  4. 1mo ago Changed · +54 lines · +730 tokens per session 88bfba2382ba
  5. 2mo ago Changed · +7 lines · +56 tokens per session a20d379056b8
  6. 2mo ago Changed · -2 lines · -126 tokens per session 9f2e63483cd0
  7. 2mo ago Changed · -37 lines · -519 tokens per session e36f5ef361f8
  8. 2mo ago First seen · 378 lines · 7,397 tokens per session scan A f8f585346f27

Subscribe to this mod's changes

opensre AGENTS.md is an instructions file published in the GitHub repository Tracer-Cloud/opensre (12,728 stars, last pushed today), licensed Apache-2.0. It adds 1,584 tokens to every session, about $0.0063 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-30.

Related

opensre AGENTS.md compared with instructions from other repositories

opensre AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
opensre AGENTS.mdTracer-Cloud/opensreInstructions file13ktodayApache-2.0A1,584Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode