agentleFS
rivet-devrivet-dev/agents/sandbox-agent/CLAUDE.md

agents / sandbox-agent

CLAUDE.md1.6k starsChanged 10 months agoApache-2.0View on GitHub

  • Installs packages

Trending

More talk lately.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the rivet-dev/agents repository that our weekly crawl found: only 1 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

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.

The file

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

14 rules. About 0 are common, 5 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Never mention "ACP" in user-facing docs (docs/content/docs//*.mdx) except in docs that are specifically about ACP itself.

    line 13
  2. Very specific:

    Never expose underlying protocol method names (e.g.

    line 14
  3. Distinctive:

    Do not describe the underlying protocol implementation in docs.

    line 15
  4. Very specific:

    Do not use em dashes (—) in docs.

    line 16
  5. Very specific:

    Keep docs aligned to implemented endpoints/commands only (for example ACP under /v1/acp, not legacy session REST APIs).

    line 23
  6. Very specific:

    Run node scripts/generate-api-docs.mjs when docs/openapi.json changes.

    line 28
  7. Distinctive:

    If the user asks to "push" changes, treat that as permission to commit and push all current workspace changes, not a hand-picked subset, …

    line 33
  8. Distinctive:

    Keep CLI subcommands and HTTP endpoints in sync.

    line 34
  9. Very specific:

    Update docs/content/docs/cli.mdx when CLI behavior changes.

    line 35
  10. Very specific:

    Keep docs/content/docs/inspector.mdx and docs/content/docs/sdks/typescript.mdx aligned with implementation.

    line 37
  11. Distinctive:

    Do not add cross-process image-build scripts unless there is a concrete need for them.

    line 45
  12. Very specific:

    When adding or removing software from docs/content/docs/common-software.mdx, also add/remove the corresponding apt-get install line in the …

    line 53
  13. Very specific:

    Run cargo test -p sandbox-agent --test common_software to verify.

    line 54
  14. Distinctive:

    Keep every install-version reference below in sync whenever versions/channels change:

    line 62

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Instructions

Naming and Ownership

  • This directory/product is Sandbox Agent. It lives in sandbox-agent/ of the rivet-dev/agents repository, which releases everything on one version line from the repository root (../scripts/release, ../.github/workflows/release.yaml).
  • Gigacode is a separate user-facing UI/client, not the server product name.
  • Gigacode integrates with Sandbox Agent via the OpenCode-compatible surface (/opencode/*) when that compatibility layer is enabled.
  • Canonical extension namespace/domain string is sandboxagent.dev (no hyphen).
  • Canonical custom ACP extension method prefix is _sandboxagent/... (no hyphen).

Docs Terminology

  • Never mention "ACP" in user-facing docs (docs/content/docs/**/*.mdx) except in docs that are specifically about ACP itself.
  • Never expose underlying protocol method names (e.g. session/request_permission, session/create, _sandboxagent/session/detach) in non-ACP docs. Describe the behavior in user-facing terms instead.
  • Do not describe the underlying protocol implementation in docs. Only document the SDK surface (methods, types, options). ACP protocol details belong exclusively in ACP-specific pages.
  • Do not use em dashes (—) in docs. Use commas, periods, or parentheses instead.

Docs Source Of Truth (HTTP/CLI)

  • For HTTP/CLI docs/examples, source of truth is:
    • server/packages/sandbox-agent/src/router.rs
    • server/packages/sandbox-agent/src/cli.rs
  • Keep docs aligned to implemented endpoints/commands only (for example ACP under /v1/acp, not legacy session REST APIs).

Website and Docs

  • Author docs in docs/content/docs/; docs/sidebar.json owns the navigation. The Rivet website owns layout and styling.
  • Run node scripts/generate-api-docs.mjs when docs/openapi.json changes.
  • .github/workflows/docs-sync.yml publishes the docs bundle to rivet-dev/website. Never edit the vendored copy by hand.

Change Tracking

  • If the user asks to "push" changes, treat that as permission to commit and push all current workspace changes, not a hand-picked subset, unless the user explicitly scopes the push.
  • Keep CLI subcommands and HTTP endpoints in sync.
  • Update docs/content/docs/cli.mdx when CLI behavior changes.
  • Regenerate docs/openapi.json when HTTP contracts change.
  • Keep docs/content/docs/inspector.mdx and docs/content/docs/sdks/typescript.mdx aligned with implementation.
  • Append blockers/decisions to research/acp/friction.md during ACP work.
  • docs/content/docs/agent-capabilities.mdx lists models/modes/thought levels per agent. Update it when adding a new agent or changing fallback_config_options. If its "Last updated" date is >2 weeks old, re-run cd scripts/agent-configs && npx tsx dump.ts and update the doc to match. Source data: scripts/agent-configs/resources/*.json and hardcoded entries in server/packages/sandbox-agent/src/router/support.rs (fallback_config_options).
  • Some agent models are gated by subscription (e.g. Claude opus). The live report only shows models available to the current credentials. The static doc and JSON resource files should list all known models regardless of subscription tier.

Docker Test Image

  • Docker-backed Rust and TypeScript tests build docker/test-agent/Dockerfile directly in-process and cache the image tag only in memory (OnceLock in Rust, module-level variable in TypeScript).
  • Do not add cross-process image-build scripts unless there is a concrete need for them.

Common Software Sync

  • These three files must stay in sync:
    • docs/content/docs/common-software.mdx (user-facing documentation)
    • docker/test-common-software/Dockerfile (packages installed in the test image)
    • server/packages/sandbox-agent/tests/common_software.rs (test assertions)
  • When adding or removing software from docs/content/docs/common-software.mdx, also add/remove the corresponding apt-get install line in the Dockerfile and add/remove the test in common_software.rs.
  • Run cargo test -p sandbox-agent --test common_software to verify.

Install Version References

  • Channel policy:
    • Sandbox Agent install/version references use a pinned minor channel 0.N.x (for curl URLs and sandbox-agent / @sandbox-agent/cli npm/bun installs).
    • Gigacode install/version references use latest (for @sandbox-agent/gigacode install/run commands and gigacode-install.* release promotion).
    • Release promotion policy: latest releases must still update latest; when a release is latest, Sandbox Agent must also be promoted to the matching minor channel 0.N.x.
  • Keep every install-version reference below in sync whenever versions/channels change:
    • README.md
    • docs/content/docs/cli.mdx
    • docs/content/docs/quickstart.mdx
    • docs/content/docs/sdk-overview.mdx
    • docs/content/docs/react-components.mdx
    • docs/content/docs/session-persistence.mdx
    • docs/content/docs/deploy/local.mdx
    • docs/content/docs/deploy/cloudflare.mdx
    • docs/content/docs/deploy/vercel.mdx
    • docs/content/docs/deploy/daytona.mdx
    • docs/content/docs/deploy/e2b.mdx
    • docs/content/docs/deploy/docker.mdx
    • frontend/packages/website/src/components/GetStarted.tsx
    • .claude/commands/post-release-testing.md
    • examples/cloudflare/Dockerfile
    • examples/daytona/src/index.ts
    • examples/shared/src/docker.ts
    • examples/docker/src/index.ts
    • examples/e2b/src/index.ts
    • examples/vercel/src/index.ts
    • ../scripts/release/main.ts
    • ../scripts/release/promote-artifacts.ts
    • ../scripts/release/sdk.ts

Download now (ZIP)

Does 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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.