rimz: Instructions file for Codex

AGENTS.md

rimz AGENTS.md is an instructions file for Codex, OpenCode from rimio-ai/rimz. It costs 19,863 tokens per session, scanned A, original, MIT.

Project-specific instructions for working on RimZ, including its product rules, engineering principles, and a quick reference for its rooms. It distinguishes required invariants from defaults that can be changed with a stated reason.

In plain words
What is it for?
Use it when modifying the RimZ codebase to understand how attention is routed, how agents interact with the interface, and which product and engineering constraints apply.
Why use it?
It gives a coding agent the context needed to make changes without breaking RimZ's core behavior or architectural boundaries. It also explains which rules are enforced by checks.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rimio-ai/rimz/agents-md"><img src="https://agentmods.dev/badge/instructions/rimio-ai/rimz/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19,863 This file is loaded in full into every session.
When invoked 19,863 The same file — it is already loaded in full.
Security scan A 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.19863 $0.19863
Opus 5.5 $0.07945 $0.07945
Sonnet 5.5 $0.03973 $0.03973
Haiku 4.5 $0.01986 $0.01986

Measured today against content hash 38f717f5dc04, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rimz AGENTS.md scanned grade A 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 today.

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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- Process and config — `config`, `observability`, `agent_activity`, `lane`, `proc` user-shell selection, process inspection and shared machine PSI (`proc/pressure.rs`), `reload`, `osc`, `build_id`, `child_process`, `tui`
AGENTS.md · 249 lines

How it starts

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

AGENTS.md

Invariant. RimZ routes attention: it surfaces which agent needs you and takes you straight to its pane, where you answer in the agent's own UI.

How to read this contract

This file carries two kinds of statement, and they earn different deference.

Invariants are load-bearing: a product promise, an architectural boundary that a cargo xtask invariants grep enforces, or a durability rule. Breaking one breaks the build or the product. Each section below says which of its statements are invariants. Change one deliberately, in its own commit, with the doc and the gate moving together.

Everything else is a default: the choice that has been right most of the time here. Follow it absent better information. Depart from it when the work in front of you argues otherwise, and say why in the PR or hand-off. A default that keeps losing is a bug in this file, so fix the file.

Match the size of the change to the size of the ask. A refactor you noticed on the way becomes a note unless it blocks you. When this map and the territory disagree, the code is what ships: follow the code, then fix the map in the same change.

Engineering principles

The house style is explicit Rust, and rust-conventions.md is its authority: typed IDs across module boundaries, structured parsers over ad-hoc string work, state machines where a bool would drift, typed Result errors at library boundaries. unwrap, expect, and panics belong in tests, build scripts, and provably impossible states; leave a comment naming why the state is impossible.

Unsafe code is denied; two sites are admitted, each annotated with #[expect(unsafe_code, reason = "...")]: the exported jemalloc configuration in crates/rimz/src/main.rs, and the bench-only counting allocator in crates/rimz/benches/fleet.rs, which the shipped binary never links. A third site is a design decision.

An event or timing fix is proven at the consumer's decision point. A change that removes a later event's power to clear a state first checks whether each producer can deliver the state's opener after its own closer (separate child processes per event, unchained sends, no timestamp on the envelope), since the removed path was what made that reorder harmless. That the producer emitted, or that a timestamp is fresh, is not evidence that the consumer saw it in time. Work placed between a decision and the action it gates (a helper process, a lock, a network call) makes the decision stale by that work's duration: read the decision again after the work, or say why it cannot have changed. When that later read can only defer the action, check it before the work as well, or every deferral repeats the work. A stamp another rule compares with is taken at the instant that rule means. It is also keyed on the state that rule reads: a stamp set on a raw status misses the rows a consumer partitions by their displayed status (a clean turn end parked on background work is raw running and displays as success). A floor that must expire with an existing cadence takes that cadence's own stamp, passed in, not a fresh now() after the pass's work, or it outlasts the cadence and skips the next due pass. A freshness stamp checked against later triggers is taken before the request it covers, or a trigger that lands during the request is absorbed. A refresh an event triggers reads its inputs at the instant the trigger fires, so a limit stated for it says what that read finds then and what next moves the trigger: an answer read too early sticks until that next move. A fix that changes which clock stamps a value audits every comparison against that value for its behaviour at ties, since a stamp that used to trail another may now equal it. A rule that orders two stamps, or compares a row stamp with one copied earlier from the same row, first lists every fold branch that writes or carries each (rg -n -U '<field>\s*=' crates/rimz/src) and evaluates any derived stamp, such as last_request_at(), on the row before and after each branch. A re-registration at rest, or a compaction close with no open bracket, moves turn_started_at without closing a request; a compaction that closes its bracket at rest stamps both turn stamps at the close; and a prompt into a row parked on background work moves neither turn stamp until its Stop. A refactor that moves time reads onto an injected clock keeps every read that followed a lock, I/O, or spawn after that work, and converts between clocks at the present, never at construction. A state a polling consumer reads stays published for at least one of that consumer's read intervals (its backstop tick plus one pass), or the consumer can miss it entirely; a design that withdraws such a state names that interval beside the rule that withdraws it. A state that changes with time alone (no event) reaches a reader that sleeps on a stored retry time only if that time is computed from the change's instant: message::deliver::evaluate_when_condition sets retry_at to the instant an auto-reviewed permission becomes visible, plus the dwell. A wake or deadline moved onto a record field first lists every writer of that field (rg -n -U '<field>\s*=' crates/rimz/src) and checks that the record still arms a wake after each writer that leaves it in the armed state.

Read the full file on GitHub · 249 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. today Changed · +300 tokens per session 38f717f5dc04
  2. 2d ago Changed · +3 lines · +561 tokens per session a0e8ff149e3e
  3. 3d ago Changed · +2 lines · +309 tokens per session 2fd964e009fe
  4. 4d ago Changed · +2 lines · +385 tokens per session dbf0bfe4a359
  5. 5d ago Changed · +5 lines · +1,128 tokens per session ae6696b3108d
  6. 6d ago Changed · +3 lines · +519 tokens per session e8ff2184f7ce
  7. 7d ago Changed · +6 lines · +946 tokens per session 106c5530bb10
  8. 8d ago Changed · +4 lines · +1,092 tokens per session ab4fe52b271b
  9. 9d ago Changed · +7 lines · +1,280 tokens per session 7a0762fe9554
  10. 10d ago First seen · 217 lines · 13,343 tokens per session scan A 02100ba6f60e

Subscribe to this mod's changes

rimz AGENTS.md is an instructions file published in the GitHub repository rimio-ai/rimz (34 stars, last pushed today), licensed MIT. It adds 19,863 tokens to every session, about $0.0795 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

rimz AGENTS.md compared with instructions from other repositories

rimz AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rimz AGENTS.mdrimio-ai/rimzInstructions file34todayMITA19,863Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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