agentos: Instructions file for Claude Code

CLAUDE.md

agentos CLAUDE.md is an instructions file for Claude Code from rivet-dev/agentos. It costs 4,197 tokens per session, scanned A, original, Apache-2.0.

A set of repository instructions for agentOS, a runtime and software platform from Rivet. It defines naming, versioning, package, protocol, security, and ownership rules for work in that codebase.

In plain words
What is it for?
Developing agentOS runtime code, language execution, virtual file systems, registries, client APIs, documentation, and publishing workflows.
Why use it?
It gives coding agents the project’s boundaries and conventions so changes do not introduce conflicting package names, unsupported compatibility layers, or mismatched protocol versions.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md.

This is rivet-dev/agentos's own configuration. It tells Claude Code how to work on agentos 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 agentos configures →

About the project

agentOS is a library that lets software agents run inside an existing application backend, using WebAssembly and V8 isolates with controlled access to host resources. It is for developers building agent-powered backends who need embedded execution and permissions, while the catalogue entries provide skills and instructions for operating the framework.

rivet-dev/agentos · 4,851 stars · on GitHub · rivet.dev

Reuse

Borrowing it

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

Made for: Claude Code.

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 agentos CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rivet-dev/agentos/claude-md"><img src="https://agentmods.dev/badge/instructions/rivet-dev/agentos/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,197 This file is loaded in full into every session.
When invoked 4,197 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.04197 $0.04197
Opus 5.5 $0.01679 $0.01679
Sonnet 5.5 $0.00839 $0.00839
Haiku 4.5 $0.00420 $0.00420

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

Security

Grade A, and why

agentos CLAUDE.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 24d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

gawk, real curl/sqlite/duckdb/vim, …) compiled to `wasm32-wasip1` against a
CLAUDE.md · 312 lines

How it starts

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

agentOS

Always spell the product name agentOS, never AgentOS; do not alter type identifiers such as AgentOSActorConfig.

agentOS owns the runtime, kernel, VFS, language execution, registry packages, agentOS client APIs, docs, and publish machinery. agentOS Exec is the JavaScript, TypeScript, and Python execution surface of agentOS.

Boundaries

  • Keep agentOS product versions pinned at 0.0.1 in committed files. Release workflows apply real versions transiently with scripts/publish; never commit release-version rewrites.
  • agentOS-owned npm packages must use the @rivet-dev/agentos-* namespace. Registry software packages must use @agentos-software/*. Never introduce packages under @agentos/*.
  • Call guest environments VMs, not sandboxes, except when referring to a package or public API that already uses the word.
  • The protocol has no backward compatibility guarantee. Client, sidecar, and protocol crates ship in same-version lockstep; update both sides together.
  • Generic runtime and language-execution work belongs here. Do not add a compatibility mirror or a second package namespace for AgentOS language execution.
  • Keep root package.json scripts limited to Turbo orchestration; repo-specific commands belong in justfile recipes or scoped package scripts.
  • agentOS targets native Linux/container execution. Browser support is not needed or supported here: browser sources may remain as dormant reference code, but their entrypoints must stay disabled and they must not enter default builds, CI, publication, or behavioral-parity requirements without a separately approved design.

Security Model

Trust model:

  • Client: trusted, except for code/payloads it submits for execution.
  • Sidecar/runtime: trusted enforcement point. It owns the kernel, VFS, mounts/plugins, socket table, permissions, and resource policy.
  • Executor: untrusted V8 isolate or WASM guest. Assume guest JS/Python/WASM and third-party packages are hostile.

Read the full file on GitHub · 312 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. 24d ago Changed · +8 lines · +131 tokens per session 80e878c33fc1
  2. 1mo ago Changed · -30 lines · -452 tokens per session 6e62dc593af6
  3. 1mo ago Changed · +15 lines · +200 tokens per session 3c4ba8f21a9e
  4. 1mo ago Changed · +3 lines · +54 tokens per session 45d9765ace55
  5. 1mo ago Changed · +11 lines · +207 tokens per session 8e230fe3a586
  6. 2mo ago Changed · +3 lines · +49 tokens per session dfde56cb3c6d
  7. 2mo ago First seen · 302 lines · 4,008 tokens per session scan A 7ec9778fa81e

Subscribe to this mod's changes

agentos CLAUDE.md is an instructions file published in the GitHub repository rivet-dev/agentos (4,851 stars, last pushed yesterday), licensed Apache-2.0. It adds 4,197 tokens to every session, about $0.0168 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

agentos CLAUDE.md compared with instructions from other repositories

agentos CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agentos CLAUDE.mdrivet-dev/agentosInstructions file4.9kyesterdayApache-2.0A4,197Claude Code
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