Rivet: Instructions file for Codex

AGENTS.md

Rivet AGENTS.md is an instructions file for Codex, OpenCode from xuanhieu2611/Rivet. It costs 16,764 tokens per session, scanned B, original, MIT.

Repository-specific instructions for Rivet, an autonomous software engineering platform that takes a task through reading, planning, editing, testing, reviewing, and opening a pull request.

In plain words
What is it for?
Use them when working on Rivet, especially to understand its architecture, product plans, integration tests, streaming tests, and milestone acceptance checks.
Why use it?
They give a coding agent the project’s terminology, current state, important files, and commands so it can work in the repository consistently.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/xuanhieu2611/rivet/agents-md"><img src="https://agentmods.dev/badge/instructions/xuanhieu2611/rivet/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16,764 This file is loaded in full into every session.
When invoked 16,764 The same file — it is already loaded in full.
Security scan B 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.16764 $0.16764
Opus 5.5 $0.06706 $0.06706
Sonnet 5.5 $0.03353 $0.03353
Haiku 4.5 $0.01676 $0.01676

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

Security

Grade B, and why

Rivet AGENTS.md scanned grade B 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 27d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- `brew install --cask docker-desktop` needs sudo to link `docker-credential-osxkeychain` into
AGENTS.md · 939 lines

How it starts

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

AGENTS.md

This file provides guidance to coding agents when working with code in this repository.

What Rivet is

An autonomous software engineering platform: you point it at a repository, describe a task, and it runs the whole workflow (read, plan, edit, test, review, open a PR). The interesting part is the job-execution system around the coding agent, not the code generation.

PRD.md and plan.md are at the repo root and are gitignored but present on disk. Read them for product intent and milestone scope. docs/architecture.md describes the system as it actually exists today and is the best starting point for any structural question.

Current state: Milestone 12 is complete. Rivet now has a static public website (apps/site, see "The public site" below), structured diff and validation surfaces, append-only timeline motion, deterministic capture and replay, two graded demo repositories, and a public recording of a real issue-to-PR run. A replayed run remains an ordinary job written through the production writers. M12 adds no table, column, job status, event type or failure category. Of its acceptance runs A-H, A-D and F run in pnpm test, E is integration, G is the Docker-backed demo-repository suite, and H is the recording published on 2026-08-22.

Milestone 11 is complete. Rivet can now be watched, and it defends itself. Traces, metrics and correlated logs flow through a Telemetry port to an OTLP collector; every durable write passes a Redactor; every API route is guarded by a session whose coverage is a test rather than a convention; the unauthenticated edges and the spend are rate limited and the limiter fails closed; every prompt boundary fences untrusted text; and a startup probe refuses to boot a worker whose control plane a sandbox container can reach. M11's entire schema footprint is one nullable text column, jobs.trace_context - no new table, no job status, no job event type and no failure category. Its acceptance runs are A-H; A-F need no Docker and run in pnpm test, G is apps/worker/tests/sandbox/network-isolation.sbx.test.ts, and H is benchmarks/prompt-injection-bait/ plus pnpm demo:observability.

Read the full file on GitHub · 939 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. 27d ago Changed · -4 lines · -119 tokens per session bb965dfe723a
  2. 28d ago Changed · +28 lines · +534 tokens per session a98099685563
  3. 2mo ago First seen · 915 lines · 16,349 tokens per session scan B 1560a9a8c700

Subscribe to this mod's changes

Rivet AGENTS.md is an instructions file published in the GitHub repository xuanhieu2611/Rivet (2 stars, last pushed 4d ago), licensed MIT. It adds 16,764 tokens to every session, about $0.0671 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens