Where Box keeps its files
Box reads your settings from two places. Your Box folder, ~/.strands/box, holds what you use in every
project: your profiles, and any packs, starters, and policies of your own. A project can also keep
a profile file in source control, so everyone who works on it runs the same setup. Box writes files
of its own into ~/.strands/box too: what each profile keeps between runs, and a record of each run. When
BOX_HOME is set, its folder takes the place of ~/.strands/box on every
page.
Most people edit only their profile. The rest is optional, for when you want to share tools,
settings, or rules across profiles or with a team. A team can keep its own in a
collection, a repository that you clone into ~/.strands/box/external/.
Files to customize
Section titled “Files to customize”| Item | Where it goes | What it’s for |
|---|---|---|
| A user profile | ~/.strands/box/profiles/<name>/ | One agent persona that you run by name in any project, such as box run claude. |
| A project profile | The project’s .box folder, in source control | One setup for everyone who works on that project. |
| A custom pack | ~/.strands/box/packs/<name>/ | Tools and settings that several profiles share. |
| A custom starter | ~/.strands/box/starters/<name>/ | A ready-made choice in box profile create, such as a team’s standard setup. |
| A custom policy | ~/.strands/box/policies/<name>/ | The rules that a new profile starts from. |
| A collection | ~/.strands/box/external/<name>/ | A team’s packs, plugins, starters, and policies, kept together in one repository. |
| The menus and the banner | ~/.strands/box/config.toml | Which starters and policies box profile create offers, and whether runs show the activity banner. |
box profile create writes a user profile for you. You write everything else by hand, and box
only reads it. A project keeps only its profile file: the packs that file lists come from Box,
from a collection, or from each person’s own ~/.strands/box/packs/, so a team that writes packs
shares them as a collection (Share with a team).
User profiles
Section titled “User profiles”Each profile that box runs by name is stored in ~/.strands/box/profiles/<name>/. box profile create
writes it, and after that both of its files are yours to edit. The next run uses each change.
profile.tomlis the profile itself: its packs, your values for their options, and anything you add or take away. Profiles explains what goes in it.policy.dwholds the profile’s rules, a copy of the policy picked when the profile was made. An edit to it changes what the profile allows (Write custom rules). More rule files go beside it, each listed inpoliciesinprofile.toml.
Files in the project
Section titled “Files in the project”A project can keep a profile file beside its source, so the setup goes into source control with the
code. Put it in the project’s .box folder, such as .box/profile.toml, with its rule files
beside it. The agent can’t change anything in .box, and box refuses a profile file anywhere
else in the project you run in, because the agent could rewrite it. The file looks like a user
profile with a [profile] table that holds its name
(Where profiles are defined), and you run it by its path
(Run a profile file).
The project holds only what you put in .box. On Linux, a run also makes an empty .box folder
when the project has none. Keep .box a folder: box run stops when
it’s a file or a link.
The tools the agent runs still write their own files in the project, such as caches and build
output, so add those to the project’s .gitignore
(Tools write into the project).
Custom packs, starters, and policies
Section titled “Custom packs, starters, and policies”A pack, a plugin, a starter, or a policy of your own is a folder in ~/.strands/box/, and the folder’s name is its
name. Make and edit these folders by hand: box reads them and never writes to them.
- A pack is
~/.strands/box/packs/<name>/pack.toml, with any files it uses beside it. A profile uses it when<name>is in itspacks(Packs). - A plugin is
~/.strands/box/plugins/<name>/plugin.toml. A profile uses it when<name>is in itsplugins(Plugins). - A starter is
~/.strands/box/starters/<name>/starter.toml.box profile createoffers it when<name>is in[starters]inconfig.toml(Starters). - A policy is
policy.tomlandpolicy.dwin~/.strands/box/policies/<name>/.box profile createoffers it when<name>is in[policy-starters]inconfig.toml(Policy starters).
A change to a pack reaches every profile that lists it, on its next run. A starter and a policy are different: a new profile gets a copy of their answers and rules, and nothing ties it to them afterwards. So a later change to a starter or a policy reaches only the profiles made after it (Build a team starter).
Collections
Section titled “Collections”A collection is a folder of packs, plugins, starters, and policies that a team or a company keeps
together in its own repository. Each folder in ~/.strands/box/external/ is one collection, so to
add one, clone the repository there:
git clone https://github.com/acme/acme-box ~/.strands/box/external/acmeThe folder’s name is the collection’s scope. Everything in external/acme/ goes by
@acme/<name>, so a profile lists the pack in packs/claude/ as @acme/claude. Pick a name of
lowercase letters, digits, and - that doesn’t start with - and isn’t box. Inside, the
collection has the same layout as your own folders, plus an optional collection.toml:
~/.strands/box/external/acme/|-- collection.toml what the menus get (optional)|-- packs/| `-- claude/ the pack @acme/claude| `-- pack.toml|-- plugins/|-- starters/| `-- claude/ the starter @acme/claude| `-- starter.toml`-- policies/ `-- team/ the policy @acme/team |-- policy.toml `-- policy.dwWithout collection.toml, a profile can still name anything in the collection, but
box profile create offers nothing new. collection.toml has the keys
that put its starters and policies in the menus.
To update a collection, run git pull in its folder. Updates follow the same rule as your own
folders: a changed pack reaches every profile that lists it on its next run, but a changed starter
or policy reaches only the profiles made after it.
Put the clone itself in external/, not a link to a checkout somewhere else: box refuses a link
there, and anything else that isn’t a folder. It skips names that start with .. Any other
problem with a collection, such as a bad folder name or a mistake in its collection.toml, stops
every run and box profile create until you fix it. Because a collection is inside
~/.strands/box, each run protects it the way it protects the rest of that folder: no box can
change it.
Menus and banner: config.toml
Section titled “Menus and banner: config.toml”~/.strands/box/config.toml is also written by hand. It sets the starter and policy menus of
box profile create, and whether runs show the activity banner, for every profile.
Box config reference has each table and key.
Profile storage and runs
Section titled “Profile storage and runs”Each profile has a storage folder, ~/.strands/box/storage/<profile>/default/. The agent keeps its
settings and sessions in its agent/ folder there between runs. Every project the profile runs in
shares it, and some agents keep their sign-in there too, so give it the same care as the agent’s
own settings folder. The agent can write to the folders in agent/ and nowhere else in
~/.strands/box. The rest of the storage folder holds what box keeps for the tools and MCP
servers the agent runs.
A box in one project can read and change what the profile keeps for every other project, so give a project that needs to stay apart its own profile (Limitations). Instructions, skills, and settings in the box says which of your files come into storage, and when.
Each run has a folder in ~/.strands/box/r/, named by its box ID, such as b-5b8e3d70c92f14ab. It
holds the settings and rules the run used (box.toml and policy.dw), a record of what the box
allowed and stopped (records.jsonl), and the box’s own state. The box ID lets you
run in the same box again.
Terminal runs append the Box messages they receive, including warnings, to
box.log. Only your account can read it, and it has no size limit. The agent’s output stays on
the terminal.
A new run that fails before the box starts leaves no folder. Every other run folder stays until you clean it up, and storage stays until you delete it.
Two more items in ~/.strands/box need no edits. installation.toml holds the choice made with
box telemetry and the random ID that usage telemetry sends. packages/
holds each release that the installer put on this computer.
Upgrade or choose a version says which old releases you
can delete.
Deleting files
Section titled “Deleting files”- A run folder is safe to delete once the run has finished. After that, its box ID no longer works.
- A storage folder comes back on the next run, but the agent starts over. It loses its settings
and sessions, and it may need a new sign-in.
box profile resetdeletes it. - A profile folder is gone for good once deleted, and so are your edits to it. Its storage and
runs stay until you delete them too.
box profile deletedeletes all three together. editing-box-profile.mdin~/.strands/boxis from an olderbox.boxno longer uses it, so it’s safe to delete.
The commands below remove runs and profiles for you, and ask first.
Moving to another computer
Section titled “Moving to another computer”To move to another computer, copy these from ~/.strands/box to the same place on the new one:
profiles/packs/,plugins/,starters/, andpolicies/, if they existconfig.toml, if it existsexternal/, if it exists, or clone each collection into~/.strands/box/external/again
Then install Box and the agents that the profiles use. A profile made with box profile create has
no paths tied to the old computer. A full path you added by hand, such as a folder outside the
project, has to exist on the new computer. A copy of storage/ keeps each agent’s settings and
sessions. Leave r/, installation.toml, and packages/ behind. If usage telemetry is off,
run box telemetry off on the new computer too.
Commands for Box files
Section titled “Commands for Box files”| To | Run |
|---|---|
| Make a user profile | box profile create |
| Change the answers in a profile, and keep your other edits | box profile edit |
| See a profile’s storage folder, and what a run will get | box profile show |
| List your profiles and the starters you can make one from | box profile list |
| Find a run’s box ID | box runs list |
| Read what a run allowed and stopped | box runs history |
| Remove the runs of a profile, or every run | box profile clean |
| Start a profile’s agent fresh, without its settings and sessions | box profile reset |
| Delete a profile, with its runs and storage | box profile delete |
| Turn usage telemetry on or off | box telemetry |
The command reference has every command and flag.
Folder layout
Section titled “Folder layout”The whole of ~/.strands/box, with one of each item:
~/.strands/box/|-- config.toml the starter and policy menus, and the banner|-- installation.toml|-- profiles/| `-- claude/ one user profile| |-- profile.toml| `-- policy.dw|-- packs/| `-- my-team/ a custom pack| `-- pack.toml|-- plugins/| `-- my-vault/ a plugin you wrote| `-- plugin.toml|-- starters/| `-- acme-claude/ a custom starter| `-- starter.toml|-- policies/| `-- team/ a custom policy, for new profiles| |-- policy.toml| `-- policy.dw|-- external/| `-- acme/ a collection, cloned from a team's repository|-- storage/| `-- claude/| `-- default/ what the claude profile keeps between runs|-- r/| `-- b-5b8e3d70c92f14ab/ one run`-- packages/ the installed releasesAnd a project that keeps its own profile:
~/src/my-app/`-- .box/ |-- profile.toml a project profile, in source control `-- policy.dw