Skip to content

Add documentation for Cloud API, tutorials, and sandbox concepts#2007

Open
r33drichards wants to merge 2 commits into
mainfrom
claude/practical-pasteur-a36khr
Open

Add documentation for Cloud API, tutorials, and sandbox concepts#2007
r33drichards wants to merge 2 commits into
mainfrom
claude/practical-pasteur-a36khr

Conversation

@r33drichards

@r33drichards r33drichards commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR significantly expands the Cua documentation by adding comprehensive guides for the Cloud REST API, new tutorials for computer-use tasks, how-to guides for sandbox image building and service connectivity, and explanation pages covering sandbox architecture concepts.

Key Changes

New Reference Documentation:

  • Added Cloud REST API reference page (docs/content/docs/reference/cloud-api/index.mdx) documenting the REST API for managing cloud VMs and sandboxes, including base path, authentication requirements, and endpoint groups

New Tutorials:

  • sandbox-to-surf-the-web.mdx - Building a sandbox with a browser for web task automation
  • sandbox-for-hermes-and-cua-driver.mdx - Driving a sandbox with the Hermes model through Cua Driver
  • benchmark-with-cua-bench.mdx - Benchmarking Codex and Claude Code on computer-use tasks
  • rl-a-model-for-computer-use.mdx - Setting up reinforcement learning loops for model training on computer-use tasks
  • sub-agent-with-mcp-sampling.mdx - Building computer-use sub-agents using MCP sampling

New How-To Guides:

  • build-a-linux-image.mdx - Creating custom Linux sandbox images with dependencies
  • build-a-windows-image.mdx - Creating custom Windows sandbox images
  • connect-to-a-service.mdx - Exposing and connecting to services running in sandboxes
  • use-the-sdk.mdx - Installing and using the Cua Sandbox Python SDK

New Explanation Pages:

  • images.mdx - Understanding sandbox images and their immutability
  • pools.mdx - How warm pools maintain ready sandboxes
  • claims.mdx - How claims reserve sandboxes and express concurrency
  • autoscaling.mdx - How pools scale based on demand
  • services.mdx - How services are exposed and reached from outside sandboxes

Updated Navigation:

  • Updated meta.json files to include new pages in the documentation structure across tutorials, how-to guides, explanation, and reference sections
  • Updated index pages to reference new content

Notable Details

  • All new documentation follows the existing structure with title, description, and clear section organization
  • Tutorial pages include "What you will build," "Prerequisites," "Steps," and "Next steps" sections
  • Explanation pages provide conceptual understanding of sandbox architecture
  • How-to guides focus on practical implementation steps
  • Cross-references between related pages are included throughout

https://claude.ai/code/session_014tuBJpDJU8UCR4UQSrLkxg

Summary by CodeRabbit

  • Documentation
    • Added comprehensive sandbox concepts documentation covering images, pools, claims, autoscaling, and services
    • Added how-to guides for building custom Linux and Windows images, connecting to services, and using the SDK
    • Added Cloud REST API reference documentation
    • Expanded tutorials covering web surfing, Hermes integration, benchmarking, MCP sampling, and RL model training

…PI reference

Scaffold the "SBX Docs" outline into the existing Diátaxis structure:

- Concepts -> explanation/sandbox/ : images, pools, claims, autoscaling, services
- How To -> how-to-guides/sandbox/ : build-a-linux-image, build-a-windows-image,
  connect-to-a-service, use-the-sdk
- Tutorials -> tutorials/ : Hermes + Cua Driver, surf the web, MCP-sampling
  sub-agent, Cua Bench benchmark, RL a model
- Reference -> reference/cloud-api/ : CUA Cloud REST API stub (generated from OpenAPI)

Each page has title/description frontmatter and an outline; all are wired into
the section meta.json nav and linked from the relevant index pages.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014tuBJpDJU8UCR4UQSrLkxg
@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Jun 24, 2026 4:35am

Request Review

@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b3ade42d-17d2-49a1-9973-0266e2a182de

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Adds documentation pages across the Explanation (sandbox images, pools, claims, autoscaling, services), How-to Guides (build Linux/Windows images, connect to a service, use SDK), Reference (Cloud REST API stub), and Tutorials (five new pages) sections, with navigation metadata updated throughout.

Changes

Sandbox Documentation Expansion

Layer / File(s) Summary
Sandbox concept explanation pages
docs/content/docs/explanation/sandbox/meta.json, docs/content/docs/explanation/sandbox/images.mdx, docs/content/docs/explanation/sandbox/pools.mdx, docs/content/docs/explanation/sandbox/claims.mdx, docs/content/docs/explanation/sandbox/autoscaling.mdx, docs/content/docs/explanation/sandbox/services.mdx, docs/content/docs/explanation/index.mdx, docs/content/docs/explanation/meta.json
Five new concept pages define sandbox images (immutable state contracts), pools (warm replica management), claims (pending/bound/released reservation lifecycle), autoscaling (claim-demand-driven scaling), and services (port exposure via tunnels). The explanation index gains a link to the new sandbox subsection.
Sandbox how-to guides
docs/content/docs/how-to-guides/sandbox/meta.json, docs/content/docs/how-to-guides/sandbox/build-a-linux-image.mdx, docs/content/docs/how-to-guides/sandbox/build-a-windows-image.mdx, docs/content/docs/how-to-guides/sandbox/connect-to-a-service.mdx, docs/content/docs/how-to-guides/sandbox/use-the-sdk.mdx
New how-to pages cover building custom Linux and Windows sandbox images, connecting to a service running inside a sandbox via port tunneling, and installing and using the Cua Sandbox Python SDK. Metadata updated to register connect-to-a-service.
Cloud API reference page
docs/content/docs/reference/cloud-api/meta.json, docs/content/docs/reference/cloud-api/index.mdx, docs/content/docs/reference/index.mdx, docs/content/docs/reference/meta.json
New Cloud REST API reference stub documents the /api base path, JWT bearer authentication, and VM/VM types/Admin endpoint groups; the reference index gains a cloud-api row.
New tutorial pages and navigation
docs/content/docs/tutorials/meta.json, docs/content/docs/tutorials/index.mdx, docs/content/docs/tutorials/sandbox-for-hermes-and-cua-driver.mdx, docs/content/docs/tutorials/sandbox-to-surf-the-web.mdx, docs/content/docs/tutorials/sub-agent-with-mcp-sampling.mdx, docs/content/docs/tutorials/benchmark-with-cua-bench.mdx, docs/content/docs/tutorials/rl-a-model-for-computer-use.mdx
Five new tutorial pages cover: driving a sandbox with Hermes via Cua Driver; a browser-based web-surfing sandbox; a computer-use sub-agent over MCP sampling; benchmarking Codex and Claude Code with Cua Bench; and an RL training loop using parallel sandboxes. Tutorials index and metadata extended to register all new slugs.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • ddupont808

Poem

🐇 Hopping through the docs with glee,
New pages sprout like clover, free!
Pools and claims and services bright,
Tutorial trails from morn to night.
✨ The warren grows — come read and see!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title clearly and concisely summarizes the main changes: adding documentation across three key areas (Cloud API, tutorials, sandbox concepts), directly matching the changeset content.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/practical-pasteur-a36khr

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
docs/content/docs/explanation/index.mdx (1)

8-8: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Apply LanguageTool style suggestion to reduce word repetition.

The words "explanation" and "explains" are similar (verb and noun from the same root). Consider rewording to improve clarity and avoid the redundancy.

Example revision: "The Sandbox section provides deeper insight into..."

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/content/docs/explanation/index.mdx` at line 8, The text contains
redundant word choices where "explanation" appears in the link path followed
immediately by "explains" in the sentence. To fix this, replace the verb
"explains" with alternative verbs such as "describes", "covers", "outlines", or
"provides insight into" to eliminate the repetition of words derived from the
same root. Review the entire section for similar instances of this pattern and
apply consistent rewording throughout to improve clarity and readability.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@docs/content/docs/explanation/index.mdx`:
- Line 8: The text contains redundant word choices where "explanation" appears
in the link path followed immediately by "explains" in the sentence. To fix
this, replace the verb "explains" with alternative verbs such as "describes",
"covers", "outlines", or "provides insight into" to eliminate the repetition of
words derived from the same root. Review the entire section for similar
instances of this pattern and apply consistent rewording throughout to improve
clarity and readability.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f70ae337-a919-4197-b9cd-d279466a4b4c

📥 Commits

Reviewing files that changed from the base of the PR and between 1a3e9b3 and 14f90ff.

📒 Files selected for processing (24)
  • docs/content/docs/explanation/index.mdx
  • docs/content/docs/explanation/meta.json
  • docs/content/docs/explanation/sandbox/autoscaling.mdx
  • docs/content/docs/explanation/sandbox/claims.mdx
  • docs/content/docs/explanation/sandbox/images.mdx
  • docs/content/docs/explanation/sandbox/meta.json
  • docs/content/docs/explanation/sandbox/pools.mdx
  • docs/content/docs/explanation/sandbox/services.mdx
  • docs/content/docs/how-to-guides/sandbox/build-a-linux-image.mdx
  • docs/content/docs/how-to-guides/sandbox/build-a-windows-image.mdx
  • docs/content/docs/how-to-guides/sandbox/connect-to-a-service.mdx
  • docs/content/docs/how-to-guides/sandbox/meta.json
  • docs/content/docs/how-to-guides/sandbox/use-the-sdk.mdx
  • docs/content/docs/reference/cloud-api/index.mdx
  • docs/content/docs/reference/cloud-api/meta.json
  • docs/content/docs/reference/index.mdx
  • docs/content/docs/reference/meta.json
  • docs/content/docs/tutorials/benchmark-with-cua-bench.mdx
  • docs/content/docs/tutorials/index.mdx
  • docs/content/docs/tutorials/meta.json
  • docs/content/docs/tutorials/rl-a-model-for-computer-use.mdx
  • docs/content/docs/tutorials/sandbox-for-hermes-and-cua-driver.mdx
  • docs/content/docs/tutorials/sandbox-to-surf-the-web.mdx
  • docs/content/docs/tutorials/sub-agent-with-mcp-sampling.mdx

Change "explains" to "lays out" in the Explanation index so the verb does
not echo the "explanation" link paths in the same paragraph (CodeRabbit nit).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014tuBJpDJU8UCR4UQSrLkxg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants