Skip to content

docs(sbx): make the sandbox service findable, and give Codex and Bob a recipe - #662

Merged
mrsabath merged 3 commits into
mainfrom
docs/sbx-harness-discoverability
Oct 29, 2026
Merged

mrsabath merged 3 commits into
mainfrom
docs/sbx-harness-discoverability

Conversation

@mrsabath

Copy link
Copy Markdown
Member

Summary

Two documentation gaps around running a coding agent in a sandbox, both about a reader who does not already know where to look. Docs only.

The sandbox service was unreachable from the top of the repository

The README's Quick Start is the Compose walkthrough for the P6 runtime and never mentions sbx. Its Documentation table had sixteen rows and none for the sandbox service. docs/index.md had no sbx entry at all. So "run my coding agent with every command in a microVM" had no path from the README to the guide that explains it.

  • One Quick Start bullet under "Where to go next".
  • Two Documentation table rows: the user guide, and the Codex / IBM Bob anchors.
  • Two rows in the docs map (docs/index.md), labelled Preview like the guide itself.

I deliberately did not put setup instructions in the Quick Start: that section is a different product surface (the P6 runtime via Docker Compose), and mixing the two would confuse both. The links point at the guide, which is where harness setup already lives.

The harness sections read as reference, not instructions

### Codex CLI and ### IBM Bob each explained mechanism and caveats well, but a newcomer had to assemble the order themselves. Each now opens with a numbered block that runs start to finish — install, log in, verify, run, pull — with the existing prose following as the why:

# 1. install Codex (Node.js 22 or later, the same floor as mocactl)
npm install -g @openai/codex
# 2. give it credentials — its own account, not your sandbox login
codex login
# 3. check it took
codex doctor | grep -A3 "auth "  # expect: ✓ auth
# 4. run it against the sandbox (mocactl passes the server; nothing is written)
mocactl sbx codex -- "Run the test suite and fix what fails"
# 5. bring the work back
mocactl sbx pull --apply

For Codex the block's first note is that there is nothing to configure, since mocactl sbx codex passes the server per run — the question a reader would otherwise go looking for an answer to. For Bob it is where to look when bob mcp list shows nothing (up again) or Disconnected (mocactl not on PATH), which are the two failures seen in practice.

A comparison table

Added where §3 tells you to run your agent, because the contrast was only inferable by reading all four subsections — and it is the thing worth knowing before choosing one:

Agent How it gets the server Its local tools
Claude Code up writes .mcp.json + .claude/settings.json Denied (permissions.deny), or left to Cortex with --cortex
OpenCode up writes opencode.json Denied (tools.<name>: false)
Codex CLI mocactl sbx codex, per run — it reads no project config Shell tool off; unified_exec cannot be disabled
IBM Bob up writes .bob/settings.json Not denied — Bob has no deny list

Verification

The commands in the new blocks were checked against the installed CLIs rather than written from memory:

  • bob --version → 0.0.32
  • bob --help → --auth-method [choices: "sso", "api-key"], so both values in the comment are real
  • codex doctor | grep -A3 "auth " → the ✓ auth line the comment promises

check-links passes (212 files, 0 broken), including the two new in-page anchors (#codex-cli, #ibm-bob). Prettier clean. No code touched, so no test run is relevant.

Checklist

  • Commits are signed off (git commit -s).
  • make lint — not run; pre-commit is unavailable in my environment. Docs only; CI's docs and lint jobs are the backstop.
  • Docs: make check-links passes.
  • No new spec or ADR needed.

…a recipe

Two gaps, both about a reader who does not already know where to look.

**The sandbox service was unreachable from the top of the repository.** The
README's Quick Start is the Compose walkthrough for the P6 runtime and never
mentions `sbx`; its Documentation table had sixteen rows and none for the sandbox
service; `docs/index.md` had no `sbx` entry at all. So "run my coding agent with
every command in a microVM" had no path from the README to the guide that explains
it. Adds one Quick Start bullet, two Documentation rows (the guide, and the Codex
and Bob anchors), and two rows in the docs map.

**The harness sections read as reference, not instructions.** Codex and IBM Bob
each explained mechanism and caveats well, but a newcomer had to assemble the
order themselves. Each now opens with a numbered block that runs start to finish —
install, log in, verify, run, pull — with the prose that follows as the why. For
Codex the first line of that block is that there is nothing to configure, since
`mocactl sbx codex` passes the server per run; for Bob it is where to look when
`bob mcp list` shows nothing or `Disconnected`.

Also adds a comparison table where §3 tells you to run your agent: four agents,
how each gets the server, and what happens to its local tools. That contrast was
only inferable by reading all four subsections, and it is the thing worth knowing
before choosing one — Bob's tools are not denied at all.

Commands checked against the installed CLIs rather than written from memory:
`bob --version` (0.0.32), `bob --auth-method` (sso|api-key), and
`codex doctor | grep -A3 "auth "`.

Docs only. check-links: 212 files, 0 broken; prettier clean.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Mariusz Sabath <[email protected]>
@mrsabath
mrsabath requested a review from pdettori as a code owner October 29, 2026 13:50
Self-review of #662. The table listed Claude Code's wiring as only "`up` writes
.mcp.json + .claude/settings.json", so a reader meeting it first would conclude
Claude Code has no launcher while Codex does. `mocactl sbx claude` exists (#656)
and the guide covers it twenty lines further down — and `up`'s own closing output
recommends it as the way past the first session's approval prompt (#577), which
makes the omission worse than a missing row: it hides the fix for the trap the
surrounding text warns about.

Also drops the "Four are supported" count. It is a maintenance trap: the next
agent makes the prose wrong while the table silently stays right. And "The first
two need nothing beyond `up`" now names them, since row order is no longer what
makes that sentence true.

check-links 212 files / 0 broken; prettier clean.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Mariusz Sabath <[email protected]>
@pdettori pdettori added the ready-for-ai-review Request automated AI code review from clawgenti label Oct 29, 2026

@ingpaolodettori-dev ingpaolodettori-dev left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Docs-only, and the claims check out against the code at this head: the Node ≥22 floor, mocactl sbx claude/codex/pull --apply/doctor, .bob/settings.json mcpServers.sandbox, doctor's agent config line covering Bob, and Codex's --disable shell_tool with unified_exec not disableable. The comparison table is a real improvement. One suggestion on a README guarantee that's too strong for Codex/Bob, and one nit on duplication. Neither blocks.

Comment thread README.md Outdated
users, one VM, two sandbox tiers (~40 min). All demos are indexed in [`docs/demos/`](docs/demos/).
- **Run your coding agent with every command in a microVM:** the SBX0 sandbox service,
[`docs/sbx/user-guide.md`](docs/sbx/user-guide.md). Claude Code, OpenCode, Codex and IBM Bob;
your laptop's tree is untouched until you pull the agent's work back.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

suggestion: "your laptop's tree is untouched until you pull" is stated for all four agents, but by the guide's own account it holds for Codex and Bob only by the model's choice: Bob's local tools are not denied (no deny list), and Codex's unified_exec can't be disabled. Since this is the README's entry point, consider qualifying it (e.g. "…for Claude Code and OpenCode; see the guide for Codex and Bob") or dropping the guarantee from this bullet.

Comment thread docs/sbx/user-guide.md Outdated
OpenCode, **`up` cannot take Bob's own tools away** — see the warning below before using it
unattended.

Install Bob-Shell per [its install guide](https://bob.ibm.com/docs/ide/getting-started/install),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nit: Now that the recipe opens the section, this "Install Bob-Shell per its install guide… / bob" paragraph repeats steps 1 and 4 (and Codex's Install it block repeats its step 1 too). Consider trimming the duplicates, or leading with something like "In detail:" so the repetition reads as intentional.

…hey give

Review of #662.

The bullet said "your laptop's tree is untouched until you pull the agent's work
back" for all four agents. It is not true of two of them, by this guide's own
account twenty lines later: Bob's local tools are not denied at all, and Codex's
`unified_exec` cannot be disabled, so for both the untouched tree is the model's
choice rather than something `up` enforces. Overstating it at the README's entry
point is the same misreading the guide's Codex and Bob warnings exist to prevent,
and the one place a reader is least likely to go looking for the caveat.

It now claims the guarantee only where it holds — Claude Code and OpenCode, whose
tools are denied — and says Codex and Bob are supported with weaker containment
the guide spells out.

Also takes the duplication nit: each recipe is now followed by "In detail", so
the walkthrough that repeats a step reads as a deliberate expansion rather than an
accident. Bob's version drops the sentence that repeated the install link and the
invocation outright, keeping the interactive/one-shot pair that the recipe does
not show.

check-links 212 files / 0 broken; prettier clean.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Mariusz Sabath <[email protected]>
@mrsabath
mrsabath merged commit 071b213 into main Oct 29, 2026
15 of 16 checks passed
@mrsabath
mrsabath deleted the docs/sbx-harness-discoverability branch October 29, 2026 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-ai-review Request automated AI code review from clawgenti

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants