Workspace kinds
A workspace is one directory that Overdeck tracks for a registered project. Every workspace has one of three kinds:- Issue: one git worktree per tracked issue, at
workspaces/feature-<issue>on the branchfeature/<issue>(for examplefeature/pan-123). Planning, work and review agents run here. Overdeck’s pipeline creates and removes issue workspaces, and most of this page is about them. - Scratch: any number per project, not tied to an issue. A scratch workspace shares the project directory by default, or gets its own worktree on a
scratch/<name>branch. Create one from the dashboard or withpan workspace new. - Main: the project’s primary checkout. A project has exactly one. Overdeck creates it when you add the project or the first time you open it.
What Are Workspaces?
Workspaces are git worktrees - isolated working directories for each issue/feature. Each workspace:- Has its own feature branch, named
feature/<issue>(e.g.,feature/min-123) - Shares git history with the main repo (no separate clone)
- Can run independently (separate node_modules, builds, containers)
- Is located at
{project}/workspaces/feature-<issue>/(lowercase, e.g.workspaces/feature-min-123/)
Why Workspaces?
Without workspaces:- Only one agent can work at a time (shared working directory)
- Branch switching disrupts running agents
- Can’t test multiple features simultaneously
- Risk of cross-contamination between issues
- Multiple agents work in parallel on different issues
- Each has its own branch, dependencies, and containers
- Complete isolation - no shared state
- Clean, predictable environment per issue
Architecture
Git Worktrees
Git worktrees allow multiple working directories to share a single git repository. Benefits: Efficiency:- No need to clone the repo multiple times
- Shared git history and objects (saves disk space)
- Fast branch switching (just create a new worktree)
- Each worktree has its own checked-out branch
- Changes in one worktree don’t affect others
- Can build/test multiple branches simultaneously
- Can’t accidentally checkout the same branch twice
- Main project stays on
mainbranch (protected) - Feature work isolated to dedicated worktrees
Workspace Structure
Planning artifacts
Planning writes its artifacts under.pan/ in the project repo and commits them on the feature branch, so they travel with the branch. A polyrepo project can name one sub-repo as the plan home with pan_records.repo in projects.yaml.
.pan/drafts/<issue>.md: the PRD draft.pan/specs/: the xBRIEF plan.pan/continues/: the continue files that record item progress
.overdeck/ directory holds runtime state: a working copy of the plan (spec.vbrief.json), continue.json, sessions.jsonl, context.md, feedback/ and the pipeline journal pipeline.jsonl. Work items are xBRIEF items; agents claim and complete them with pan task.
Docker Integration
Workspaces can have independent Docker environments, allowing:- Isolated databases per feature
- Independent service configurations
- No port conflicts (unique project names)
Starting Containers with Workspaces
- Creates the workspace (git worktree)
- Looks for a compose file in the workspace root or
.devcontainer/, and regenerates.devcontainer/from the project template when none exists - Runs
docker compose -f <compose file> up -d --buildwithout-p, so the compose file names the stack
pan workspace create --docker passes no project name, so Docker Compose picks it: the compose file’s top-level name: field, else COMPOSE_PROJECT_NAME, else the name of the folder that holds the compose file. Overdeck’s own stack lookups, such as stack health, read the same name: field or COMPOSE_PROJECT_NAME in the workspace’s dev script, and fall back to overdeck-feature-<issue>.
- Example: a compose file with
name: myn-feature-min-123 - Container names:
{compose-project}-{service}-1
Dashboard Integration
The planning dialog includes a “Start Docker containers” checkbox:- Default: Off (planning agents don’t need Docker)
- Preference saved: Your choice is remembered in browser localStorage
- Containers start warming up while you review the issue
- Environment ready when planning agent starts
- Can test assumptions during planning without waiting
Workspace Lifecycle
1. Creation
- Creates git worktree at
{project}/workspaces/feature-min-123/ - Creates and checks out the branch
feature/min-123 - Optionally starts Docker containers
- Registers workspace in Overdeck registry
2. Usage
Agents work inside the workspace:- Planning agents - Explore the codebase and write the PRD draft and the xBRIEF plan
- Work agents - Implement features, run tests, commit changes
- Review and test agents - Review the code and run the tests
3. Cleanup
- Stops the workspace’s Docker stack (projects with a
workspaceblock inprojects.yaml) - Removes every worktree for the issue (base, strike and slot; limit with
--shape) withgit worktree remove --force, so uncommitted changes are lost - Deletes the local feature branch
- Removes the workspace’s record;
--purge-memoryalso deletes its memory
pan close <id> or the Close Out button; Cleaning up after close-out explains what that removes.
Finding a workspace
- Left column, Workspaces section: the selected project’s workspaces that you created, plus any you favorited. Favorites come first, then the most recently used. Issue worktrees, Session Vault workspaces and workspaces that agents created stay off this list unless you favorite them; reach issues from the Issues section and the Pipeline and Board views. The main checkout appears here only when you favorite it, labelled with the project’s name. Archived workspaces leave the list. The section is hidden while the project has nothing to list, and in the All projects view.
- A project’s Home, More menu, Main checkout: opens the project’s main workspace and creates it the first time.
- Cmd-K or Ctrl-K, Workspaces group: the same workspaces for every project, plus every main checkout, shown under its project’s name. Type to filter by name or project. Selecting one opens its view.
exploring, building or shipping. A favorited issue row shows its pipeline phase and its pull request badge, colored by state and review, with × when checks fail.
The workspace view (/workspace/<id>) shows one workspace: its conversations and its memory (status headline, phase and recent observations). An issue workspace also shows the agent terminal while an agent runs, the xBRIEF plan and the verification gates.
Creating a workspace from the dashboard
Open the New workspace page from any of these places. Each one opens/workspaces/new; the ones that belong to a project add ?project=<key> so that project starts selected.
- The + in the left column’s Workspaces header.
- New workspace in your project, in the project switcher menu.
- New workspace… in Cmd-K or Ctrl-K.
- More, then New workspace, on a project’s Home.
- The project chips select a registered project. Recently used projects come first. The chip row can also open the Add a project dialog over this page (clone a repo, add an existing folder, or start a new project); a project you add there comes back selected.
-
The large workspace name field (placeholder “Untitled workspace”) is the name of the new workspace. Names allow letters, numbers and hyphens. As you type, it suggests what you probably meant:
- An issue reference (
#12,PAN-12, or a GitHub issue or pull request URL) offers Open PAN-12 and start work, which opens that issue’s page. A bare#12or a GitHub URL uses the selected project’s issue prefix;PAN-12works whenPANis a registered prefix. - Text that matches branch names in the selected project offers Start from branch for each match. Picking one sets it as the parent branch and opens Advanced so you can see it.
- Text that cannot be a name as typed (spaces, punctuation) offers
Use "fix-login-redirect-bug" as the name.
- An issue reference (
- Shared directory (the default) points the workspace at the project’s primary path, another registered target, or a directory you choose with Browse….
-
Isolated worktree creates
workspaces/scratch-<name>on ascratch/<name>branch, shown under the name as Branch:. It makes its own path, so the target controls are disabled. - Advanced lets you override the parent branch. Without an override, Overdeck uses the project’s current branch.
The status strip above the buttons shows the final path, branch, parent branch, git posture, and whether a worktree will be created, and it updates as you type. The server runs the same resolution for this preview and for the real create, so what the strip shows is what you get.
pan workspace new (below) call the same code, so a workspace created either way is identical.
Managing a scratch or main workspace
The header of a scratch or main workspace’s view has three buttons:- Favorite pins the workspace to the top of the Workspaces section. Press Unfavorite to undo it.
- Relocate points the workspace at a new directory after you confirm the resolved path. Relocating the main workspace also asks you to type its name, because it makes the workspace differ from the project’s path in
projects.yaml. - Archive removes the workspace from the Workspaces section and Cmd-K. Its files, branch and memory stay on disk.
pan workspace destroy <issueId>; add --purge-memory to also delete its memory permanently. The workspace view has no delete button.
Scratch and main workspaces from the CLI
pan workspace new, main, get, activate, archive, relocate and list --kind manage scratch and main workspaces. The older pan workspace create and destroy handle issue workspaces (see Workspace Lifecycle).
pan workspace new uses the project that owns your current directory, or the only registered project; pass --project <key> to choose another.
Targeting and relocating
A workspace points at a directory, so more than one workspace can point at the same repository, and you can move a workspace later. The rules:--target-pathand--isolatedcannot be combined, because an isolated worktree already decides its own path.pan workspace relocaterefuses issue workspaces, because the pipeline owns their path. It needs--forcefor the main workspace, because moving it makes the workspace differ fromprojects.yaml. The new path must be an existing directory.pan workspace archiverefuses the main workspace.
Cleaning up after close-out
Settings → Close-out controls whatpan close <id> and the dashboard’s Close Out button do to an issue’s workspace and feature branch after its pull request has merged. The settings are saved to the [close_out] table in ~/.overdeck/cloister.toml.
Below the first control, a line reports how many closed issues still have a workspace on disk and their total size. Clean up now runs
pan workspace destroy (which also deletes the local branch) for each closed issue whose branch is merged and whose workspace has no uncommitted changes. Untracked files count as uncommitted. It lists each issue it removed, and each issue it skipped with the reason: a polyrepo project (destroy those by hand), uncommitted changes, a branch that is not merged, or a merge state it cannot read.
These settings apply to close-out only. Overdeck’s closed-issue reaper also runs when an issue closes and on the Deacon’s background patrol. For a closed issue whose branch is merged, or no longer exists, it removes the workspace and deletes the local and remote feature branch, whatever these two settings say. The patrol stops while the Deacon is paused (the dashboard then shows Resume Deacon), so closed-issue workspaces can pile up. The disk line and Clean up now cover that case. While GitHub reads are paused, the line says the count may be incomplete, and issues it cannot confirm as closed are not counted or removed.
Main Project Branch Convention
CRITICAL: The main project directory must ALWAYS stay on the main branch. All feature work happens in workspaces.
Why this matters:
- Review and test agents need a stable reference point
- Merge operations require a clean target
- Multiple agents won’t interfere with each other
Git Hooks for Branch Protection
Overdeck provides git hooks to enforce the main branch convention. These hooks are automatically installed:- On
pan project add- Hooks installed when registering project - On
pan sync- Hooks updated in all registered projects
- Agents & planning sessions: Automatically revert to
mainif they accidentally checkout a feature branch - Human users: Display prominent warning (no auto-revert by default)
Safeguards
Planning vs Work Agent Safeguard
Planning refuses to start while a work agent (agent-<issue>) is running for the issue (“Cannot start planning: work agent already running”). A work agent refuses to start until the issue has a finalized xBRIEF plan with items.
To move from planning to work, accept the plan: the Accept plan action finalizes it (pan plan finalize).
To stop planning instead (neither of these finalizes the plan, so work stays blocked):
- Abort Planning in the planning dialog returns the issue to Todo and keeps the workspace.
pan kill planning-<issue>stops the planning agent.
Agent safeguards
Planning, work, review and test agents start with the issue workspace as their working directory, never the main project directory. The work prompt tells the agent never to check out another branch in its workspace. The post-checkout hook auto-reverts a checkout in the main project directory when it runs inside an Overdeck agent (OVERDECK_AGENT=1 or OVERDECK_AGENT_ID set), a planning session, or a tmux session named agent-*, planning-* or specialist-*.
Use Cases
Feature Development:Best Practices
Workspace Management:- Create workspace before starting work (don’t checkout in main project)
- One workspace per issue (don’t reuse for multiple issues)
- Clean up completed workspaces to free disk space
- Use
--dockerflag to warm up containers early
- Branches are named
feature/<issue>, lowercase - Example:
feature/min-123 - Overdeck auto-generates appropriate names
- Use unique container names via project naming
- Clean up containers when destroying workspace
- Keep docker-compose.yml in workspace (not main project)
- The PRD draft and xBRIEF plan live under
.pan/and are committed on the feature branch, so they move with the branch - Item progress is kept in the continue file and updated with
pan task - The PRD is
.pan/drafts/<issue>.md
Remote workspaces on Fly
Overdeck supports remote workspace execution via Fly.io Machines. Remote workspaces provide cloud-hosted agent environments without local resource constraints.Why Remote Workspaces?
- Resource isolation: heavy builds and tests don’t compete with your local machine.
- On-demand provisioning: machines spin up per workspace and are destroyed when the agent finishes and its branch is handed to review.
- Same workflow: the CLI and dashboard work the same for local and remote workspaces.
Setup
Creating Remote Workspaces
Remote workspaces are created from the planning dialog (Workspace Location: Remote (Fly.io)) or the CLI:pan start with --remote:
feature/<id> branch, or on the last-fetched origin/feature/<id>, and pushes the local feature/<id> branch before it creates the machine. On an unplanned issue, planning runs first, and the work agent that starts after planning finalizes runs on Fly, not locally. If remote workspaces are not enabled, that hand-off fails with a message that points at pan admin remote setup.
When the Agent Finishes
Within about a minute of the agent writingREMOTE_DONE, Overdeck brings the branch into a local worktree, opens the PR, destroys the machine and starts review. You don’t run any command. Ephemeral machines stop themselves about 5 minutes after Overdeck stops running. VMs never receive your SSH keys: git uses HTTPS with your synced gh token.
Troubleshooting
Workspace creation fails:Related Guides
- Workspace Commands - CLI reference
- Review and test agents - How review and test agents check the work
- Planning - Planning an issue before work starts