Rivet: Instructions file for Codex

AGENTS.md

Rivet AGENTS.md is an instructions file for Codex, OpenCode from xuanhieu2611/Rivet. It costs 16,349 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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 16,349 This file is loaded in full into every session.
When invoked 16,349 The same file — it is already loaded in full.
Security scan B 1 finding. Scan, not verified.
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.16349 $0.16349
Opus 5 $0.08174 $0.08174
Sonnet 5 $0.03270 $0.03270
Haiku 4.5 $0.01635 $0.01635

Measured 6d ago against content hash 1560a9a8c700, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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 · 915 lines

How it starts

The opening of the file, as written. The whole thing — 915 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 landing page, 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. Acceptance runs A-H are mapped in docs/plans/milestone-12-acceptance.md; 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. docs/milestone-12-guide.md is the tour.

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, mapped to their implementations in docs/plans/milestone-11-acceptance.md; 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. docs/milestone-11-guide.md is the tour.

Read the full file on GitHub · 915 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. 6d 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 6d ago), licensed MIT. It adds 16,349 tokens to every session, about $0.0817 per session on Opus 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

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,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

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 · 6,785 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, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 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,469 tokens