agents
CLAUDE.md1.6k starsChanged 10 months agoApache-2.0View on GitHub
Rules for the Agents docs in this repo. These pages are not rendered here. They are published on rivet.dev by the website repo. .github/workflows/docs-sync.yml copies this directory and examples/ into the website's vendor/agents/ on every merge to main. Everything below exists so a page written here renders correctly there. Sandbox Agent's own docs (sandboxagent.dev) live in sandbox-agent/docs/ and follow different rules. Nothing in this file applies to them. The website links content/ into its content collection, so only real pages…
- Installs packages
Trending
More talk lately.thin dataabout the whole repository
Who's talking about rivet-dev/agents
The biggest 1 of 1 mention linking to the repository that our crawl found. Each line is their own headline.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- sandbox-agent/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- sandbox-agent/CLAUDE.mdCLAUDE.md
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
Every page needs title and description.
- Very specific: line 65
Every TypeScript snippet must include its imports and define everything it references.
- Distinctive: line 77
Website components: Do not import from the website by relative path or alias.
- Distinctive: line 83
Never "engine", "server", or "orchestrator".
- Very specific: line 90
Always rivet.dev, never rivet.gg.
- Distinctive: line 94
Write comments and prose as complete sentences.
- Distinctive: line 96
Do not document deltas. A reader who never saw the old version gains nothing from "this was renamed".
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Docs Bundle CLAUDE.md
Rules for the Agents docs in this repo. These pages are not rendered here.
They are published on rivet.dev by the
website repo. .github/workflows/docs-sync.yml
copies this directory and examples/ into the website's vendor/agents/ on
every merge to main. Everything below exists so a page written here renders
correctly there.
Sandbox Agent's own docs (sandboxagent.dev) live in sandbox-agent/docs/ and
follow different rules. Nothing in this file applies to them.
Layout
docs/
sidebar.json
content/
docs/**.mdx -> /agents/docs/...
examples/
docs/<topic>/*.ts snippets embedded with <CodeSnippet>The website links content/ into its content collection, so only real pages
belong under content/. Anything else (scripts, fixtures, notes) goes
elsewhere in the repo or it will be published as a docs page.
Frontmatter
Every page needs title and description. Both are used for SEO and the
sidebar falls back to title when a sidebar entry omits one.
---
title: "Pi"
description: "Run the Pi coding agent as a durable Rivet Actor."
---sidebar.json
Navigation for the bundle. Icons travel as Font Awesome export names (for
example "faSquareInfo") or { "src": "/images/..." } for website-hosted
images, so this repo needs no dependency on the website's icon package.
hrefis the full site path the page renders at:/agents/docs/....- Adding a page to
content/does not add it to the nav. Add it here too. - Deploy and self-hosting guides are website-owned and generated there.
Code
- Never inline a fenced TypeScript block. Real examples live in
examples/docs/and are embedded with<CodeSnippet>, so they are type-checked (pnpm check-types) and cannot rot. - Snippet paths are relative to this repo's root, so the same path works
both here and on rivet.dev:
<CodeSnippet file="examples/docs/pi/server.ts" /> - Embed part of a file with
region="name", delimited in the source by// docs:start name/// docs:end name. - Shell commands, YAML, Dockerfiles, and terminal output may be inline fenced blocks. The no-inline rule exists for type checking, which only applies to TypeScript.
- Every TypeScript snippet must include its imports and define everything it
references. Use
@nocheckonly for API that does not exist yet, and exclude such files inexamples/docs/tsconfig.jsonwith a comment saying why. - Snippets are not reformatted by Biome (
biome.jsonexcludesexamples/docsfrom the formatter and import sorting), so the published layout is exactly what you write.
What does not belong here
- Marketing pages. They live in the website repo.
- Deploy and self-hosting guides. They are written once in the website repo and templated across every product.
- Website components. Do not import from the website by relative path or alias; a page must render from the components the site already provides.
Terminology
- The service that routes, schedules, and persists is the control plane. Never "engine", "server", or "orchestrator".
- A process running user code with the Rivet SDK is a worker. Never "envoy", "runner", "node", "compute", or "data plane".
- Spell the product
agentOS, neverAgentOS. Capitalize Rivet Actor as a proper noun, lowercase generic "actor". - Where prose must name the managed offering it is Rivet Cloud, and it links to https://dashboard.rivet.dev.
- Always
rivet.dev, neverrivet.gg.
Writing
- Write comments and prose as complete sentences. Never use em dashes; use periods instead.
- Do not document deltas. A reader who never saw the old version gains nothing from "this was renamed".
Previewing locally
Clone the website next to this repo and run it. It detects the sibling
checkout ../agents and serves this directory's pages live:
git clone https://github.com/rivet-dev/website
cd website && pnpm install && pnpm devDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

