Skip to content
Agent in a Box: sandboxing AI coding agents with Strands Box

Further reading

This page lists where to read more about each piece of the workshop, grouped by topic, with one line on what you will find behind each link. Use it when a page has made you curious about a piece and you want the full reference rather than the workshop’s short version.

Architecture, stage 5 of 5Pieces: macOS keychain, Developer's terminal, Claude Code, Contained filesystem view, Local exec proxy, box CLI and Box Core, Stand-in secrets, Egress gateway, MCP broker, Tool catalog, Policy engine, Records, Anthropic API, Cloudflare MCP server, Cloudflare API, Sample app. New at this stage: Local exec proxy. A full text description follows the diagram.The boxAgent's sandboxMCP server's sandboxTrusted processbox runstartsstdiomacOS keychainthree secretsDeveloper'sterminalClaude Codethe agentContainedfilesystem viewLocal exec proxysearch and executenewbox CLI and Box CoreStand-in secretsreal values stay hereEgress gatewaydecides net:connect,http:request, andmcp:call for aremote MCP serverMCP brokerlocal MCP serversTool catalogstaged, typed per toolPolicy engineCedar and Dogwood policy files (.dw)Recordsrecords.jsonl and the run's historyAnthropic APIapi.anthropic.comCloudflare MCP serverper-endpoint mode;not on act c's pathCloudflare APIapi.cloudflare.comSample appWorker box-poc-workshop,its D1, KV andWorkers Logsholds names and email addressesnew at this stage

The whole picture. Each topic below is one or more of these pieces.

Text description of the diagram

Stage 5 of 5.

Pieces in the picture:

  • the macOS keychain, which holds the three secrets; the developer reads them into shell variables
  • the developer's terminal
  • Claude Code, the agent
  • the contained filesystem view: only the paths the profile grants exist for the agent
  • the local exec proxy, an MCP server with search and execute tools, in its own sandbox inside the box (new at this stage)
  • the box CLI and Box Core, which build the box and run its trusted process
  • stand-in secrets: the agent gets placeholders, the real values stay in the trusted process
  • the egress gateway, which every network request from the box goes through
  • the MCP broker, which starts local MCP servers and decides their calls
  • the staged tool catalog: Box types each tool from the server's tools/list before the agent may call it
  • the policy engine, which reads the Cedar and Dogwood policy files
  • the records: every decision, written where the agent cannot reach
  • the Anthropic API
  • Cloudflare's MCP server (not on act c's path)
  • the Cloudflare API
  • the sample app: the Worker box-poc-workshop with its D1 database, KV namespace and Workers Logs; the logs and the database hold attendee names and email addresses
  • Boundaries: the box, agent's sandbox, mcp server's sandbox, trusted process.

Nothing is new in the picture: this is the diagram as Part 5 left it. The topics follow it from the agent outwards: the box CLI and its profiles, the sandbox and the gateway, MCP in Box, the policy language, then the protocol, Cloudflare and Claude Code.

Every link below returned a page when it was checked on 2026-11-22. Box’s pages are on GitHub, on the main branch, so they describe the current source, which can be newer than the build this workshop used.

Read moreThe repository and its README: what Box is, and the two products in it, Box Core and the box CLI.Box docs

Read moreHow Box works: profiles, packs, runs and records from the box CLI’s side, in one page.Box docs

Read moreGet started: the CLI’s own walk-through with Claude Code, using the shipped starter.Box docs

Read moreThe box CLI user guide: the index of every CLI page.Box docs

Read moreThe Box Core user guide: the index of the engine’s pages, for box.toml and policy in depth.Box docs

Read moreTerminology: what Box means by box, sandbox, workload, pack and the other words this site uses.Box docs

Read moreThe command reference: every box command and flag, and the environment variables such as BOX_HOME and BOX_TELEMETRY.Box docs

Read moreProfiles: what a profile decides, and how to write and change one.Box docs

Read moreThe profile reference: every key of profile.toml, including [project], [storage], [egress.*] and [mcp.*].Box docs

Read morePacks: reusable settings for one program, such as @box/base, and how a profile combines them.Box docs

Read moreThe pack reference: every key of pack.toml.Box docs

Read moreStarters: the questions box profile create asks, and the policy starters it copies.Box docs

Read moreThe Claude Code pack: what it sets up, and what it copies from ~/.claude (the reason this workshop writes the profile by hand).Box docs

Read moreThe agent guide that box help agent prints: how to edit a profile, written for a coding agent.Box docs

Read moreWhere Box keeps its files: the Box home, storage, run folders and records.Box docs

Read moreconfig.toml: settings that apply to every profile.Box docs

Read moreTroubleshooting: common failures, including the broker socket path limit.Box docs

Read moreLimitations: what a box does not protect.Box docs

Read moreWhere file rules apply, and where the sandbox decides instead of the policy.Box docs

The sandbox, the gateway, secrets and records

Section titled “The sandbox, the gateway, secrets and records”

Read moreThe architecture: the agent’s sandbox, the trusted process and its four enforcement points.Box docs

Read moreHow Box enforces restrictions on macOS with Seatbelt and the trampoline.Box docs

Read moremacOS requirements: Apple silicon, and how to check an installed package.Box docs

Read moreSecurity: what each tier governs, what Box always enforces, and what the operator must write.Box docs

Read moreEgress configuration: routes, destinations and the credentials bound to them.Box docs

Read moreThe egress gateway’s design: how it intercepts and decides each connection and request.Box docs

Read moreHow Box keeps credentials out of the box: stand-ins and how the gateway swaps them.Box docs

Read moreTelemetry and records: what records.jsonl holds and how to send it elsewhere.Box docs

Read moreMCP server configuration: stdio and remote servers, aliases, and the protocol versions Box accepts.Box docs

Read moreWrite policy for an MCP server: mcp:call and the per-tool actions with typed arguments.Box docs

Read moreHow Box runs MCP servers: the broker and its sandboxes.Box docs

Read moreHow Box discovers a server’s tools and stages its catalog.Box docs

Read moreThe Box policy guide: how rules are written, combined and recorded.Box docs

Read moreThe action reference: every action Box asks the policy about, and its context.Box docs

Read moreA first policy, as a tutorial.Box docs

Read moreThe policy design: why Box decides the way it does.Box docs

Read moreThe Cedar reference guide.Cedar docs

Read moreBasic policy syntax: principal, action, resource, when and unless.Cedar docs

Read moreThe Cedar grammar, for the exact form of every expression.Cedar docs

Read moreAuthorization: default deny, and why a forbid overrides any permit.Cedar docs

Read moreThe Cedar home page.Cedar docs

Read moreDogwood: Cedar plus conditions over recorded events, the language of the .dw files.Dogwood docs

Read moreThe Dogwood repository.Dogwood docs

Read moreThe MCP home page and current docs.MCP specification

Read moreThe architecture overview: hosts, clients, servers, and what each sends.MCP specification

Read moreThe specification, version 2025-06-18.MCP specification

Read moreTools: tools/list, tools/call and the input schema each tool declares.MCP specification

Read moreCloudflare’s own MCP servers, among them the API server used here.Cloudflare docs

Read moreThe MCP section of Cloudflare’s Agents docs.Cloudflare docs

Read moreThe repository of Cloudflare’s MCP servers.Cloudflare

Read more“Code Mode: the better way to use MCP”: the idea of letting the agent write code against an API instead of calling one tool per operation.Cloudflare

Read more“Code Mode: give agents an entire API in 1,000 tokens”: the search and execute design of the server this workshop uses.Cloudflare

Read moreThe Code Mode API reference.Cloudflare docs

Read moreCreate an API token: permissions and account restrictions.Cloudflare docs

Read moreWorkers: the programs Cloudflare runs on its servers.Cloudflare docs

Read moreDurable Objects: named, single-instance objects with their own storage.Cloudflare docs

Read moreWorkers Logs: where the Worker’s log events are kept and how they are queried.Cloudflare docs

Read moreThe CLI reference: --bare, --mcp-config, --strict-mcp-config, --tools, --allowedTools, --max-turns, --max-budget-usd and the other flags the acts use.Claude Code docs

Read moreMCP in Claude Code: config files, server types, and the ${VAR} placeholders.Claude Code docs

Read moreSettings and environment variables, such as CLAUDE_CONFIG_DIR.Claude Code docs

Read moreThe Strands Agents site, the project Box belongs to.Strands Agents

Read moreBuilds and gaps: the local build, and every gap to a released Box.This workshop

Read moreMeasurements: tokens, cost, turns and time per act.This workshop

Read moreThe sample app, the workshop progress tracker and leaderboard.This workshop

  • Box’s own pages are on GitHub and describe the current main branch, which can be newer than this workshop’s build.
  • For the policy language, start with Box’s policy guide, then Cedar’s syntax and authorization pages.
  • For code mode, Cloudflare’s two blog posts explain the design; Box’s MCP pages explain what Box can see of it.

Back to the start: the welcome page.