Repository navigation
docs(sbx): make the sandbox service findable, and give Codex and Bob a recipe - #662
Conversation
…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]>
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]>
ingpaolodettori-dev
left a comment
There was a problem hiding this comment.
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.
| 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. |
There was a problem hiding this comment.
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.
| 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), |
There was a problem hiding this comment.
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]>
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.mdhad nosbxentry 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.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 CLIand### IBM Bobeach 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:For Codex the block's first note is that there is nothing to configure, since
mocactl sbx codexpasses the server per run — the question a reader would otherwise go looking for an answer to. For Bob it is where to look whenbob mcp listshows nothing (upagain) orDisconnected(mocactlnot onPATH), 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:
upwrites.mcp.json+.claude/settings.jsonpermissions.deny), or left to Cortex with--cortexupwritesopencode.jsontools.<name>: false)mocactl sbx codex, per run — it reads no project configunified_execcannot be disabledupwrites.bob/settings.jsonVerification
The commands in the new blocks were checked against the installed CLIs rather than written from memory:
bob --version→0.0.32bob --help→--auth-method [choices: "sso", "api-key"], so both values in the comment are realcodex doctor | grep -A3 "auth "→ the✓ authline the comment promisescheck-linkspasses (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
git commit -s).make lint— not run;pre-commitis unavailable in my environment. Docs only; CI'sdocsandlintjobs are the backstop.make check-linkspasses.