Skip to content

v0.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 18:51
6108f28

Upgrade guidance

  • Policy paths can stop Box at startup. Box now rejects rules that compare a file path against a relative path or a path with . or .. as a directory component. This check also covers paths inside records, sets, and set operations. Use the path spelling in the startup error. On macOS, use ~/… for files under your home directory when a rule spells that directory through /System/Volumes/Data. Path checks · Nested comparisons · macOS home paths
  • Remote tool calls. Box now checks a sandboxed client’s Model Context Protocol (MCP) tool calls against the tool list from the same server address and session. Two addresses can define different inputs for a tool with the same name. If the server assigns a new session ID or Box discards the saved list, fetch every page of tools/list at that address for the current session. Retry the call once if the tool still accepts the original inputs. Clients that cannot refresh the list must report the error. Recovery instructions
  • MCP policy rules. Box now accepts valid calls to tools that take free-form JSON objects, including empty objects. If your policy reads these objects through entity tags, update it to read record fields. Object arguments
  • Rust integrations. If your code constructs the gateway’s EffectAttempt::HttpRequest, supply mcp_source. If it constructs McpListReply, supply endpoint and request_id. Gateway interface change
  • Policy history. Box now batches policy history writes in every build. A clean shutdown saves pending events. An abrupt stop can lose recent events. If you build Box with the experimental-idle-flush Cargo feature, remove it from your build options. History writes

Runtime changes

  • First-run recovery. If a new Box directory fails to start because a telemetry credential is missing, supply the credential and retry in the same directory. This also works for certain tool and workload configuration errors. A directory left without policy history by an older Box version still needs to be recreated once. Startup recovery
  • Linux workloads. Ruby 4.0 can now start subprocesses in Box when it needs to read the process’s user and group IDs. Previously, Process.spawn could fail with a permission error. Ruby subprocesses
  • Linux library startup. If your application uses a startup callback and its existing configuration disables native filesystem checks, Box skips loading those checks. To turn them on, enable them before restarting Box. Linux startup configuration
  • Agents and tools. box run claude now starts when managed Claude Code settings are regular files inside an already-granted folder. Box finds Codex installed globally with npm. The new @box/stash pack gives agents access to the host’s Strands Stash command-line tool. Claude Code · Codex · Stash
  • Tool policies. Patterns for command-line options and arguments can now ignore letter case or exclude specific values. Box rejects MCP server names that map to the same policy name. On macOS, you can allow individual tools and local MCP servers to connect to named system services. Tool patterns · Server names · macOS services
  • Python file operations. Opening a file in w mode now creates it or truncates it even if the script writes nothing. When Python cannot open a file for writing or appending, Box records the attempt as an error in policy history. File creation and truncation · Write errors
  • Credentials and diagnostics. Box can use a valid cached credential during background refresh. When Box Core fails, the command-line tool includes the failure code in the shutdown telemetry event’s core_failure_code field. Credential refresh · Shutdown diagnostics
Build, test, and documentation changes

All 28 changes since v0.3.3

Install box

box runs coding agents such as Claude Code and Codex in a Strands Box, using profiles for your model provider and tools. This release supports macOS 15 or later on Apple silicon, ARM64 Linux, and x86-64 Linux.

Install the latest release:

curl -fsSL https://raw.githubusercontent.com/strands-agents/box/main/install.sh | sh

Install this exact release:

curl -fsSL https://raw.githubusercontent.com/strands-agents/box/main/install.sh | BOX_VERSION=0.4.0 sh

The installer verifies the box-cli- archive for your platform against SHA256SUMS.txt, and on macOS its Apple signature, then puts box on your PATH.

Download Box Core

Download Box Core into a local directory:

curl -fsSL https://raw.githubusercontent.com/strands-agents/box/main/download.sh | sh

Pin this exact release:

curl -fsSL https://raw.githubusercontent.com/strands-agents/box/main/download.sh | BOX_VERSION=v0.4.0 sh

The downloader picks the archive for your platform from the assets below, verifies it against SHA256SUMS.txt, and unpacks its files into ./box-core. Nothing is installed: your $PATH and system directories are untouched. Override the directory with BOX_DOWNLOAD_DIR=/some/path. Write a box.toml and a policy, then run the box by path (./box-core/box run --config ./box.toml).

Linux

The Linux builds require glibc 2.34 or newer, libgcc, and a host that permits Box's namespace, mount, and syscall-filter setup. Package availability does not establish security acceptance.

Manual Linux ARM64 install

To install without the downloader, download box-v0.4.0-linux-arm64.tar.gz and SHA256SUMS.txt from the assets below. In the download directory, run:

awk '$2 == "box-v0.4.0-linux-arm64.tar.gz"' SHA256SUMS.txt > box-linux.sha256 &&
  test -s box-linux.sha256 &&
  sha256sum --check box-linux.sha256 &&
  mkdir -p box-core &&
  tar -C box-core -xzf box-v0.4.0-linux-arm64.tar.gz &&
  ./box-core/box run --config ./box.toml

Linux x86-64

For Amazon Linux 2023 x86-64, use box-v0.4.0-linux-x86_64.tar.gz. The downloader selects this archive and verifies its checksum. Download this exact release, then start a workload:

curl -fsSL https://raw.githubusercontent.com/strands-agents/box/main/download.sh -o download-box.sh &&
  BOX_VERSION=v0.4.0 sh download-box.sh &&
  ./box-core/box run --config ./box.toml

Assets

The macOS archive contains Box.app, a box launcher, and helper links into its signed and notarized bundle. Keep that directory intact. Linux archives contain box beside its helpers. Each box-cli- archive contains the box command, both Box Core helpers, bundled packs, and release.json, and its macOS programs are signed and notarized. SHA256SUMS.txt contains each archive's checksum.

Each asset has a build provenance attestation from this workflow. To check one, run:

gh attestation verify <asset> --repo strands-agents/box \
  --signer-workflow strands-agents/box/.github/workflows/deploy-box-artifact.yml \
  --source-ref refs/heads/main