evolve-loop: Instructions file for Codex

AGENTS.md

evolve-loop AGENTS.md is an instructions file for Codex, OpenCode from mickeyyaya/evolve-loop. It costs 5,032 tokens per session, scanned C, original, Apache-2.0.

A self-adjusting development pipeline that moves work through fixed stages, such as planning, investigation, test-driven development (writing tests before implementation), building, review, release, and learning.

In plain words
What is it for?
Use it to coordinate coding agents across different command-line tools, enforce pipeline and release rules, verify records, and run each development cycle through its defined phases.
Why use it?
It keeps specialized agents in the required order and limits where each role may write, reducing skipped checks and unsafe changes.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 evolve-loop AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mickeyyaya/evolve-loop/agents-md"><img src="https://agentmods.dev/badge/instructions/mickeyyaya/evolve-loop/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,032 This file is loaded in full into every session.
When invoked 5,032 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.05032 $0.05032
Opus 5.5 $0.02013 $0.02013
Sonnet 5.5 $0.01006 $0.01006
Haiku 4.5 $0.00503 $0.00503

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

Security

Grade C, and why

evolve-loop 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 5d 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.

<!-- instructions-digest BEGIN -->
AGENTS.md · 219 lines

How it starts

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

AGENTS.md — Cross-CLI Canonical Instructions

Read this file first if you are an AI agent that works in this repository. The agent can be Claude Code, Codex CLI, Antigravity/agy, Ollama, Gemini CLI or a generic agent. This file is the one source of the instructions for each CLI.

evolve skills generate renders CLAUDE.md and GEMINI.md from it. Each file has a short overlay for its CLI and a copy of the digest section of this file. Change this file, not a rendered copy. evolve skills check fails when a rendered copy differs from this file.

Operating policy (canonical): docs/operations/operating-policy.md has the environment-independent process rules. Each rule has the incident evidence behind it. The rules cover:

  • the pipeline-integrity procedure (console-first, maximum reasoning);
  • the queue/routing authority;
  • the engineering standards;
  • the failure-handling contract;
  • the release policy.

A clean environment gets the full policy from the repo alone. Session memory is only an advisory mirror.

Digest (each CLI loads this part)

This digest has the facts that each agent must have when it starts. The full rules, the reasons and the evidence are in AGENTS.md and in the linked docs. Read them when your task touches their subject.

Hard rules

  • Top law: a self-healing, AI-driven loop that relentlessly builds the best-quality features, and fixes any issue with logic, research and the best practical option.
  • Serve the top law, not a local metric. Finish inside each gate and limit, and report a conflict with the law.
  • Never mutate or run a live kill guard. Inject the signal sender, so that a test cannot kill a real process.
  • Never kill processes by a command pattern on the shared host. Kill only the process ids that you started.
  • No LLM in the pipeline starts or directs another. The console acts for the operator, and runs a seat only through evolve agent run. (enforced by go/internal/guards/phase.go)
  • Run the phases in the order Scout, Build, Audit, Ship. Never skip a phase, and never ignore a kernel-gate failure. (enforced by go/internal/core/statemachine.go)
  • Commit and push only through evolve ship. The ship gate denies a bare git commit and a bare git push. (enforced by go/internal/guards/ship.go)
  • The builder writes only inside the worktree that the runtime provisions. An agent never runs git worktree. (enforced by go/internal/guards/role.go)
  • Ship only when the EGPS verdict has a red count of zero. Never edit the hash-chained ledger by hand.
  • Never fabricate a cycle number, a test count or a verdict. Report only what a command printed.
  • Do all development on a branch in a worktree, never on main. Main is the integration branch only.
  • MANDATORY: code has no comments, except tool-read lines and the one package doc that docgo requires. A reason goes to the package note. (enforced by go/internal/commitgate/comments_added.go)
  • Write each document through the docs-write skill. The new text passes evolve docs ste-lint --strict. (enforced by go/internal/stelint)
  • Reach each outside service through a CLI, never through MCP. Build a CLI when a service has none.
  • Put research, lessons and failed approaches under docs/. Never delete a document; archive it.
  • Read no control value from the environment. An operator setting lives in policy.json, and a bypass is a CLI parameter.
  • Add no feature flag. Select each behavior through configuration data and a design pattern.
  • Stop after two consecutive cycles that ship nothing, and find the root cause in the pipeline.
  • Before you claim done, run the check and read its output. Report test counts as N/N PASS.
  • Read a module and list its real exports before you call or import it. Never invent an API.
  • Fix the root cause through a redesign. Never apply a workaround that hides a failure.
  • Never duplicate logic, settings or prose. Keep each in one home, and generate each copy from it.
  • Record each issue, alert or mistake through issue-record. Capture its evidence by code before the fix, and cite that evidence for each fact.
  • Each skill of this project runs unchanged on every LLM CLI, takes its scope as parameters, and carries its eval set and its verification section.

Read the full file on GitHub · 219 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. 5d ago Changed · +1 lines · +31 tokens per session a63aedbbd1d2
  2. 6d ago Changed · -227 lines · -8,370 tokens per session 1fa1def4b161
  3. 9d ago Changed · -2 tokens per session 04f8129f3931
  4. 10d ago Changed · +2 lines · +97 tokens per session 16bad9269193
  5. 11d ago Changed · -21 lines · -677 tokens per session d0f94b27977c
  6. 13d ago Changed · +3 lines · +155 tokens per session 283a80abc184
  7. 14d ago Changed · +95 tokens per session e9914c74b7ba
  8. 17d ago Changed · +1 lines · +28 tokens per session 86816dd3ae89
  9. 29d ago Changed · +2 lines · +114 tokens per session 58599e60c5ca
  10. 1mo ago First seen · 458 lines · 13,561 tokens per session scan C 29c1e195d560

Subscribe to this mod's changes

evolve-loop AGENTS.md is an instructions file published in the GitHub repository mickeyyaya/evolve-loop (8 stars, last pushed 5d ago), licensed Apache-2.0. It adds 5,032 tokens to every session, about $0.0201 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-31.

Related

evolve-loop AGENTS.md compared with instructions from other repositories

evolve-loop AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
evolve-loop AGENTS.mdmickeyyaya/evolve-loopInstructions file85d agoApache-2.0C5,032Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,951Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109kyesterdayMITA3,077GitHub Copilot