rebar: Instructions file for Codex

AGENTS.md

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

Repository instructions for agents working on rebar, including required documents to read, collaboration rules, project contracts, and session practices.

In plain words
What is it for?
Use them at the start of a rebar coding session to orient the agent and guide planning, collaboration, debugging, and implementation.
Why use it?
They give an agent the project’s current context and operating agreements before it changes code, reducing the risk of ignoring local expectations or breaking established contracts.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/willackerly/rebar/agents-md"><img src="https://agentmods.dev/badge/instructions/willackerly/rebar/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,577 This file is loaded in full into every session.
When invoked 1,577 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.01577 $0.01577
Opus 5.5 $0.00631 $0.00631
Sonnet 5.5 $0.00315 $0.00315
Haiku 4.5 $0.00158 $0.00158

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

Security

Grade A, and why

rebar 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 · 133 lines

How it starts

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

AGENTS.md — working on rebar itself

rebar v3.0.0-beta.2 | Tier 3: ENFORCED — this repo dogfoods its own methodology.

Read Before Coding

Cold Start Quad (every session, every agent, no exceptions):

  1. README.md — universal orientation
  2. QUICKCONTEXT.md — current state (verify against git log --oneline -10)
  3. TODO.md — task list + pointer to INVENTORY.md (canonical planning surface)
  4. AGENTS.md (this file) — norms, contracts, collaboration

Then, before your first substantive action: 5. .claude-memory-commits/working-agreements/ — how this maintainer wants an agent to operate here. Six short files; read all of them. They are the collaboration contract, not architecture, and they are checked in precisely so they survive a machine move, a tool change, or a different agent.

Reference:

  • DESIGN.md — the philosophy (contracts are the operating system)
  • .claude-memory-commits/environment/ — MCP/ASK debugging gotchas, indexed by symptom
  • architecture/CONTRACT-REGISTRY.md — contract index
  • architecture/CONTRACT-*.md — current contracts (S1-STEWARD, S2-ASK-CLI, S3-MCP-SERVER)
  • practices/ — orchestration, session lifecycle, red team, fidelity, e2e
  • feedback/INVENTORY.md — vote-shaped accumulator + Maintainer Queue

Core Tenets

  1. Eat your own dog food. Every change to rebar's methodology must hold up when applied to the rebar repo itself. If the cookie-cutter template would produce a structure rebar doesn't follow, fix the template AND rebar.
  2. Mechanical over manual. When you find yourself doing the same drift fix by hand, ship a script that catches it next time (check-doc-refs.sh, check-decay-patterns.sh, sync-bootstrap.sh are recent examples).
  3. One canonical planning surface. feedback/INVENTORY.md is the index. Don't recreate parallel planning docs at root — append to INVENTORY.

Agent Autonomy

Maximum autonomy granted. Act decisively. Ship code. Don't ask permission for routine work.

Read the full file on GitHub · 133 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 · 133 lines · 1,577 tokens per session scan A 13847bae37ea

Subscribe to this mod's changes

rebar AGENTS.md is an instructions file published in the GitHub repository willackerly/rebar (5 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 1,577 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-31.

Related

rebar AGENTS.md compared with instructions from other repositories

rebar AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rebar AGENTS.mdwillackerly/rebarInstructions file52mo agoApache-2.0A1,577Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode ai-customization.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA1,907GitHub Copilot