Skip to content

Commit d52ef8d

Browse files
committed
docs: remove redundant run workspace paths
Rely on the sbx run current-directory default in direct-mode examples while retaining explicit paths for clone mode.
1 parent 3d3e5d7 commit d52ef8d

7 files changed

Lines changed: 13 additions & 13 deletions

File tree

content/manuals/ai/sandboxes/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Then launch an agent in a sandbox:
3131

3232
```console
3333
$ cd ~/my-project
34-
$ sbx run claude .
34+
$ sbx run claude
3535
```
3636

3737
See the [get started guide](get-started.md) for a first-session walkthrough, or

content/manuals/ai/sandboxes/agents/claude-code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $ sbx run claude ~/my-project
2020
To start Claude with a specific prompt in the current directory:
2121

2222
```console
23-
$ sbx run --name my-sandbox claude . -- "Add error handling to the login function"
23+
$ sbx run --name my-sandbox claude -- "Add error handling to the login function"
2424
```
2525

2626
Everything after `--` is passed directly to Claude Code. You can also pipe in a

content/manuals/ai/sandboxes/architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ To opt out, set
6363
`DOCKER_SANDBOXES_ENABLE_VIRTIOFS_CACHE=0` when creating the sandbox:
6464

6565
```console
66-
$ DOCKER_SANDBOXES_ENABLE_VIRTIOFS_CACHE=0 sbx run <agent> .
66+
$ DOCKER_SANDBOXES_ENABLE_VIRTIOFS_CACHE=0 sbx run <agent>
6767
```
6868

6969
## Networking

content/manuals/ai/sandboxes/get-started.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Pick a project directory and launch an agent with
4747

4848
```console
4949
$ cd ~/my-project
50-
$ sbx run --name my-sandbox claude .
50+
$ sbx run --name my-sandbox claude
5151
```
5252

5353
The first time you run a sandbox, the CLI prompts you to choose a default
@@ -99,10 +99,10 @@ Each row shows a sandbox's name, the agent running in it, its status, any
9999
workspace — the host directory shared into the sandbox. That workspace is the
100100
one part of your machine the agent can see.
101101

102-
Because you passed `.` as the workspace path, the current directory is shared
103-
read-write. The agent and your host see the same files. Edits the agent makes
104-
to your project appear in your working tree as it writes them, and you review
105-
them as an ordinary Git diff before committing.
102+
Because `sbx run` defaults the workspace to the current directory, your project
103+
is shared read-write. The agent and your host see the same files. Edits the
104+
agent makes to your project appear in your working tree as it writes them, and
105+
you review them as an ordinary Git diff before committing.
106106

107107
Everything else runs inside the microVM, isolated from your host:
108108

content/manuals/ai/sandboxes/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ experience Git index corruption or unexpected file content, disable caching
267267
with the kill switch and recreate the sandbox:
268268

269269
```console
270-
$ DOCKER_SANDBOXES_ENABLE_VIRTIOFS_CACHE=0 sbx run <agent> .
270+
$ DOCKER_SANDBOXES_ENABLE_VIRTIOFS_CACHE=0 sbx run <agent>
271271
```
272272

273273
## Clone mode reports "not in a Git repository" on WSL

content/manuals/ai/sandboxes/usage.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The basic workflow is [`run`](/reference/cli/sbx/run/) to start,
2727
[`rm`](/reference/cli/sbx/rm/) to clean up:
2828

2929
```console
30-
$ sbx run claude . # start an agent in the current directory
30+
$ sbx run claude # start an agent in the current directory
3131
$ sbx ls # see what's running
3232
$ sbx stop my-sandbox # pause it
3333
$ sbx rm my-sandbox # delete it entirely
@@ -45,7 +45,7 @@ If you need a clean slate, remove the sandbox and run it again:
4545
```console
4646
$ sbx stop my-sandbox
4747
$ sbx rm my-sandbox
48-
$ sbx run claude .
48+
$ sbx run claude
4949
```
5050

5151
To remove all stopped local sandboxes, use `sbx prune`. Running sandboxes are
@@ -105,7 +105,7 @@ $ sbx run claude ~/my-project # reconnects to same sandbox
105105
Use `--name` to give a sandbox an explicit identity:
106106

107107
```console
108-
$ sbx run claude --name my-project .
108+
$ sbx run --name my-project claude
109109
```
110110

111111
Once a named sandbox exists, use `--name` to re-attach to it from any working

content/manuals/ai/sandboxes/workflows/git.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ branches yourself.
3333
2. Start the sandbox. No special flags needed:
3434

3535
```console
36-
$ sbx run claude .
36+
$ sbx run claude
3737
```
3838

3939
3. The agent edits files in your working tree. Review diffs, stage, and

0 commit comments

Comments
 (0)