Workspaces and folders
A workspace keeps your folders together, and one session can work across several of them. Each branch an agent works on gets its own worktree, so agents edit in parallel without touching your checkout.
Start from scratch
Begin with an empty folder and no repository. Start from scratch, inside New workspace, makes the folder, starts a git repository with a first commit and opens a first session in it. Publish later creates a GitHub repository for it, or links one you already have.
Track a folder with git later
Start in a plain code folder and add git when you want it. When you pick a folder, Goodboy asks whether it is a Code project or Documents, preselected from what it holds, and you can change it later in Settings › Folders. A code folder can be tracked with git right at Create. Track with git in Settings › Folders shows the first commit before it happens: what goes in, dependency and build folders left out until you tick them back in, and files that look like secrets, which always stay out and go to .gitignore. Nothing leaves your Mac until Publish to GitHub. A repository with no commit yet holds sessions back, because a session branches from the latest commit: the empty board says so and its one action, Make the first commit, opens the same review in place and reads the repository again once it is made. A plain folder with an empty repository is still edited in place until its first commit. Git you set up outside the app is noticed when the window comes back: a code folder moves to branches between turns and offers Keep editing in place, and a documents folder asks first.
A plain folder is edited in place by one session at a time, and the next one waits its turn; reading is never blocked. Each plain folder row in Settings › Projects opens to its face, the saved versions it uses and a switch between Code project and Documents. Office files and PDFs are read, never rewritten, in a documents folder. What each turn changed is under Changes in the Session pages list, and it stays there when you later track the folder with git. Unlinking a folder waits while an agent is writing in it.
Workspace with several folders
Keep your repos together as one workspace, and let one session work across several of them. The Projects card of a session lists each repo it touches, with its branch and the size of its changes. A folder gets a branch only when an agent needs to edit it. The + on the card adds another workspace folder, or connects a new repo or folder to the workspace from the same list.


Screenshot from Goodboy 0.40.1
Starred folders, descriptions and base branch
Point agents at the right repo without naming it. Star a folder and give it a one-line description: both go into each agent's brief, and starred folders come first in the pickers. Each repo shows its base branch, read from origin.


Screenshot from Goodboy 0.40.1
Worktrees
Let agents edit in parallel without touching your checkout. Each branch gets its own worktree, a separate folder with its own changes and pull request, named gb- and six characters such as gb-7k2q9x, with the session and the branch shown next to it. New branch, the + on a folder row of the session's Projects card, adds one, Close branch clears a merged one, and Reopen brings back one whose files were kept.
The Projects card is one tree for every branch of the session. A branch is one line: its pull request state as a colored glyph, its pull request title (or the branch name when there is none) and, only when something needs you, one chip: failing checks, a conflict or how far it is behind. Live branches come first, queued, approved, open, draft, then those with no pull request; merged and closed ones fold into one finished line. Click a branch to open it: its pages (pull request, comments, changes, commits, checks) open under its row, with its Rebase line when it is behind, and a click on the open row folds them again. The branch menu, from the dots on the row, a right click or ⇧F10, holds Rebase, Switch branch, Link work to this branch, Copy branch name, Close branch and the rest.


Screenshot from Goodboy 0.40.1
Several branches per repo
Work on several branches of one repo in the same session, each in its own worktree. If a worktree ends up on another branch, a card says so and offers Use this branch here or Keep both branches.


Screenshot from Goodboy 0.40.1
Workspace switcher and Reconnect
Jump between workspaces and folders from one search. The current workspace sits on top with its folder count, Add folder (the folder picker, a repository or a plain folder, then an undo toast; a folder of another workspace points to its folders; Move it here into the open workspace, or a merge, adds the moved sessions without stopping any running agent, and it is refused with the number of agents running in the source until you stop them), Manage folders and its settings. The other workspaces follow in one list: a click switches once the new workspace has loaded, so a quick second click wins and a failed load keeps the workspace you were in, the window icon opens one in a new window, and a disconnected workspace keeps its place with Reconnect. New workspace closes the list and opens the one form. Disconnecting a workspace keeps its history, and adding its folder again offers Reconnect too.
A workspace you are not looking at can still need you. Its row in the list says 2 need you in amber, or red when one of them is broken, with the reasons in place of the folder line, for a workspace open in another window as well as for one that is open nowhere. The same sessions are added up as a number on the workspace mark at the top of the left rail when any other workspace needs you, and the bell can widen to All workspaces. The count of a workspace nobody shows is read from the database every 30 seconds and counts what is saved there: an open question, a fix run waiting for your answer, a failed push, failing checks and an errored session. The window that shows a workspace also knows what lives only in memory, such as a plan or a permission waiting, so it sends its own count to the other windows and that count wins while the window is open.
Sessions in the bar
Sessions, at the top left of the bar, or ⌘B from any screen, opens your sessions in one list: Pinned first, then Needs you, Running, In review and Building. Type to filter by title or project, use the arrows and Enter to open one, and click a pin to move a row in or out of Pinned. A pin that cannot be saved leaves the row where it was and says so. A row counts what waits on you in that session, the same number as the Queue on the Board, and says Desk when the session opens again on its Desk. Open Board at its foot shows the finished ones too.
Overview and Desk
A session has two faces: Overview to read it, Desk to work in it. You build the Desk yourself: open Terminal, Browser, Scripts, Ask or Monitor from the right rail and the page splits. The Overview narrows to a column at the left, the tools sit at the right. Close the last tool and the whole Overview comes back. There is no switch and no key for the Desk. The head and the tabs stay the same on both faces. The split adds nothing to Back and Forward, and Esc never leaves the Desk.
On the Desk a column at the left keeps the session in view: its state, Needs you, Now, the first two moves of Next, its projects and the Ask line. The Ask line steps aside while the Ask panel of that session is open. Everything to its right, under the head, is work: Terminal, Browser and Monitor fill it in up to two columns of two. The agent, a pull request or Scripts open beside them. No space stays empty between the column and the tools, and nothing lies over the column.
When the tools would get less than 880px beside the column, it folds into one status line that opens it in a popover, and the tools take the whole width. When even then the tools do not fit side by side, the ones after the second become tabs of one cell. The face changes at once: the tool it opens shows its own loading state, and an error with Retry stays in that tool.
A session opens again with the tools it had open, split beside the Overview; the first time, on the whole Overview. A Desk whose tools do not come back opens on the whole Overview.
On the Overview, ⌃` opens the terminal like the rail does: the page splits.
The terminal has one tab per worktree of the session, named after its project. A tab opens its shell the first time you pick it. The head shows the branch and the folder, then ⋯ and Close; Open full page sits in ⋯. On a narrow Desk a tool head never overlaps: the title is cut short first, and extra buttons fold into ⋯, like Pin, Console and Open full page on the Browser. Drag a tool by its head, the Browser by its address row, to place it anywhere on the Desk.
Above the prompt, the terminal suggests one command at a time, such as the failing test or a new migration. It shows the whole command and its folder, with Run or Add to prompt, and Not now. Only a script Goodboy found, with nothing added from outside, runs on the click. A test name read from a check log, or a script that migrates, seeds, deploys or cleans, is typed into the prompt and says Press Enter to run. It never runs on its own. A shell that ends with an error keeps its output and offers Restart.
New worktrees start usable
A new worktree is a clean checkout, so the folder settings carry what it lacks. Worktree setup, under a repository folder in Settings, lists its git-ignored files (.env.local, config/local.json), none ticked, a secret marked secret: only when ticked; the ticked ones are copied into every new worktree, only when git ignores them and never over a file that is already there. Setup after creation is prefilled from the lockfile (pnpm install) and says where it came from. When a session cuts a worktree, the overview shows Worktree payments-api/retry-webhook is ready, what was copied and the proposed setup with Run and Not now; the setup never runs without that click. Dependencies are never copied byte by byte: that is what the setup is for.
Repo status across folders
See which repos have something to pull, right next to the workspace switcher.
Every 5 minutes Goodboy fetches origin for each repo. It compares the local base branch (the folder's base branch, else the remote default branch) with its upstream. Fetching never moves a local branch.
- A repo that is behind puts a dot and 3 behind on the Repositories entry.
- A repo whose base branch has commits of its own reads Diverged. Its tooltip explains that Goodboy only fast-forwards, so you merge or rebase it yourself.
- When origin cannot be reached, the entry reads Check failed, with Retry on the row, and no toast.
The entry opens one header row: the title, when origin was last checked, Pull all once two or more repos can pull, and the refresh icon. Under it come the repos that need attention.
- A behind repo has Pull.
- A diverged repo has the reason in words.
- A failed check has Retry.
- The repos with nothing to pull fold into one quiet line, 18 up to date. It opens on click.
- Every row shows its folder in Finder and opens it in the editor in one click. It keeps the action column put when it has no Pull, and opens its detail in place under the row.
A pull leaves some branches alone.
- A checkout on a feature branch stays there while its base branch moves.
- A base branch checked out with uncommitted files says so instead of offering Pull.
- A base branch that would not fast-forward, or is checked out in another worktree, is skipped.
Settings › Advanced › Git sets how often it checks (Off, 5, 15 or 30 minutes). Several windows on one workspace share one fetch.
⌘K Pull main in all linked repos and Pull


Screenshot from Goodboy 0.40.1
Locate moved folders
If you moved your repos to a new folder, the workspace settings name the folders Goodboy can't find. Locate folders finds them in the parent folder you pick, by their first commit and remote, and repairs the worktrees, with Undo move. After a failure, the move and the undo both pick up at the folder that stopped them.


Screenshot from Goodboy 0.40.1
Keep .goodboy out of git
Keep Goodboy's own folder out of your commits with one click. The card shows up only when git does not already ignore .goodboy.
Branch names
Choose how new session branches are named, under Naming on the Branches page: a Branch prefix, with or without the task id, or a Custom template. Each choice shows the name it would give your last session, and existing branches keep their names.
Stops for your OK
Choose when a new run in this workspace stops for your go: every step, after the plan or never. One row on the Runs page in Settings sets it for workflows and for the Lead alike. One click saves both, and a failed save keeps both old levels and shows the error under the row.
If the two were saved apart, the row names both and selects none until you pick one. Nothing changes before you do. A level saved in one window shows in the others. Each Lead can change its own level and its permission rows from its page.
Monitoring
See which ports are taken and by whom.
Monitor on the right rail opens a panel beside your page. Click it again to close it, or choose Open full page in its header. Its number shows ports in use and warns when a pinned port is down. With no port in use, a warning dot shows a down pin. The panel stays closed after a reload.
The page and panel share four groups: Pinned (ports you pin, with your own description), Run by Goodboy, From workspace and Listening on this Mac. Every group shares one column grid under one sticky header (Port, Label, Opened by, Process, Up, CPU, Memory), a process on many ports is one expandable row, and a group's header carries its count and its free ports (3 · 2 free); the free count opens the free ports under the ports in use. Expanded rows sit one step in. A terminal or script with no port says "no port" in faint text and shows its process. Opened by names the place as links: the session, then the agent and its run for an agent's process, or the branch for a shell or a script. Each part opens its page. The branch opens the worktree that shows it now; a branch no worktree shows is named without a link. A process stays under the branch it started on after its worktree switches branch; a renamed branch follows its new name. A port also open in another worktree shows the warning dot and "+2" after its owner, the worktrees in the tooltip. Leftover processes sit on the same grid with their age under Up. Monitoring keeps what you left when you go to another page and come back: the search text, the folds you opened and the scroll position. From a branch it opens on that branch only, and a chip shows every port again. The Terminal page keeps its Archived fold too.
Rows rest quiet. Stop and the ⋯ button live in one fixed cell that fills when you rest on a row, tab into it or open its menu, and a right click on any row opens the same menu: Open in browser, Pin or Edit description, Stop, Force stop, Hide or Unpin, Copy address. Stop asks first and names who loses the port; a process that does not exit in time shows Force stop in its place, which asks again. A refused stop leaves the row and reports why. With nothing tracked the page says No ports in use and offers Pin a port. It works on macOS and Linux.
Copy settings from another workspace
Set up a new workspace by copying another one. Copy from… in a settings page menu takes that page's values from another workspace, and Copy all pages from… takes them all. You see what changes before anything is saved, and folders and accounts are never copied.
Opening another workspace
Click a workspace and the top bar names it at once, with a soft pulse, while the board shows its loading state. The old workspace stays whole until the new one has loaded. If it cannot open, the top bar keeps the old name, and a small card under it says "Couldn't open Northwind." with a Retry button.
Under the hood
Hover-card fixtures use branded ids and timestamps in apps/desktop/src/features/workspace/components/SessionHoverCard/index.test.tsx.
This part is for contributors and agents who change the feature.
Switch mark:
WorkspaceIdentityRow, the first item of the places rail, readsswitchingToWorkspaceIdandworkspaceSwitchErrorthroughuseWorkspaceSwitchState. Retry callssetCurrentWorkspacewith the failed id.StageBoarddraws its skeleton while a switch is set. The failed line floats inAnchoredLayerto the right of the mark, so the rail never cuts it. The mark is busy (aria-busy) while the switch loads. The switcher opens to the right throughSHELL_RAIL_POPOVER. ⌘O sendsgoodboy:open-workspace-switcher. ⌘1 to ⌘9 callopenWorkspace(useAppShortcuts/workspaceKeys.test.tsx).Attention count of an open workspace: the window that shows it sends its count to the other windows on
goodboy:attention.Sessions popover:
SessionsPopover(features/workspace/components/SessionsPopover/) reads the groups ofuseSessionOrder, filters them withsessionsShownOf, and registerssessions.toggle(⌘B). The pin callspinSessionorunpinSession;index.test.tsxcovers a failed write. A row's count isuseSessionMoveCount, theneedsYouOfof the Queue for that one session with the same Not now moves. Its face isuseSavedSessionFace: thesessionFacethis window knows, else onerecallSessionFaceread; a failed read shows no face and the next open reads again. After a focus, a row of a session that is not open reads again; the open one keeps its face.index.test.tsxandu50/navDocs.test.tsxcover each case.Sessions card:
SessionsCardsits beside the popover, anchored to its trigger. It readssessionsCardPhasefromstore/slices/sessions-card/.hydrateSessionsCardruns at boot afterhydrateChangelogSeen. A savedshell.sessionsCardClosedgivesclosed. A fresh install, with no seen release, givesclosedand saves it best effort. Otherwise the phase isopen. Opening Sessions callscloseSessionsCard, which saves throughcommitAfterConfirmand setsclosedonly after the save. A failed save keeps the card and reports the error, and the next open retries, one save at a time. A read that answers after the close never reopens it. A window that regains focus re-reads the setting, so a close saved elsewhere closes this card too.SessionsPopover/index.test.tsxandstore/slices/sessions-card/index.test.tscover each case.Monitoring panel:
monitoringDrawerRegistrationrendersLazyMonitoringDrawer, which loadsMonitoringDraweron first open; it sharesMonitoringSectionswithMonitoringPage.toggleRailTooltoggles the workspace drawer, andUNSAVED_DRAWER_KINDSexcludes it from saved layouts and from a session dock grid saved before the window loaded.ToolRailFramefeedstoolCountOfandportsFactOffrommonitoringSignalOf, which uses the samemonitoringSignalas the left door.monitorPanel.test.tsxandSessionTools/index.test.tsxcover the panel and rail.Desk grid:
DeskBodydraws aDockLanebeside the column.DrawerColumnmeasures it (useDockLaneBox) and lays the panels over it, solved bydockLayoutOfwithisDesk. There is no page minimum: the detail and the grid fill the lane, then stack, then the tools after the second become tabs of one cell (DockCellTabs). The tool rail stays on the page.isDeskColumnFoldedfolds the column when the lane would be under 880.dockLayoutDesk.test.ts,DrawerColumnDesk.test.tsxandu50/deskGrid.test.tsxcover each case.Overview and Desk:
sessionFacein thesession-viewslice holds the face per session,SessionFacepicksSessionOverviewPaneorSessionDesk, and both read one model (useOverviewModel).useDeskFollowsTools, mounted bySessionFace, callsswitchSessionFacewhen a tool opens on the Overview (deskToolsOfcounts the grid, Scripts and the Ask of the session);useDeskLandingcloses the Desk when the last one goes.switchSessionFacesets the face first and replaces the history entry when it leaves another page. No shortcut and no menu row switch the face. The face is saved with the dock grid (storedDockGridOf,recallSessionFace).SessionDesk/index.test.tsx,useDeskLanding/index.test.tsxandwatchSessionDockGrid.test.tscover each case.Desk line:
SessionFacehands the Desk line to the page banner (PaneBannerContext). The page slides under the session head, so anything drawn above it would sit hidden under the head surface and leave an empty band (useDeskLanding/index.test.tsx).Desk landing:
useDeskLandingpicks a tool throughlandingOfwhen a door brings the Desk with none kept, as Bring it here does (shell.md). A terminal landing callsstartDeskTool, which opens the session terminal. A session with no branch prepares its folder first, anddeskToolStartholds the loading state or the error thatDeskToolStatusshows with Retry.Terminal on the faces:
TerminalDrawerBodyshowsTerminalWorktreeTabsfromworktreeTabsOf: one permountId, attached and on disk. A tab opens throughopenSessionTerminal, which reuses the live shell at that folder.TerminalDrawer/index.test.tsxandworktreeTabsOf.test.tscover each case.Command strip:
TerminalCommandSuggestionkeeps the firstrun-failing-testornext-scriptmove of the track on screen (terminalCommandMoveOf).commandRunOfdecides run or type, and only then it mountsTerminalCommandRunner. Typed text comes frompromptTextOf: a cd to its folder first, never a return at the end. It writes only to the terminal on screen, and Add to prompt is off while that shell is busy or ended. It runs through the same runner as Next, so Not now has Undo.TerminalCommandSuggestion/index.test.tsx,commandRunOf.test.tsandterminalCommandMoveOf.test.tscover each case.Dock grid per session:
useWindowLayoutstartsuseSessionDockGrid, which saves the grid of the open session and brings it back on entry. The rules and the failure table live in home-and-drawer.md.watchSessionDockGrid.test.tscovers each case.Page memory: the
monitoring-viewslice (store/slices/monitoring-view/) holds the Monitoring search text and open folds (monitoringViews) and the Terminal Archived fold (terminalArchivedOpen). Both are stored per workspace, and every write names its workspace.Process folds: a fold on a process is keyed
proc:<pid>:<birthId>:...(processFoldKey);birthIdis the native birth time (macOS seconds and microseconds, Linux boot time and start ticks).startedAtstays milliseconds for display. A reused pid starts closed. A failed lookup (another user's process) gives a nullbirthId. The key then uses the pid and the command line. The fold is pruned only when the pid disappears. A full snapshot drops the keys of processes it no longer lists (pruneProcessFolds, called fromcreateMonitorRefresh).Scroll:
useScrollMemorykeys itmonitoring:<workspace>:<target>, so the full list and each branch keep their own position.Address:
{ kind: 'monitoring', target: { workspaceId, projectId, branch } }instore/slices/navigation/studio.ts. The same branch name in another workspace or repository never matches.Ledger: every spawn records
agentId,runId(the workflow run),mountIdand thebranchread from the worktree HEAD at spawn (proc/ledger.rs,proc/git_head.rs). Terminals and scripts takemountIdfrom the session mount that holds their folder (ledger::mount_id_in). In memory only, no table.process_ledger_listreads each row at its mount's current folder (session_worktreesbymountId, else the recorded folder).branchPathsays where the branch was confirmed on this read.ledgerMountOfprefers the recorded mount and branch over the mount's current branch, unless the ledger confirmed that branch outside the mount's current folder.Branch rename: a gone branch follows a rename only through a
Branch: renamedreflog line that names it (git_head::renamed_to), never through HEAD. The line must be dated at or after the process start, from a name not recreated since. It must sit after the reflog line seen at spawn (git_head::reflog_mark). The rename chain in that reflog must end at its own name. When no reflog still holds the spawn line (pruned or rewritten), the plain lookup without the spawn line runs instead. Without such a line the recorded name stays. The lookup runs with the ledger unlocked, reads each reflog back to the start only, and is cached until the ref folders change.Opened by:
branchHomeOffinds the live mount of the same session and project that has the recorded branch checked out, or none, and a removed worktree is never a link.usePortOwnerChainresolves names,ownerChainOfbuilds the links,runTitleOfis shared with the run page title. Branch page ports:BranchRunningPortssits on the header meta line after the branch facts,runningHereOfoverselectPortRows. A chip opens its port throughopenWebLink.useMonitorPollingtakesisEnabled(the Branch page passesisActive) and every caller joins one shared interval injoinMonitorPoll, so Monitoring and the Branch page never poll twice.Ownership:
ownedMountsOfmergessessionMountswith the hydratedsessionProjectMounts, andselectPortRowsand the page both read it.mountContainingmaps a process or terminal to the mount whose worktree holds its path (cwd included) and never matches a null path.