coco: Instructions file for Codex

AGENTS.md

coco AGENTS.md is an instructions file for Codex, OpenCode from coco-research/coco. It costs 659 tokens per session, scanned A, original, Apache-2.0.

A repository instruction file for the coco-research/coco project. It explains which project documents are authoritative, how pull requests should work, and that changes must not be committed.

In plain words
What is it for?
Use it as the starting guidance when an agent works on the coco project.
Why use it?
It gives an AI agent project-specific rules before it edits the repository.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/coco-research/coco/agents-md"><img src="https://agentmods.dev/badge/instructions/coco-research/coco/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 659 This file is loaded in full into every session.
When invoked 659 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.00659 $0.00659
Opus 5.5 $0.00264 $0.00264
Sonnet 5.5 $0.00132 $0.00132
Haiku 4.5 $0.00066 $0.00066

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

Security

Grade A, and why

coco 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 · 55 lines

How it starts

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

AGENTS.md — read this before touching anything

Repo

  • Name: coco
  • Origin: https://github.com/coco-research/coco.git
  • Stack: node
  • SoT playbook: ~/code/jev-use/docs/repo-playbook.html

0. The documents, and when each is authoritative

File Answers Update when
docs/prd.md What and why Scope changes
docs/architecture.md How the parts fit Structure changes
docs/rules.md The laws. Invariants ONLY with owner approval
docs/design.md What it looks and feels like UI work
docs/tasks.md What is worked on now Every PR
docs/memory.md Decisions and dead ends Every PR that settles something

If two documents disagree, the earlier one in that table wins. Never silently pick one — fix the disagreement in the same PR.

1. The PR contract

  • Every change is a small PR. No direct pushes to main.
  • Gate green before review. Run .githooks/pre-push or git push and let it.
  • Evidence, not assertions. Paste the command and its real output.
  • One concern per PR. Two things touched means two PRs.
  • Fill the PR template in honestly, including the Risk section.

2. Never commit

  • Any API key, token, or secret. Not in code, not in docs, not in a fixture.
  • Absolute personal paths in shipped code. Docs may name one as an example.
  • Build output. target/, dist/, node_modules/ are ignored and stay ignored.

3. When unsure

docs/rules.md holds the invariants, each with the measurement that justifies it. If a task appears to require breaking one, stop and ask.

4. Recording what you learned

docs/memory.md is not a diary. It records decisions with reasons and dead ends worth not repeating. If you spent an hour proving a hypothesis wrong, that sentence saves the next agent the hour.

5. A bug you find is a bug you fix

Found a bug while installing or working in this repo? Fix it and open a PR. A finding left in a chat is lost.

  • Counts as a bug: an install that delivers less than it advertises; a path, count, command or skill reference that does not resolve; a gate that cannot fail; a silent fallback where a loud failure belongs; docs that contradict the code.
  • How: reproduce in a throwaway HOME first. Fix the source, not generated output. Add the gate that would have caught it. Run the full ci.yml mirror, including build-delivery-index.py, before pushing. The PR says what broke, why it was invisible, and the command that proves the fix.
  • Scope: this repo, fix and PR. Any other repo, report to its owner and stop.

Read the full file on GitHub · 55 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. 1mo ago Changed · +8 lines · +185 tokens per session 691473c7f374
  2. 2mo ago First seen · 47 lines · 474 tokens per session scan A 11181118a2f0

Subscribe to this mod's changes

coco AGENTS.md is an instructions file published in the GitHub repository coco-research/coco (323 stars, last pushed yesterday), licensed Apache-2.0. It adds 659 tokens to every session, about $0.0026 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-21.

Related

coco AGENTS.md compared with instructions from other repositories

coco AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
coco AGENTS.mdcoco-research/cocoInstructions file323yesterdayApache-2.0A659Codex, OpenCode
ai-agent-rules-generator ui-design.instructions.mdsavedpixel/ai-agent-rules-generatorInstructions file87mo agoMITA701GitHub Copilot
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 file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot