Default the sandbox agent to claude

The Claude configuration, plugin and skills support added for sandboxes only
applies when the agent is claude, so codex was no longer the sensible default.
This commit is contained in:
2026-07-31 08:39:30 -05:00
parent 1fdbbff2e2
commit dbe6c2e34b
2 changed files with 6 additions and 5 deletions
+4 -3
View File
@@ -119,8 +119,9 @@ Optional personal defaults:
```toml ```toml
[env] [env]
AI_SBX_AGENT = "codex" AI_SBX_AGENT = "claude"
AI_SBX_MODE = "clone" AI_SBX_MODE = "clone"
# AI_SBX_TEMPLATE = "git.mroberts.dev/you/claude-sbx:v1" # unset = stock image
``` ```
Confirm it loaded: Confirm it loaded:
@@ -257,7 +258,7 @@ provider "aws" {
| Option | Default | Effect | | Option | Default | Effect |
| --- | --- | --- | | --- | --- | --- |
| `--aws-profile NAME` | none | Host profile to expose. Repeatable. Trailing `-readonly` stripped inside the sandbox | | `--aws-profile NAME` | none | Host profile to expose. Repeatable. Trailing `-readonly` stripped inside the sandbox |
| `--agent NAME` | `codex` | Sandbox agent. See `sbx create --help` for the list | | `--agent NAME` | `claude` | Sandbox agent. See `sbx create --help` for the list |
| `--clone` | on | Give the agent a private in-container clone; its commits reach the host via the `sandbox-<name>` git remote | | `--clone` | on | Give the agent a private in-container clone; its commits reach the host via the `sandbox-<name>` git remote |
| `--template REF` | `AI_SBX_TEMPLATE` | Custom sandbox image | | `--template REF` | `AI_SBX_TEMPLATE` | Custom sandbox image |
| `--stock-template` | off | Ignore `AI_SBX_TEMPLATE` for this repository | | `--stock-template` | off | Ignore `AI_SBX_TEMPLATE` for this repository |
@@ -269,7 +270,7 @@ provider "aws" {
| Variable | Default | Overrides | | Variable | Default | Overrides |
| --- | --- | --- | | --- | --- | --- |
| `AI_SBX_AGENT` | `codex` | `--agent` | | `AI_SBX_AGENT` | `claude` | `--agent` |
| `AI_SBX_MODE` | `clone` | `--clone` / `--direct` | | `AI_SBX_MODE` | `clone` | `--clone` / `--direct` |
| `AI_SBX_TOKEN_DAYS` | `30` | token expiry pre-filled on the form (1–366, or `none`) | | `AI_SBX_TOKEN_DAYS` | `30` | token expiry pre-filled on the form (1–366, or `none`) |
| `AI_SBX_TEMPLATE` | unset | `--template` / `--stock-template` | | `AI_SBX_TEMPLATE` | unset | `--template` / `--stock-template` |
+2 -2
View File
@@ -3,7 +3,7 @@ set -euo pipefail
PROGRAM="ai:sbx" PROGRAM="ai:sbx"
CONFIG_ROOT="${XDG_CONFIG_HOME:-$HOME/.config}/ai-sbx" CONFIG_ROOT="${XDG_CONFIG_HOME:-$HOME/.config}/ai-sbx"
DEFAULT_AGENT="${AI_SBX_AGENT:-codex}" DEFAULT_AGENT="${AI_SBX_AGENT:-claude}"
DEFAULT_MODE="${AI_SBX_MODE:-clone}" DEFAULT_MODE="${AI_SBX_MODE:-clone}"
DEFAULT_TOKEN_DAYS="${AI_SBX_TOKEN_DAYS:-30}" DEFAULT_TOKEN_DAYS="${AI_SBX_TOKEN_DAYS:-30}"
DEFAULT_TEMPLATE="${AI_SBX_TEMPLATE:-}" DEFAULT_TEMPLATE="${AI_SBX_TEMPLATE:-}"
@@ -79,7 +79,7 @@ Setup options:
May be supplied more than once. A trailing May be supplied more than once. A trailing
-readonly is stripped from the profile name -readonly is stripped from the profile name
written into the sandbox. written into the sandbox.
--agent NAME Sandbox agent. Default: codex --agent NAME Sandbox agent. Default: claude
--direct Mount the host working tree read-write. --direct Mount the host working tree read-write.
--clone Give the agent a private in-container clone --clone Give the agent a private in-container clone
of the repository, mounted read-only. of the repository, mounted read-only.