Help · Settings
Settings → This Mac → Morie Box
The small Linux computer inside your Mac where rigs, and the chats you choose, run.
Checked against Morie 0.57.1.
- Status with Start, Stop and Show log; Open a terminal in the Box.
- Memory, CPU, Disk size, and Internet on or off for everything in the Box.
- Where this project’s new chats and terminals run: This Mac or the Morie Box.
Shop’s API needs a database, and its chats should run where they cannot reach the internet.
- In Disk size, type
40and press Enter. The Box’s disk grows to 40 GB at its next start; it can grow but not shrink. - Turn Internet off. Nothing else in the Box reaches the internet, so a package install there fails and says so. Claude Code and Codex still reach their own service, so chats keep working.
- In Settings → Project, under Where chats and terminals run, set New chats to Morie Box. Chats you start from now on run in the Box, with the internet off.
The page, top to bottom
Morie Box · this Mac is the Box itself. Its rows are:
- Status. One word (Not set up, Setting up, Starting, Running, Stopping, Stopped, Stopped · idle or Failed) and one button for what you can do next: Set up with its download size, Cancel, Stop, Start or Retry. When the Box has failed, Show log opens its last lines. A setup a chat asked for, held while this Mac is busy, shows Waiting with who asked and Cancel. When the disk has too little room, the line says how much is free and how much setup would leave. Stop asks first if chats, terminals or rigs are running in the Box, and says what stopping ends.
- Terminal. Open a terminal in the Box opens a shell inside the Box, to look at the Box itself.
- Docker endpoint. The path of the Box's Docker socket on this Mac, with Programs you run on this Mac, chats included, can use this. and Add as a Docker context. See The Docker endpoint, below.
- Memory and CPU. Each shows how much the Box uses while it runs and has a cap you can change, in GB and in cores. The Box takes up to the cap and gives it back to macOS when it stops. A new cap reaches a running Box at its next start.
- Disk. Disk size is the most the Box’s disk can hold. Beside it, what the images, volumes and build cache take, and Clean up… for what can be removed. When the disk is full, the row shows Free space… (Clean up… when the Box has failed, which offers Reset…, and that opens the Reset the Morie Box? confirmation) and Make it larger… beside Disk size, and the line under it says The Box's disk is full · 31.6 GB on this Mac while the Box runs, or Full · plus its system 2.1 GB · 40.2 GB free while it is stopped or failed. The switch Remove unused build cache and untagged images, with days unused, clears them once a day. Warn when the disk is (85 % unless you change it, 50 to 99) sets the percentage at which the Rigs page's strip turns amber and says The Morie Box's disk is 87% full. Volumes are never removed automatically. See The Box's disk, below.
- Disks folder. The folder that holds the Box’s two disks, its system and its data. It shows default until you move them. Change… opens the system folder dialog; Morie makes a folder named Morie Box disks in the one you choose and moves the disks into it, once. Everything else of the Box stays in Morie’s data folder. See Move the Box’s disks to another folder, below.
- Internet. On, chats, terminals and rigs in the Box can reach the internet. Off, only Claude Code and Codex reach their own service. A change reaches a running Box at once.
- When idle. Stop after a number of minutes with nothing running in the Box. It starts again in about five seconds when something needs it.
- Repair. Repair the Morie Box… puts the Box’s own system back and keeps its images, volumes and sign-ins. It is shown once the Box is set up. See Repair the Morie Box below.
- Reset. Reset the Morie Box… deletes the Box’s disk, with its images, databases and the agents’ sign-ins. You type
resetto confirm. Worktrees on your Mac are not touched.
In the Box now, the Morie Box card's last row before Repair, lists the chats and rigs there, from every project.
Where chats and terminals run is kept for each project, so it is on Settings → Project (see Settings). It has New chats and New terminals, each This Mac or Morie Box. You can still choose when you start one. A chat in the Box can read and change the files of every ticket’s worktree, but nothing named .git in it (the worktree’s own .git file, the small file that tells git where that worktree’s history is, or a file or folder of that name at any depth). git and other tools in the Box answer Operation not permitted there, so a chat in the Box cannot git init, git clone or add a submodule inside a worktree; it clones into the Box home instead. Deleting a folder that holds a .git of its own (a build folder with a nested checkout, for example) stops part-way in the Box, with Operation not permitted; delete it from This Mac. A package manager that clones git dependencies into the project, such as SwiftPM, an npm or pnpm git dependency, or pip’s -e git+, fails in the Box for the same reason. Whatever else runs in that worktree on This Mac still runs the files the chat wrote: a script or a build, Morie’s checks and an automation step that runs a command when they run on This Mac, and an editor that opens the worktree. So does git run inside a folder the chat made to look like a whole repository (a bare repository); git’s own setting safe.bareRepository=explicit keeps git on This Mac from reading one. Morie’s own git also checks each worktree’s .git, including one changed on This Mac. When a ticket’s worktree has a .git that is a folder or a file pointing outside its repository or to another worktree, that worktree’s card on the ticket’s Git tab says Couldn’t read this worktree’s changes: with Morie’s refusal, then Stop the Box (the Morie Box menu → Stop the Box). In Finder, move this worktree’s folder to the Trash; anything not committed in it stays in the Trash, where you can get it back. Then, under Worktrees of #N on this tab, choose Remove → Remove worktree, leaving Delete branch unticked, and then Prepare worktree on Ticket info. (#N is the ticket’s number; the same words follow when the worktree’s folder itself is a link.) Refresh there says Couldn’t refresh Git and worktrees: a worktree’s card says why. A Commit from changes the tab showed earlier is refused with refused: this worktree's .git points outside its repository, or, when the .git is a link, with refused: <path> is a link; Morie does not run git there. A chat in the Box can read and change the files of a repository’s own folder only for a repository that has a rig; .git stays read-only there, so a chat in the Box can change files but not the repository’s history. Read-only shares are enforced on the Mac: the Morie Box runs inside a macOS sandbox that refuses any change to them from the Box. The Box checks this at every start and does not start when the check fails. A folder renamed or moved on the Mac while the Box runs is checked at its next start. On This Mac, a chat runs as you.
Agents in the Box lists Claude Code and Codex inside the Box: their version, whether each is signed in, Update and Sign in…. They sign in once inside the Box, separately from the ones on your Mac.
Tools in the Box · this Mac lists what is installed for every chat and terminal there. The GitHub CLI is there to begin with. Add a tool picks another; Remove and Retry are on its row. A repository can also name its own tools.
From a chat: Start, Stop, Compact and the log
From a chat. A Base chat (one with no ticket) starts the Box with box.start (Ask by default; it may be set to Always in Settings → MCP), stops it with box.stop (the card lists the chats, terminals and rigs that end; Ask or Off), compacts its disk with box.compact (Ask or Off) and reads its log with box.log (every chat; Always). Each asks the Box through the same step its button does and answers in the Box's own words, or refuses with them: There is not enough room on this Mac., The Morie Box is Stopping; it cannot start now. Ticket chats and read-only chats are refused before anyone is asked. Tools, disks, Clean up and agents. The same chat reads the Box's tools with box.tools.read (every chat; Always), adds one from Morie's list with box.tools.add, installs a failed one again with box.tools.retry and takes one off with box.tools.remove; it updates claude or codex in the Box with box.agents.update, and runs Clean up with box.cleanup. Each is Ask by default and may be set to Always in Settings → MCP. box.cleanup removes only the unused build cache and untagged images, never a volume or an image a rig uses; those stay your choice in the Clean up dialog. box.disks.move moves the Box's disks to a folder the chat names: Ask or Off only, its card shows the plan (how much moves, to which drive), and it is refused in the Box's own words (Stop the Box first., Connect the drive first., or the plan's refusal) unless the Box is stopped and the drive can hold the disks. Use the default… on the row is the same move to the default folder: pass the disks folder inside the Box's own folder, <Morie data folder>/box/disks (the Disks folder row shows the folder in use; the card names the folder the plan resolves). A move already going is cancelled with Cancel on the row, not from a chat. For example, a Base chat asks box.tools.add with jq: the card says add jq to the tools in the Morie Box. Left out: the Box's GitHub token (a secret's value), each agent's Sign in and Open a terminal in the Box (a chat already runs commands there with mrig).
Repair the Morie Box
How it works. The Box has two disks: its own system (Linux and what Morie installs with it) and its data (images, containers, volumes, the databases in them, and the agents with their sign-ins). If the system is damaged, the Box can fail to start. Reset fixes it by deleting both disks. Repair replaces only the system disk, with a fresh copy of the Linux guest image Morie keeps, and keeps the data disk.
- First, the kept image is checked against the version pinned in this Morie build. It is downloaded again only if it is missing or does not match. If that fails, nothing in the Box changes.
- Then the Box stops, the new system disk is written beside the old one, and it replaces the old one only once it is complete. If the Mac stops halfway, the old system disk is still there.
- The Box then starts, as on its first boot.
- What stays: images, containers, volumes, the databases in them, the agents and their sign-ins, and the Box’s memory, CPU, disk and internet settings. Worktrees on your Mac are not touched.
- What goes: anything installed into the Box’s system by hand. The tools chats use in the Box (such as Git) come back at their next install, which needs the Box’s internet on.
- Repair keeps everything in the Box’s data, including anything a program inside the Box left there. If the Box fails again after a repair, or a program may have damaged it on purpose, use Reset the Morie Box…: it deletes the data too and sets the Box up again.
How to do it.
- Open Settings → This Mac → Morie Box. The Repair row sits above Reset. When the Box failed because it could not keep programs inside it from changing its network settings, Repair the Morie Box… is also beside Retry on the Status row.
- Press Retry first. If the Box starts, you are done.
- If it fails again, press Repair the Morie Box…. A confirm says what stays and what goes. Press Repair the Morie Box. The button shows Repairing….
- Status shows Stopping with Putting back the Box’s system, then Setting up with the first-boot steps. When it has worked, Status says Running, and the card says The Morie Box was repaired; images, volumes and sign-ins are kept. With the Box’s internet off, the card also says to turn it on so the tools come back.
For example: a project’s rig keeps its Postgres data in a volume, and the Box now fails at every start. Press Retry, and it fails again. Press Repair the Morie Box…, then Repair the Morie Box. A minute or two later the Box is Running. Start the rig: its database still has its data, and the chats in the Box are still signed in.
When Repair is off or refused.
- Off while chats, terminals or rigs run in the Box. Stop them, then press it again.
- Off while compacting. Wait for the compaction to finish.
- Not enough free space on this Mac to repair the Morie Box: it needs … GB and … GB is free. Nothing in the Box changed. Free some disk. The figure includes what Keep free keeps.
- Couldn’t repair the Morie Box: with the reason, then Nothing in the Box changed. The image could not be checked or downloaded, often because this Mac is offline. Try again when it is online.
- The Box’s system was put back, but the Box did not start: … Press Show log. If it still fails, Reset the Morie Box… deletes its disk and sets it up again.
- No Repair row: the Box is not set up yet. Set it up first.
From a chat. A Base chat repairs the Box with box.repair: the owner is asked each time (Ask in Settings → MCP; it can be Off, never Always), and the card says what is put back and what stays. It is refused, in words, while chats, terminals or rigs run in the Box, as the button is off then (The Morie Box was not repaired: 1 chat and 1 rig run in it. Repair it when they have finished.), for ticket chats (box.repair is for a Base chat (one with no ticket); ask the Morie chat or the owner.) and for read-only chats. A chat that cannot start the Box because it failed reads its error with box.log, which every chat may read.
Move the Box’s disks to another folder
How it works. The Box keeps its system disk and its data disk in one folder. By default that is inside Morie’s data folder. Disks folder lets you keep them somewhere else, for example on an external drive with more room. Any folder works.
- The Box must be stopped. While it runs or starts, Change… is off and says Stop the Box first.
- After you choose a folder, a confirm says how much will move and how much room is free there. Morie refuses a drive that cannot hold the disks, a drive that cannot keep a disk file sparse (ExFAT, FAT and network drives), a folder that already holds Box disks, and a folder it cannot write to. A refusal says why and changes nothing.
- Not inside a project folder. The Box shares your worktree root, your rigs' checkouts and your worktrees with itself, so it could read and change its own disks if they sat in one. Morie refuses a Disks folder that is, or is inside, such a folder (<folder> is inside a folder the Morie Box shares with your projects (<share>), so the Box could read and change its own disks. Choose a folder that is not in a project, a checkout or a worktree.). It also refuses to share a checkout or the worktree root that holds the disks, and the Box does not start while any shared folder holds them (The Morie Box did not start: <share> is shared with it and holds the Box's own disks (<disks>). Move the Box's disks to a folder outside it in Settings → This Mac → Morie Box.). The Box stays stopped, and Change… still works then: move the disks to a folder outside the shared one and start the Box again.
- Never Morie’s own data folder. The Box also never shares Morie’s data folder, or a folder that holds it or is inside it. Morie refuses a worktree root like that (The worktree root <root> is, holds or is inside Morie's data folder (<data folder>), so the Morie Box does not share it. Choose another worktree template in Settings → Repositories and worktrees → Worktrees and branches.), leaves out a worktree’s
node_moduleslink that leads there, and does not start the Box while any shared folder is one (The Morie Box did not start: <share> is shared with it and is, holds or is inside Morie's data folder (<data folder>). followed by one way forward: for the worktree root, Choose another worktree template in Settings → Repositories and worktrees → Worktrees and branches, then start the Box again.; for a checkout, Move the checkout, update its path in Settings → Repositories and worktrees → Repositories, then start the Box again.; for anode_moduleslink, Point <worktree>'s node_modules link somewhere else, then start the Box again.). A link, a different capital letter or another spelling of the same folder is refused too. - node_modules only from inside the project. A worktree's node_modules link works in the Box when it leads inside a worktree or rig checkout the Box shares for that project: the Box reaches it through that share. It also works when it leads into the node_modules of one of the project's repositories that the Box does not share read-write, such as the main checkout's: that folder is shared read-only. A link anywhere else (your home folder, a shared package store, a folder above the project) is left out. A folder that was shared and has since become one the Box never shares whole (for example your home folder or one of its standard folders such as Documents, a temp, system or applications folder, a disk's root) is left out too. These rules are checked again at each start of the Box, so a folder changed into a link after it was shared is caught then. The Box still starts. Chats in the Box then see no packages in that worktree: install them in the worktree itself, or link node_modules to the node_modules of one of the project's repositories. A link into a repository the Box does not share read-write is picked up at the Box's next start. If you move a shared folder yourself, for example a repository onto another disk behind a link, Morie shares it from its new place at the next Box start after that project starts a chat or a rig. The worktree root itself must stay a real folder: if it becomes a link, chats in the Box don't start until you replace the link with a folder or choose another worktree template.
- The disks are copied with their unused space kept, checked against the originals, and only then removed from where they were. On the same drive they are simply moved. While it runs, the row shows the progress and Cancel, which works until the copy is checked. If anything goes wrong, or you cancel, nothing changes: the disks stay where they were, and the message says so. A drive that stops answering for a minute counts as gone.
- A move that did not finish. Until the new folder is saved, the disks where they were are the Box's disks. If the drive is disconnected or Morie quits before that, the move is undone at the next start, or at once: the copy is removed if its drive is there, or left on it if not, and the message names the folder so you can delete it when the drive is back. The Box then starts from its disks where they were, and you can move them again. Once the new folder is saved, the Box uses it; if the old copy could not be removed, Morie removes it at the next start.
- Chats and rigs that need the Box wait until the move is done. Compact and Reset are off meanwhile.
- Use the default… appears once the disks have moved; it moves them back.
Drive not connected. If the drive is not there, Status shows Disks not reachable with the folder’s name, and the row says Connect the drive first. The Box does not start, and nothing is created or removed on the missing drive. Connect the drive and press Try again. If the drive is disconnected while the Box runs, the Box stops and says so; your worktrees on this Mac are not touched. Reset the Morie Box… with the drive away sets the Box up again in the default folder and leaves the disks on the drive as they are.
How to do it.
- Stop the Box (Status → Stop).
- In Disks folder, press Change… and choose a folder.
- Read the confirm, then press Move the disks.
- When it is done, the row shows the new folder and the card says the disks are there. Start the Box as usual.
For example: the Box’s data disk has grown to 40 GB and the Mac is short of room. Plug in a drive, stop the Box, press Change…, choose a folder on the drive, and press Move the disks. A few minutes later the row shows the new folder and the Mac has the room back. While the drive is out, the Box says Disks not reachable; plugging it in and pressing Try again brings it back.
A Box still running from an earlier Morie
How it works. The Morie Box keeps running on its own when Morie itself ends without stopping it: after a crash, a force-quit, or a quit that takes too long. A Box left running while Morie is closed stays as it is until Morie opens again. When Morie opens, it checks the Box of its own data folder: each start records which helpers and which Box system it was started with. If the Box running now was started by an earlier Morie (other helpers, another Box system, or a Box from before this check), Morie stops it before anything uses it. Meanwhile Status says Stopping, and nothing starts in it: a chat's, a Box terminal's or a rig's start waits for that stop, then starts the Box afresh with this Morie's helpers. A Box this Morie version started itself is used as it is, crash or not.
- It is the ordinary Stop, not a Reset. Containers get Docker's own stop; the disk, images, volumes, the agents' sign-ins and rig records are kept.
- What it ends: the containers, chats and terminals still running in that Box. Rigs show stopped and start again with their own Start.
- Under Status, Settings → This Mac → Morie Box then says, until Morie quits: *Morie Box: stopped because it was still running from an earlier Morie. Its containers, chats and terminals stopped; its disk, images and volumes are kept. It starts again when something needs it; rigs start again with their own Start.*
- If that stop fails, the Box shows Failed and Morie uses nothing in it. The line under Status says *Morie Box: didn’t stop: <the reason>. It was still running from an earlier Morie; nothing uses it, and Retry ends it and starts the Box again.* Until then, what the earlier Morie left running keeps running: the Box itself, its network helper, and the containers in it. Retry (or the next chat or rig that needs the Box) ends them, then starts the Box. If Morie cannot even record that the Box failed (a full disk, for example), Status still shows Failed with that line, and a chat's, a Box terminal's or a rig's start is refused with the same words (a Box terminal ends with them); once the cause is gone, quit Morie and open it again, and it stops that Box.
- Morie waits up to two minutes for another Morie window that is working on the same Box; after that it treats the stop as failed, as above.
- Only the Box of this Morie's own data folder is checked. A second Morie that runs with another data folder (a test copy, or another version beside it) never stops a Box that isn't its own.
- The limit: an older Morie that still has the same data folder's Box open loses it. The newer Morie stops it, and the older one finds it stopped.
- At each check while the Box runs (about once a minute), Morie also reads the guard that keeps programs inside the Box away from its network settings on this Mac, on the running Box itself. If a part of it is missing, Morie stops the Box's Docker Engine (its containers stop) and the Box ends Failed with The Morie Box could not keep programs inside it from changing its network settings on this Mac, as above. The Box itself keeps running until Retry or Repair.
Set it up. There is nothing to set. Example: Morie is force-quit while the Box runs, you update Morie, and you open it. 1. Open Settings → This Mac → Morie Box. 2. Status says Stopped, and the line under it says *Morie Box: stopped because it was still running from an earlier Morie. …* 3. Start a rig, or a chat in the Box: the Box starts again, with this Morie's helpers. The line stays until Morie quits.
From a chat. Nothing changes for a chat. A chat's start that needs the Box (tickets.services.start, or a chat or terminal launched in the Box) waits for that stop, then starts the Box; the chat sees only the usual start. Nothing is launched into the earlier Morie's Box at any point. If the stop failed, the start goes on and ends what the earlier Morie left running before it boots the Box; if that start fails, the chat is refused with the Box's error, as for any failed Box. If Morie could not record that the Box failed, the chat is refused with Morie Box: didn’t stop: <the reason>. …; it tells the owner, who frees the cause (a full disk, for example), then quits and opens Morie again.
The Docker endpoint
How it works. While the Box runs, its Docker Engine answers on one socket on this Mac, at the same path every time: ~/Library/Application Support/morie-ide/box/docker.sock (inside Morie's data folder, wherever that is). It is a link Morie points at each start's socket, and removes when the Box stops; it is the same kind of endpoint Colima gives. Anything that speaks Docker can use it: docker, docker compose, the older docker-compose, make targets and scripts that call them, and tools that read DOCKER_HOST (Docker's own SDKs, for example). They see the Box's containers, images, volumes and networks, rigs' included, and what they start runs in the Box. The row shows the path; with the Box stopped it shows it faint, with Works while the Box runs., and a command sent to it then fails with Docker's own Cannot connect to the Docker daemon. There is no switch to turn it off: stopping the Box ends it. docker compose and docker buildx come with your own Docker install; to use Morie's copies of them instead, add <data folder>/box/cli-plugins to cliPluginsExtraDirs in your own Docker configuration (~/.docker/config.json). Testcontainers needs TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE=/var/run/docker.sock beside DOCKER_HOST, as with Colima: it is the socket's path inside the Box, which Testcontainers mounts into its helper container.
Nothing is written into your own Docker settings (~/.docker, or your DOCKER_CONFIG) unless you press Add as a Docker context. That runs Docker's own docker context create morie, once, and does not make it the current context. The row then says Added as Docker context morie. To use it: docker context use morie and offers Remove the context, which runs docker context rm morie; it removes only a context named morie that points at this socket, never one of yours that points elsewhere. If Docker refuses (a context named morie that is yours already, or the morie context still in use), the row says Couldn’t add the Docker context: <Docker's message>. or Couldn’t remove the Docker context: <Docker's message>.; in that case run docker context use default or remove your own context first.
What this costs: any program you run on this Mac as you can reach the Box's Docker, and so start containers in it and read what rigs keep there, as with Colima or Docker Desktop. There is no stable endpoint, and the row does not show, when <data folder>/box/docker.sock is longer than a socket path can be: 103 bytes, so a data folder of at most 87 bytes, where a letter with an accent or any other non-ASCII letter counts 2 to 4 bytes. The same holds for a start at which the Box could not make the link; the Box still runs, and its log says why.
Set it up. Example: a shop repository whose make targets run docker compose. 1. Start the Morie Box (Start on the Status row). The Docker endpoint row shows the path. 2. Either press Add as a Docker context, then in Terminal run docker context use morie; or, for one Terminal window only, run export DOCKER_HOST="unix://$HOME/Library/Application Support/morie-ide/box/docker.sock" (the quotes matter: the path has a space). 3. Run docker ps: it lists the Box's containers, rigs' included. 4. In the shop checkout, run make up (or docker compose up -d): it starts the stack in the Box, as it would on Colima. To go back to your other Docker, run docker context use default (or unset DOCKER_HOST), and press Remove the context when you no longer want it.
From a chat. A chat on this Mac uses mrig: mrig docker ps, mrig compose up -d, each asked and its output cleaned of secret values as Settings → MCP says. Where the Morie Box is set up on this Mac, its launch settings point plain docker away from the endpoint: a chat on this Mac starts with DOCKER_HOST set to a socket of Morie's that answers every request with Use mrig in a chat: docker in a chat goes through Morie., so docker ps there prints Error response from daemon: Use mrig in a chat: docker in a chat goes through Morie. That covers your own Docker Desktop or Colima on that Mac too: DOCKER_HOST outranks every Docker context, so plain docker in a chat reaches none of them, unless your shell's startup files set DOCKER_HOST themselves, and mrig is the way. With no Morie Box set up, a chat on this Mac starts with no Docker setting at all, and plain docker there uses the Docker contexts in ~/.docker. This is honest-agent scope, as the line says: a chat that unsets DOCKER_HOST, or names the socket's path itself, reaches it like any program of yours. A chat in the Morie Box is not affected: it uses the Box's own Docker. Terminals you open are not changed.
After updating to 0.56.8: reset the Box
Reset the Morie Box after updating to 0.56.8, to get its security fix: open Settings → This Mac → Morie Box and press Reset the Morie Box…, then type reset and press Reset the Morie Box. Reset deletes the Box's disk: its images, volumes and databases, and the agents' sign-ins (sign in again afterwards). Before you reset, export or copy out anything you keep only in a rig's volumes, such as a database's data. Worktrees on your Mac are not touched, and rigs build again at their next start. Reset is off while a chat, terminal or rig runs in the Box: stop them first.
From a chat. A Base chat resets the Box with box.reset: it sets the Box up again, as the button does, after the owner allows it on a card that says the Box's disk, its images, volumes, databases and the agents' sign-ins go. It is Ask or Off, never Always, and refused while anything runs in the Box. A chat tells the owner first that anything kept only in a rig's volumes should be exported. Example: a chat on the project shop asks to reset the Box; the card reads Ada wants to reset the Morie Box: …; Deny changes nothing.
Checkouts shared when added or imported
Adding a repository (Add a repository… in Settings → Repositories and worktrees or Base → Git), a set-up file, or Create with repositories shares, with the Box, the own folder of every repository that has a rig: Compose files named in its rig settings, a services section in its committed .morie/repo.json, or a Compose file at its top (compose.yaml, compose.yml, docker-compose.yaml or docker-compose.yml). Shares are fixed when the Box starts, so a repository added while the Box runs is shared at the Box's next restart, and that restart stops the rigs running in the Box. Several repositories added one after another need only one restart. Settings → Project, the first run's last step, and the page where you pressed Add a repository… then say:
*Morie Box: 2 repositories with a rig will be shared at its next start. Restart the Morie Box once to start their rigs.* (one repository: 1 repository with a rig … its rig.)
Restart the Morie Box restarts it; Later hides the line for this session. The line adds what stops, naming the rigs: Restarting stops 2 chats, 1 terminal and the rigs #12 Sign-in page and Web app checkout, which run in the Morie Box now. The rigs start again by themselves. (one rig: the rig #12 Sign-in page, which runs … The rig starts again by itself.; up to four rigs are named, five or more as three names and 2 more). When a named rig would not be started again after the restart (it is in error, its own Stop is under way, its ticket is archived, or rigs are switched off), the last sentence is left out. While another project's work or a chat, terminal, checks run or rig start in the Box blocks the restart, Restart is dimmed with the reason (the same words as the box.restart refusals), and Morie asks again when the window is focused and every 30 seconds. This project's own chats and terminals are left out of that check. If the Box runs and nothing runs in it, no line shows: the first Start restarts it by itself.
Set it up. Example: shop-api has a rig and you import a set-up file for it. 1. Import the file (Settings → Project, or the first run's import step) and press Set up. 2. The page then shows *Morie Box: 1 repository with a rig will be shared at its next start. Restart the Morie Box once to start its rig.* 3. Press Restart the Morie Box; the button reads Restarting…, then the line goes. 4. Open shop-api's ticket and Start its rig: a chat in the Box can now change files in shop-api's checkout (not its .git). With the Box stopped or an idle Box, skip step 3: the first Start restarts an idle Box by itself.
Example: adding repositories while the Box runs. 1. In Settings → Repositories and worktrees press Add a repository… and choose shop-web, which has a compose.yaml at its top. 2. Under the page head the same line shows: *Morie Box: 1 repository with a rig will be shared at its next start. Restart the Morie Box once to start its rig.* 3. Add shop-admin too: the line counts 2 repositories with a rig. 4. Press Restart the Morie Box once; both are shared, and the rigs that were running start again by themselves.
From a chat. A chat in the Morie Box cannot change what the Box shares without your yes. Its chat start, resume, fork or fresh start in a checkout the Box does not share yet is refused with Nothing was started: a chat in the Morie Box cannot share shop-api's checkout (/Users/you/shop-api) with the Box. Start it in a ticket's worktree or in the Box home, or ask the owner to start a chat or terminal in the Box in that checkout. Its composeFiles.setup.set that gives a repository its first Compose file shares that checkout, so it asks you even when the tool is Always, and the card adds It also shares /Users/you/shop-api with the Morie Box from the Box’s next start: chats in the Box can read and change its files. setup.file.apply and repositories.add, which share the checkout of a repository with a rig, always ask you. A chat on this Mac shares a checkout the same ways, under each tool's own setting, and by starting a chat in the Box in it. If its rig Start refuses with Restart the Morie Box to see this checkout, it calls box.restart (the owner is asked; refusals are listed in The Morie Box and Rigs) and then tickets.services.start again, or asks the owner to press Restart the Morie Box. For a refused checkout the chat tells the owner to move it and update Path in Settings → Repositories and worktrees.
A checkout is never shared whole when it is the home folder, a folder holding other repositories or other projects, /, /tmp, /Users, /Volumes, a disk's root, Morie's data folder, a checkout inside another repository, one whose .git is a file, a link or missing, or one whose path has a comma, =, %, a backslash or a control character. That repository's line says shop-api isn’t shared with the Morie Box: <reason>. For example: The checkout "/Users/me/shop-api" is a folder the Morie Box never shares whole…; move the checkout to a folder without it and update its path in Settings → Repositories and worktrees. Move the folder, update Path in Settings → Repositories and worktrees, and restart the Box. A rig Start that needs a folder the Box does not have refuses with Restart the Morie Box to see this checkout (or … worktree).
A bigger Box than this Mac, and the setup's advice
A set-up file can carry Recommended memory and Recommended CPUs (written by Export only when they differ from this Mac's default). Import never changes your caps. Under Keep free it says Recommends 8 GB memory and 4 cores; this Morie Box has 4 GB and 2; this Mac can give up to 14 GB and 8., adding This Mac can't give that much. when the Mac cannot. With no Box yet, it says what the Box will start with. A cap in a file above what this Mac can give is lowered: Memory cap set to 14 GB, the most this Mac can give. The most is the Mac's memory minus 2 GB, and every core. Raise Memory or CPU here if you want the advice.
Set it up. Example: shop's set-up file recommends 8 GB and 4 cores, and your Box has 4 GB and 2. 1. Import the file (Settings → Project or the first run's import step). Under Keep free a line reads Recommends 8 GB memory and 4 cores; this Morie Box has 4 GB and 2; this Mac can give up to 14 GB and 8. Nothing was changed. 2. Open Settings → This Mac → Morie Box, type 8 in Memory and 4 in CPU, each followed by Enter. 3. Press Stop, then Start (the new caps reach a running Box at its next start). Memory and CPU show the new caps. If the line adds This Mac can't give that much., choose numbers within the Mac's limit instead. To share your own advice, Export writes Recommended memory and Recommended CPUs when your caps differ from this Mac's default.
From a chat (size advice). Import's recommendation is read by the owner only; a chat that wants a bigger Box asks the owner to raise Memory or CPU here (a new cap reaches a running Box at its next start; box.restart applies it).
Failed and the first start after an update, from a chat. A refusal to start a rig or box.setup names the Box's error alone. Retry and Reset are the owner's buttons: a chat reports the exact error and asks the owner to press Retry, then Reset the Morie Box… only if Retry fails again. box.setup (Base chats only; Ask in Settings → MCP) refuses The Morie Box is set up already., Not set up: the Morie Box needs about X GB, which would leave Y GB free; Keep free keeps Z GB. Nothing was downloaded. Ask the owner to free some disk., A read-only chat can’t set up the Morie Box. Ask the owner, or record this in your final message., and Setting up the Morie Box is Off in Settings → MCP. Ask the owner to set it up in Settings → This Mac → Morie Box, or to allow box.setup there. A ticket's chat that calls box.setup is refused: box.setup is for a Base chat (one with no ticket); tickets.services.start asks for it when your rig needs the Box. It uses tickets.services.start, which asks for the Box when the rig needs it.
The Box's disk
How it works
The Box keeps every rig's images, volumes and databases, and the agents' sign-ins, on one disk. Disk size is the most it can hold: 32 GB unless you change it, from 8 to 2048 GB, in whole GB. A larger size is saved at once and the disk grows when the Box next starts; everything on it is kept. A smaller size is always refused, whatever the disk holds, with The Morie Box's disk can grow but not shrink: Morie never deletes the Box's data to make it smaller. It stays 32 GB. (Docker Desktop deletes its disk when its limit is lowered; Morie never does.) To give space back to this Mac, use Clean up… and Compact instead.
The disk is full at 95 % of its size or with under 1 GB free. The line under the Disk row then says The Box's disk is full · … GB on this Mac while the Box runs, and Full · plus its system … GB · … GB free while it is stopped or failed, and the row has Free space… (the Clean up dialog, titled Free space on the Morie Box) and Make it larger… (40, 48 or 64 GB from 32 GB; a size this Mac has no room for, keeping what Keep free keeps, is dimmed; At the next start is the default, and Grow to 64 GB and restart the Box restarts it now and says first what that stops). When a rig fails because the disk is full, its card says so too (see When the Box's disk is full in The Morie Box and Rigs). When the Box itself has failed, the row shows Clean up… instead of Free space…, because cleaning up needs a running Box; Clean up… offers Reset…, which opens the Reset the Morie Box? confirmation. Once a larger size is saved, Make it larger… goes away and the line under the row says Grows to 48 GB at the Box's next start. …
Set it up
An example with a made-up project shop, whose db service holds a large database:
- Open Settings → This Mac → Morie Box. The Disk row reads 31.8 of 32 GB used, with Free space… and Make it larger…, and the line under it says The Box's disk is full · 33.0 GB on this Mac.
- In Disk size, type
64and press Enter. A line under the row says Grows to 64 GB at the Box's next start. Images, volumes, the databases in them and the agents' sign-ins are kept., and Status says applies on the next start. - Stop the Box and start it again (or use Make it larger… → Grow to 64 GB and restart the Box). The Disk row now reads of 64 GB, and shop's database is still there.
- Type
24in Disk size and press Enter: the field turns red, and under the full-disk line a red line says the disk can grow but not shrink. Press Escape to put the size back.
From a chat
A chat cannot free the Box's disk or restart the Box to grow it. tickets.services.status says when a rig failed because of it (failed: The Morie Box's disk is full (32 GB): the service stopped, with the Box's line under it and boxDisk in its JSON). The chat reports that and asks the owner to press Free space… or Make it larger…. settings.set with page Morie Box and Disk size saves a larger size for the next start, where the chat may use it; a smaller size gets the same refusal: The Morie Box's disk can grow but not shrink: Morie never deletes the Box's data to make it smaller. It stays 32 GB.
When to change what
- Raise Memory or Disk size when a rig’s database or build runs out of room.
- Turn Internet off when you want chats that cannot download or send anything.
- Choose Morie Box for New chats when you want them kept away from the rest of your Mac.
When something is off
- Set up is dimmed? The ⓘ beside Status says why, for example that this Mac cannot run the Box.
- The Box says Failed? Press Show log, then Retry; Retry starts the Box, or sets it up when it is not installed. If the disk is full, Clean up… needs a running Box, so it offers Reset… (the Reset the Morie Box? confirmation) to free it; Make it larger… is there too, and its size applies when the Box next starts.
- Failed with The Morie Box could not keep programs inside it from changing its network settings on this Mac? The Status row says Try Retry first. If it fails again, Repair the Morie Box puts its system back and keeps images, volumes and sign-ins. and shows Repair the Morie Box… beside Retry. If the Box still fails after a repair, Reset the Morie Box… prompts Type reset to confirm, deletes the Box's disk, and is off while anything runs in the Box. A chat sees the error alone.
- Example: a Failed Box. 1. The Status row says Failed, with Show log and Retry. 2. Press Retry: on an installed Box the row goes Starting and, when it works, Running (on a Box that was never set up, Retry sets it up and the row says Setting up). 3. If the failure is the network-settings one above, Repair the Morie Box… already shows beside Retry; if Retry fails again, press it, then Repair the Morie Box: the Box's system is put back from the kept image, its images, volumes and sign-ins stay, and it starts again. 4. If it still fails, press Reset the Morie Box…, type
reset, press Reset the Morie Box: the Box's disk is deleted and the Box is set up again from the kept downloads, and rigs build again at their next start. - The first start after an update fails, offline? An update can change the Box's helpers (its network helper, gvproxy, and Docker Buildx, about 92 MB together); the first start then downloads the new ones, needs the internet once, and says Updating the box's helpers to the new pins (…). Offline it ends Failed with Downloading gvproxy failed: …. Connect, then Retry (or Start a rig): files already downloaded are kept and only the missing one is fetched. Nothing else on the Mac changes. Example: after an update you start a rig with no connection, the row says Failed and Show log ends Downloading gvproxy failed: …; you reconnect, press Retry, the helpers download (about 92 MB) and the Box reaches Running; start the rig again.
- Failed with a read-only share or .git sentence? At every start the Box proves its read-only shares are read-only on the Mac, and that nothing named .git can be made in the folders it may change. Before anything runs, it checks that this Mac has the sandbox; once the Box has booted, it tries to change a small folder of its own (
ro-checkin the Box's folder) from inside the Box and looks at the folder on the Mac. This adds well under a second to a start; the part inside the Box gives up after 10 seconds. The Box stops with one of these: - The Morie Box was stopped: a read-only share changed on the Mac during its start check (the folder, then what changed: a file added, removed, renamed or written, or its attributes changed). - The Morie Box was stopped: the Box reported a write to a read-only share that the Mac did not show. - The Morie Box was stopped: its check that read-only shares are read-only on the Mac did not finish (the reason, for example that it took longer than 10 seconds).
- The Morie Box was stopped: its start check could create or change a .git in a shared folder on the Mac (what it found, for example w/.git changed). - The Morie Box was stopped: its start check could not write its own shared folder (the folder, git-check in the Box's folder), so it could not prove that a .git there is refused. - The Morie Box was stopped: the Box reported creating or changing a .git in a shared folder that the Mac did not show. - The Morie Box was stopped: its check that a .git cannot be created in a shared folder did not finish (the reason).
The last four come from the same start, which also tries to make a .git in a second small folder of its own (git-check, which the Box may change) by writing, renaming and linking one, and to change, move, link out, swap or clone the .git file and folder Morie puts there. For these seven, show the box log, then retry starting it.
When a chat or a terminal starts in the Box, its worktree is checked too. If the Box could change that worktree's .git, that worktree alone is not handed out: The Morie Box did not hand out (the worktree): its start check could not prove that the Box cannot change this worktree's .git (the reason). The Box and its other worktrees run on; start the chat on This Mac.
Two mean this Mac cannot run the Box's sandbox, and a retry won't mend them: - The Morie Box did not start: this Mac has no /usr/bin/sandbox-exec, which the Box needs to keep its read-only shares read-only on the Mac. - The Morie Box did not start: macOS would not load the sandbox that keeps its read-only shares read-only on the Mac (macOS's own message).
Meanwhile, chats and terminals can run on This Mac: Settings → Project → Where chats and terminals run, New chats and New terminals → This Mac. Send the message, with anything in its brackets, to support. A chat sees the same sentence as the Box's error.
- Failed with the Box from its last start … is still running on this Mac? The Box from the last start did not stop, even when Morie forced it to, so Morie leaves it as it is and does nothing beside it: the Box does not start, stop, reset or repair, and its disks do not move. The message says which, for example The Morie Box did not start: the Box from its last start (process 4242) is still running on this Mac and did not stop when it was forced to. Restart this Mac, then try again. The others begin The Morie Box did not stop, The Morie Box was not reset, The Morie Box was not repaired and The Morie Box's disks were not moved. A Reset or a Repair stops the Box first, so on such a Box it answers The Morie Box did not stop. Each try forces it again and waits a few seconds. Meanwhile, chats and terminals can run on This Mac: Settings → Project → Where chats and terminals run, New chats and New terminals → This Mac.
- Set up asks about 481 MB? That is the whole download (about 1.6 GB on disk). A chat's
box.setupsays the same, only for Base chats; for a ticket's rig,tickets.services.startasks for the Box. - Morie Box is dimmed under New chats? Set the Box up first.
- A chat in the Box cannot reach a site or install a package? Internet is off. Turn it on.
See also: Chats and the Team tab · Settings → Secrets