docs/workspaces/creating-workspaces.mdx
A workspace is your task execution environment where you work with coding agents. Each workspace can include one or more repositories and supports multiple conversation sessions.
Understanding what happens behind the scenes helps you work more effectively:
<Steps> <Step title="Git worktree is created"> Vibe Kanban creates a **git worktree** - a separate working directory with its own branch. This keeps your changes isolated from your main codebase. Your original repository remains untouched. </Step> <Step title="Working branch is created"> A new branch is created based on your target branch (e.g., `main`). The branch name is auto-generated based on your task (e.g., `vk/abc123-add-login-page`). </Step> <Step title="Agent session starts"> A coding agent is initialised and ready to receive your instructions. The agent can read files, make changes, and run commands within your workspace. </Step> <Step title="Setup scripts run (if configured)"> If your repository has setup scripts configured (e.g., `npm install`), they run automatically to prepare the environment. </Step> </Steps> <Info> **Where do workspaces live?** Worktrees are created in a `.vibe-kanban-workspaces` directory (configurable in Settings → General → Workspace Directory). Each workspace gets its own folder. </Info>Select which repositories to include in your workspace:
Click the branch dropdown next to each repository to change the target branch.
<Info> **Target branch vs Working branch - what's the difference?**main). You set this.vk/abc123-task-name). Auto-created from target.Your changes are made on the working branch and don't affect the target until you create and merge a PR. </Info> </Step>
<Step title="Describe Your Task"> In the chat input at the bottom, describe what you want to accomplish. Be specific about:If you need to create a new project before setting up your workspace:
<Steps> <Step title="Open the Project Dropdown"> In the create workspace view, click the **Project** dropdown. <Frame> </Frame> </Step> <Step title="Select Create New Project"> Click **+ Create new project** at the top of the dropdown list. </Step> <Step title="Enter Project Details"> <Frame> </Frame>Enter a name for your project and click Create. </Step>
<Step title="Continue with Workspace Creation"> Your new project is automatically selected. Continue adding repositories and configuring your workspace. </Step> </Steps> <Note> After creating a project, you can configure additional settings like setup scripts, dev server scripts, and cleanup scripts in the project settings. See [Projects & Repositories](/settings/projects-repositories) for more details. </Note>Once a workspace is created, you can configure additional settings:
The workspace automatically creates a working branch for your changes. You can view and change this in the Git section of the details sidebar.
If your project has a dev server script configured, you can start it using:
Cmd/Ctrl + K → Start Dev ServerUse the Notes section in the details sidebar to document important information about the workspace - requirements, decisions, or anything you want to remember.
To create a copy of an existing workspace:
Cmd/Ctrl + K)The duplicate includes the same repositories and branch configuration but starts with a fresh conversation.
When you're done with a workspace, archive it to keep your workspace list clean:
From the navbar:
From the command bar:
Cmd/Ctrl + KArchived workspaces can be viewed by clicking View Archive at the bottom of the sidebar.
<Tip> Use the **Pin** feature to keep important active workspaces at the top of your list. </Tip>Solutions:
.git directorySolutions:
Solutions:
Solutions: