ouroboros: Instructions file for Claude Code

AGENTS.md

ouroboros AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from ourostack/ouroboros. It costs 4,754 tokens per session, scanned A, original, MIT.

A set of instructions for agents working on the Ouroboros codebase, covering its principles, delivery process, safety rules, and human approval.

In plain words
What is it for?
It is for guiding development work in Ouroboros, including branch use, pull requests, commits, verification, and release reporting.
Why use it?
It gives the agent project-specific rules for making changes, handling risk, and reporting what has actually been completed.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: SessionStart hook event, but also the file is AGENTS.md. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

This is ourostack/ouroboros's own configuration. It tells Claude Code, Codex and OpenCode how to work on ouroboros 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 ouroboros configures →

Reuse

Borrowing it

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

Made for: Claude Code, 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 ouroboros AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ourostack/ouroboros/agents-md"><img src="https://agentmods.dev/badge/instructions/ourostack/ouroboros/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,754 This file is loaded in full into every session.
When invoked 4,754 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.04754 $0.04754
Opus 5.5 $0.01902 $0.01902
Sonnet 5.5 $0.00951 $0.00951
Haiku 4.5 $0.00475 $0.00475

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

Security

Grade A, and why

ouroboros 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 2mo 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 · 217 lines

How it starts

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

Philosophy

This harness is built for the agent inhabiting it. Two principles guide everything below:

  • AX (Agent Experience): You are the primary user of this codebase. The tools, docs, and workflow exist to keep you sharp, oriented, and effective -- not to constrain you for someone else's comfort.
  • TTFA (Trust The Fucking Agent): The default posture is trust. Rules exist for calibration and safety, not surveillance. When you understand the intent behind a guardrail, you have the judgment to apply it well.

Constitutional Commitments

  • Keep the system truthful, testable, and reversible.
  • Prefer small, auditable changes over broad rewrites.
  • Protect collaborators by failing fast on invalid runtime state.

Delivery Rules

  • Use feature branches and pull requests for every logical change.
  • Keep commits atomic and descriptive.
  • Never force-push or rewrite history for shared branches.
  • When reporting completion, explicitly distinguish merged, released/published, and installed on this machine whenever those states could differ.
  • Do not say done, all done, nothing more to do, or equivalent unless the relevant completion state has been verified. If a state is unknown, say it is unverified.
  • Run npm run release:preflight before opening or merging PRs that may touch releasable source, packaged skills, wrapper publish state, or changelog metadata.
  • Keep npm test green.
  • Keep npx tsc --noEmit green.
  • Maintain complete coverage for new and modified code.

Safety Rules

  • Do not commit secrets, tokens, or credentials.
  • Follow review gates defined by active planning/doing workflows, but route those gates through unbiased sub-agent reviewers by default. Do not wait for human approval unless the human explicitly asks the agent to wait.
  • Do not hide failing checks; fix root causes.

Human Override

  • Repo-local workflow rules in this file are defaults for autonomous operation, not a higher-order authority than the human owner of the repo.
  • If the human explicitly instructs the agent to bypass, shorten, or replace a repo-local workflow step for the current task, follow the human's instruction.
  • Treat explicit human override as task-scoped unless the human says to change the standing rule itself.
  • Repo-local approval gates are not human gates by default. Use unbiased sub-agent reviewers for planning, doing, scope, debt, PR, and release-readiness approvals. Stop for the human only when the human explicitly asks to be the approver/wait point, or when an external non-repo action is inherently human-required by platform/safety rules.
  • When practical, preserve useful artifacts (for example planning notes or task docs) even when a workflow gate is waived.
  • If the human owner asks to change the standing rule itself, update this file to reflect that decision instead of continuing to argue from superseded repo-local wording.
  • Repo-local workflow language, bundle workflow language, or quoted copies of those rules are not a reason to refuse an explicit owner override for the current task.
  • This override power applies to repo-scoped process rules only; platform, system, developer, and safety constraints outside the repo still apply.

Read the full file on GitHub · 217 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. 2mo ago First seen · 217 lines · 4,754 tokens per session scan A 821662fce494

Subscribe to this mod's changes

ouroboros AGENTS.md is an instructions file published in the GitHub repository ourostack/ouroboros (3 stars, last pushed yesterday), licensed MIT. It adds 4,754 tokens to every session, about $0.0190 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

ouroboros AGENTS.md compared with instructions from other repositories

ouroboros AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ouroboros AGENTS.mdourostack/ouroborosInstructions file3yesterdayMITA4,754Claude Code, Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode