Home checkouts
A workspace is temporary: its repositories are git worktrees named after the task, and they go when the workspace does. Some things need a place that stays: signing in to a tool (acme login), a dev server you keep running (make playground), setting up a tool once, trying a module by hand. That place is a repository's home checkout: your own regular clone, at a stable path such as ~/lazybox/repos/acme/api, outside every workspace.
- Give a repository a home
- Open it
- Run what an agent hands back
- Keep it at the latest main
- What agents know
- From the command line
- What Lazybox never does there
Give a repository a home
Open Settings → Repositories → Home checkouts, or a workspace's repositories (the N repositories button above the sidebar). Each repository shows its home, its branch and how many files you changed, or:
- Create at
~/lazybox/repos/<owner>/<name>: a regular clone of the repository, on its default branch, whoseoriginis the real remote. It is made from Lazybox's own copy on this computer, so it needs no network and little disk: Git hard-links the objects it can. - Use an existing folder…: a checkout of the repository you already have, wherever it is. Lazybox checks it is that repository's checkout (its top folder), and changes nothing in it.
A repository you added from a folder on this computer already has a home: that folder. Forget this home (in the row's ⋯ menu) only stops Lazybox using the folder; no file changes.
Open it
In a workspace's repositories, Open in terminal starts a shell in the home in the workspace’s Terminal panel and gives it the keyboard. The row's ⋯ menu also opens it in Finder or your editor (choose which in Settings → Repositories → Editor) and copies its path.
The Terminal panel's directory list has every home of the workspace's repositories, and Home folder (~), beside the workspace's own folders. A shell there still belongs to the workspace: make playground 2>&1 | lazybox log typed in it shows in this workspace’s console (send your terminal’s output to Lazybox), and deleting the workspace closes it.
Lazybox is not a terminal emulator: the panel is a plain shell for these moments. For long sessions, Open in Terminal opens your own terminal app.
Run what an agent hands back
When an agent ends its turn with something only you can run, its last message gets one button per command:
- Run in api home
make playgroundopens a shell in the api home. - Run in your home folder
gcloud auth application-default login: a login that belongs to no repository goes to your home folder. - Create api home and run when the repository has no home yet: it clones one first.
The command runs exactly as the agent wrote it, env -u SOME_VAR and every argument included, once the shell is ready, in the shell already open there when it is idle at its prompt, otherwise a new one. A script of several lines, or a command with something to fill in, is typed at the prompt instead: read it, edit it, and press Return. The shell is a real terminal, so a login can ask for a password or open a browser sign-in, which an agent's own commands cannot (they have no terminal); click the sign-in link it prints to open it. If the agent wrote a cd into a temporary checkout (cd /tmp/api-main && …), that cd is left out: the home checkout is the place it stood for.
When the command ends, the button says Finished in api home · exit 0 and offers Tell Claude it's done: it sends Done: <command> finished (exit 0). to the conversation, so an agent waiting for your login goes on. The ⌄ beside the button pastes it without running (Paste in terminal (don't run)), runs it in another home or your home folder, opens your own terminal app at the home with the command copied to paste, or just copies it.
Agents are told to write these as "run in the home checkout of api: make playground", which also works for long, single-line shell commands with pipes, comparisons, and quoted arguments. If the Runner cannot resolve the named checkout, the control shows which checkout is missing and its menu lets you copy the command. Other wording is read on a best-effort basis: a command the message plainly hands to you ("run … yourself", "you'll need to run …", "needs a real terminal", a login). A command the agent says it ran is never offered, nor one for later (make stop when done). Every code block's Run also opens the terminal (in the workspace), and its ⌄ has Run in … home and Run in your home folder; see Run the commands it gives you.
Keep it at the latest main
A home is yours, so Lazybox never moves it by itself. When it is behind, its row says 3 behind origin/main and offers Update to latest main (also in the row's ⋯ menu, or lazybox repo home api --update): it fetches, then fast-forwards main only when main is checked out and has no changes and no commits of its own. Otherwise it says why — the home is on experiment, not main, main has uncommitted changes — and changes nothing: nothing is ever reset, stashed, discarded or switched. Agents are told to use the home, not a temporary clone, to run a repository's own tools at the latest main, and to ask you to update it when it is behind.
What agents know
A new conversation is told each of its repositories' home checkout, and that it is yours: read-only for the agent, which may read it and run read-only commands there, but never edits, commits, resets, pulls or switches branches in it. lazybox workspace repos and lazybox repos show the homes to an agent too. An agent can never create, change or open one.
From the command line
lazybox repos # every repository, its home, branch and changes
cd "$(lazybox repo home api)" # the path alone, for scripts
lazybox repo home api --create # clone one at the suggested place (--path P for another)
lazybox repo home api --adopt ~/src/api
lazybox repo home api --update # fetch, then fast-forward a clean main
lazybox repo home api --forget # no file changesWhat Lazybox never does there
- It never deletes a home: not when you forget it, not when you remove the repository, not when a workspace goes.
- No workspace operation reaches it. Workspaces stay worktrees of Lazybox's own copy; a home is a separate clone, so an agent's branch never appears in it and its branch is yours.
- Its
originis the real remote, used with your own Git credentials. Lazybox's GitHub token never goes in it. - Paths are local to the Runner's computer; nothing about a home is shared or reachable from another device.
The design is in WORKSPACES.md.