Skip to main content
For a polyrepo project with many repos, creating every worktree upfront wastes time and disk space when most issues only touch a handful of them. A progressive polyrepo workspace starts with just the repos you name, and adds more on demand as work needs them.

When to use progressive mode

Progressive mode helps most once a polyrepo project has ten or more repos, or whenever it includes a meta repo you want symlinked in read-only rather than checked out as a worktree. Below that, a standard polyrepo, which checks out every configured repo at workspace creation, is simpler and usually fast enough. These are guidelines, not a hard threshold the code enforces.

Overview

Progressive workspaces are opt-in per project, with two keys that are both required together: progressive: true and always_include. With only always_include set, every repo is still created; with only progressive: true set, every repo is still created too. Only the combination of both keys limits workspace creation to the always_include repos.
  1. Workspace creation is fast. Only the repos named in always_include get a worktree or a symlink.
  2. Agents add repos on demand. Using the /workspace-add-repo skill or pan workspace add-repo.
  3. Meta repos stay clean. A repo with link_type: symlink links to the project’s own checkout, on whatever branch that checkout is currently on, with no feature branch created for it.
  4. Repo groups simplify addition. Agents can add a named group instead of listing individual repos.
A workspace with no progressive key behaves exactly as before: every configured repo is checked out at creation.

Configuration

Configuration fields

Workspace-level

Per-repo

Repo groups

Repo groups let agents add several related repos at once, defined in a repo-groups.yaml file your groups_file key points to. Write each group on one line, as a list in square brackets or as *. Group names may use letters, digits and underscores. A group whose value is * means every repo, and the group all is built in.
A group written as a multi-line block list parses as empty, and a hyphenated group name is never found.

Adding repos mid-work

CLI command

Always pass --project <key>: without it, the command can only resolve the project from workspace.workspaces_dir, which not every project sets. --group and --new cannot be combined; --new takes at most one repo name. Every --group form, including --group all, needs groups_file set in the workspace config and that file to exist; without both, pass repo names directly instead. Examples:
With --new, the repo name is optional; by default it is inferred from the URL. The new repo’s path is its name, and it copies branch_prefix from the first repo that is not readonly. --new clones the repository under the project root, appends it to the project’s workspace.repos configuration, and creates the issue’s feature worktree for it inside the active workspace. Review, inspection, verification and merge then treat it like any other configured repo. If a repo name is unknown and --new is absent, the command fails without changing the workspace. add-repo also works on a polyrepo that is not progressive, with a warning. Run --new before manually cloning or committing to the new repository. The command refuses to adopt an existing workspace checkout that is on the wrong branch, so work never silently continues there.

Skill: /workspace-add-repo

Agents invoke this skill during work when they need repos not yet in the workspace:
The skill:
  1. Reads repo-map.md in the meta repo for architecture context
  2. Reads repo-groups.yaml for available group names
  3. Adds only the repos needed; agents can always add more later

Meta repos and readonly repos

A meta repo (shared skills, architecture docs, team conventions) typically uses link_type: symlink together with readonly: true:
What happens:
  • A symlink is created, for example workspaces/feature-int-123/meta → /project/team-meta, pointing at the project’s own checkout of that repo on whatever branch it currently has, not necessarily main.
  • The symlink always reflects the current state of that checkout.
  • No git worktree is created, so the repo is never put on a feature branch for this issue.
  • readonly: true tags the repo (readonly) in the work agent’s prompt; in a progressive workspace the prompt also lists it under Readonly repos. Git does not enforce it, and a readonly repo is not required in the merge set.

PR target branch

When pr_target is set, the work agent’s prompt names it. Overdeck resolves each repo’s target for merges, verification and PR sync in this order: the repo’s own pr_target, then the workspace’s pr_target, then the repo’s default_branch, then the workspace’s default_branch, then main.

Per-repo override

A repo’s own pr_target always wins over the workspace’s pr_target, even when it happens to match the repo’s default_branch.

Migration from standard polyrepo

Existing polyrepo projects with no progressive field work exactly as before:
To migrate to progressive mode:
  1. Add progressive: true together with always_include
  2. Identify the always_include repos (typically just the meta repo)
  3. Optionally add groups_file for team-defined repo groups
  4. Optionally add pr_target if your project uses a non-standard PR target branch
  5. Give the meta repo (or any other read-only repo) link_type: symlink plus readonly: true