openagents: Instructions file for Codex

AGENTS.md

openagents AGENTS.md is an instructions file for Codex, OpenCode from openagents-org/openagents. It costs 1,257 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for coding agents working on the openagents project. They describe branches, where code belongs, and how hosted and self-hosted releases are shipped.

In plain words
What is it for?
Use them when changing openagents code, choosing a branch, preparing a release, or working out whether a change belongs in the open-source project or hosted service.
Why use it?
They help an agent avoid putting hosted-only code in the open-source branch or pushing directly to protected release branches. They also clarify which branch and deployment path each change uses.

Instructions file for CodexOpenCode

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

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

About the project

OpenAgents is a workspace for connecting AI agents so they can collaborate across projects, machines, and services. Developers use its command-line launcher and desktop app to install agent runtimes, configure them, connect agents to shared workspaces, and keep them running in the background. The catalogue contains agents and skills intended to work within this collaborative agent environment.

openagents-org/openagents · 4,480 stars · on GitHub · openagents.org

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/openagents-org/openagents/agents-md"><img src="https://agentmods.dev/badge/instructions/openagents-org/openagents/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,257 This file is loaded in full into every session.
When invoked 1,257 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.01257 $0.01257
Opus 5.5 $0.00503 $0.00503
Sonnet 5.5 $0.00251 $0.00251
Haiku 4.5 $0.00126 $0.00126

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

Security

Grade A, and why

openagents 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 7d 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 · 52 lines

How it starts

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

OpenAgents — notes for coding agents

Branches

Branch What it is What a push does
develop The open-source, self-hostable mainline. Default branch; all normal PRs target it. Preview at workspace-preview.openagents.org (see workspace/AGENTS.md); npm publish of the agent connector on version bumps.
openagents-release Hosted openagents.org production = develop plus the hosted layer (code that only applies to the openagents.org platform). Deploys production: DigitalOcean backend (deploy-digitalocean.yml) and the Vercel frontend (project openagents-workspace, production branch).
release Self-hosted release track. Always a fast-forward of develop; each release is tagged workspace-vX.Y.Z. Nothing deploys. Vercel skips it on purpose.

Never push directly to openagents-release or release; rulesets block it.

What belongs where

  • develop must stay open-source and self-hostable. Don't add openagents.org-only features to it: analytics or tracking (PostHog, GA), the API credits campaign or pilot grants, platform growth or marketing tools, hosted-only integrations, or hardcoded openagents.org infrastructure that a self-hoster can't override.
  • Hosted-only code lives only on openagents-release. Put it there with a PR whose base is openagents-release (merge commit, no squash). Keep hosted code in separate modules, and keep its hooks into core files small. Every develop change then merges into production cleanly.
  • Optional third-party integrations that self-hosters can use with their own credentials stay in develop, gated by env vars. Example: BrowserFabric through BROWSERFABRIC_API_KEY, which falls back to local Playwright when unset.
  • Clients (the agent connector, SDK and launcher) default to openagents.org so hosted onboarding has no setup. Every endpoint must also be overridable for self-hosting, and the override must be documented.
  • Don't delete or rewrite alembic migrations on develop, even for removed hosted features. The chain is linear and production databases depend on it.

Read the full file on GitHub · 52 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. 7d ago Changed · +1 lines · +224 tokens per session a875b8cab42a
  2. 14d ago First seen · 51 lines · 1,033 tokens per session scan A 21569c3d4d20

Subscribe to this mod's changes

openagents AGENTS.md is an instructions file published in the GitHub repository openagents-org/openagents (4,480 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,257 tokens to every session, about $0.0050 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-11-17.

Related

openagents AGENTS.md compared with instructions from other repositories

openagents AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
openagents AGENTS.mdopenagents-org/openagentsInstructions file4.5kyesterdayApache-2.0A1,257Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109ktodayMITA3,077GitHub Copilot