Workspaces
A workspace gives an agent its own checkout and branch while your Home Repo stays available for normal work.
Choose who creates workspaces
Section titled “Choose who creates workspaces”Open Settings > Workspaces > Create workspace files with and choose:
- back2vibing — this method creates the workspace for you and starts your preferred agent in the terminal workflow configured below.
- Conductor — Conductor creates the workspace and starts its configured agent. back2vibing passes it the repository and optional first prompt.
- Herdr — Herdr creates the Git worktree and opens it as its own Herdr workspace, then starts your preferred agent in it. This is the recommended workflow: the Space is named after the task you typed, additional agents open as tabs or panes in that same Space, and focus lands on the exact pane.
- Orca — Orca creates the Git worktree and starts your preferred agent in the workspace’s first terminal. Orca must be running and already have the repository added; the repository list is Orca’s own. Orca can’t fork, so a workspace started from another workspace is created by back2vibing instead.
Choose Terminal app for where agents appear. Rex uses its own sessions, tabs, and panes unless you choose a Multiplexer (tmux, Zellij, or Herdr) to run inside it. Choosing Herdr to create workspace files also uses Herdr for that workspace’s launch; Conductor and Orca handle their own initial agent launch instead of using these terminal controls. Orca is also available as a Terminal app: new agents open as an Orca tab or split in their workspace, and returning to a session focuses its exact Orca pane. Workspaces Orca did not create open through the Orca workspace that contains them; if none does, or Orca is not running, the launch command is copied instead. If Orca received the request to open the pane but never answered, the launch reports an error rather than copying the command, so an agent is never started twice.
A new workspace branches from your repository’s default branch, whatever it is called. The name you type names the workspace; the folder and branch use a short slug shown in the dialog preview.
Herdr workflow
Section titled “Herdr workflow”With the Herdr workflow selected:
- Worktrees you create from Herdr’s own sidebar are adopted as soon as an agent registers in them, and an extra session opens in the Space that already holds that checkout.
- Renaming, closing, or removing a workspace in Herdr is reflected on the Session Rail, and renaming a session there renames it in Herdr.
- Agents that Herdr recognises report working, waiting, or done even when they have no back2vibing hook installed.
Create a workspace
Section titled “Create a workspace”- Press n in the rail’s quick-pick, click the rail’s + chip, or press ⌘N in Chat and choose New workspace.
- Select the repository. Optionally use Start from to fork an existing workspace.
- A chat draft opens. Pick the agent with ⌘P and the model with ⌥P.
- Send your first message, or choose Start agent.
Use New workspace for a separate coding lane. Press t in the rail’s quick-pick, or ⌘T in chat, to add another agent to an existing workspace. Creating workspaces is part of the free tier; Chat is Pro.
Finish a workspace
Section titled “Finish a workspace”After a squash merge from the rail’s pull-request actions, choose the cleanup action to remove the local checkout. back2vibing removes it through Herdr when Herdr owns the worktree, closes that Space, and never deletes the branch. If the checkout still has uncommitted work, back2vibing says so and asks again before forcing the removal.
Workspace scripts
Section titled “Workspace scripts”Add .back2vibing/settings.toml to a repository to run your own shell scripts at points in a workspace’s life. Every key is optional, and a script that exists always runs.
[scripts]setup = "pnpm install --frozen-lockfile"pr_created = "./scripts/notify.sh"pre_merge = "pnpm test && pnpm lint"merged = "./scripts/post-merge.sh"archive = "./scripts/teardown.sh"| Script | Runs | On failure |
|---|---|---|
setup | After the workspace checkout is created | Warning; the workspace still opens |
pr_created | After a pull request is opened for the branch | Logged only |
pre_merge | Before a merge or auto-merge is requested | The merge is cancelled and stderr is shown |
merged | When back2vibing first sees the pull request merged | Logged only |
archive | Just before the local checkout is removed | Warning; the checkout is still removed |
Each script runs with sh -c in the workspace directory, times out after 5 minutes, and has these environment variables:
B2V_WORKSPACE_PATH,B2V_WORKSPACE_NAME,B2V_REPO_ROOTB2V_BRANCH, when the branch can be resolvedB2V_PR_NUMBERforpr_created,pre_merge, andmergedB2V_PR_URLforpr_createdandmerged
See every repository’s scripts, and how each last ran, under Settings > Launch > Repos.
setup is read from the new workspace checkout and every other script from the repository’s own copy, so a branch cannot rewrite its own pre_merge gate. Commit .back2vibing/settings.toml to share them with your team. merged only fires while back2vibing is running and watching the pull request.
See Sessions for live session controls.