Skip to main content
Overdeck supports projects with multiple git repositories (like separate frontend/backend repos). Configure workspace settings directly in projects.yaml to manage polyrepo workspaces.

Overview

Polyrepo workspaces create git worktrees in each repository, allowing agents to work across multiple codebases simultaneously while maintaining proper git isolation. For polyrepo projects, we strongly recommend maintaining a dedicated infrastructure repository alongside your code repos:
Benefits of a separate infra repo:
  1. Version-controlled templates - Dev script changes are tracked and shared
  2. Centralized configuration - DNS, ports, Traefik rules in one place
  3. Workspace consistency - All workspaces use the same templates
  4. Team collaboration - Infra changes go through normal PR review
  5. Easy updates - Fix a template once, regenerate affected workspaces
Key files in the infra repo:

Configuration in projects.yaml

A few notes on these keys:
  • Repos: each repo can also set forge (github or gitlab), remote (a legacy alias for forge) and pr_target (the branch its PR targets). The Add-project dialog’s Add this folder as one project writes this workspace block for you. Set ci: none on a repo that runs no CI. The merge train then counts a GitLab merge request in that repo with no pipeline as passing; a failing or pending pipeline still blocks the merge, and a repo without the field still needs a green pipeline. It has no effect on GitHub member repos. Remove it as soon as the repo gains CI.
  • Services: each service needs its own start_command, and optionally docker_command, health_url and port.
  • Docker: setting docker.traefik makes Overdeck start its own Traefik from ~/.overdeck/traefik/docker-compose.yml (installed by pan install) when a workspace starts its containers. It never reads a project compose file. See Docker & HTTPS Setup.
  • Agent templates: templates that target CLAUDE.md, AGENTS.md or another harness-native instruction file are dropped. Put project instructions in .overdeck/context/project.md instead (see Context Layers). symlinks: is a deprecated alias for copy_dirs:.

Dependency installs in polyrepo workspaces

A polyrepo workspace root is a plain container directory with no package.json, so Overdeck skips the root install there. Per-repo installs run only for repos that set package_manager (bun, npm, or pnpm) and have a package.json in their directory. Leave package_manager unset on a repo when a devcontainer installs that repo’s dependencies (for example a pnpm init service): a host install can conflict with the container’s pnpm store. A failed per-repo install fails workspace creation; re-running the command resumes setup.

The workspace root repository

The workspace root becomes a small local repository (no remote) when planning completes. It holds the sub-repo worktrees alongside Overdeck’s own files: the synced skills and agent template (.claude/, .mcp.json), Hume config (.hume-config), and env (.env). Overdeck lists these in the root .gitignore so they never count as uncommitted work. If a workspace was created before Overdeck started writing these entries, the next agent start from the dashboard repairs it automatically; no manual step is needed. Anything else left uncommitted at the workspace root still stops a start, exactly as before.

Template Placeholders

What Your Project Needs to Provide

Overdeck is an orchestration layer: it manages workspaces, agents, and workflows, but your project repository provides the actual templates and configuration. Projects can be as simple as just a git repo (for worktree-only workspaces) or as complex as a full polyrepo with Docker, Traefik, and database seeding.

Required: Workspace Templates

Your project needs a .devcontainer/ or template directory with:
Docker Compose templates should use placeholders that Overdeck will replace:
⚠️ Important: File Permissions Always run containers as a non-root user (e.g., user: vscode) to avoid permission issues. Files created by root-owned containers cannot be removed by pan workspace destroy without sudo. The Microsoft devcontainers base image includes a vscode user (UID 1000) that matches most host users.

Required for HTTPS: Traefik Configuration

You do not provide a Traefik compose file. Setting docker.traefik makes Overdeck start its own Traefik from ~/.overdeck/traefik/docker-compose.yml (installed by pan install); it never reads a project compose file. Your compose templates only need the Traefik router labels shown above. See Docker & HTTPS Setup.

Required for Database Seeding: Seed Directory

For projects with databases:
Your compose template should mount this:

Optional: Agent Templates

For customizing how agents work in your project:
Templates that target CLAUDE.md, AGENTS.md or another harness-native instruction file are dropped. Project instructions belong in .overdeck/context/project.md; see Context Layers.

Quick Checklist

Example: Minimal Setup

For a simple monorepo with no Docker:
Overdeck creates workspaces as git worktrees. Docker, HTTPS, and seeding are opt-in.

Container Configuration Tips

When setting up Docker containers for workspaces, avoid these common pitfalls: Maven projects:
  • DO NOT set MAVEN_CONFIG=/some/path as an environment variable
  • Maven interprets MAVEN_CONFIG as additional CLI arguments, not a directory path
  • This causes “Unknown lifecycle phase” errors (e.g., “Unknown lifecycle phase /maven-cache”)
  • Instead, use -Dmaven.repo.local=/path/to/cache in the Maven command
pnpm projects:
  • Set PNPM_HOME=/path to configure the pnpm store location
  • Mount a named volume for the store to share across containers

Polyrepo Merge Considerations

A polyrepo issue has one PR or MR per repo. Merge handles them together as one merge set, and verifies every repo. Automatic merging skips polyrepo issues, so merge them from the dashboard.

Quality Gates in Polyrepo Projects

Set a gate’s path to the repo’s workspace directory (its name, for example fe). The gate runs in that directory.

How it works

Verification runs every gate. At merge time only gates whose path names the repo being merged run again; gates without a path are skipped.

Configuration example

Important: A gate’s path is relative to the workspace, so use the repo’s name from the workspace.repos list, not its path in the project root.

Large-Scale Projects: Progressive Polyrepo

For projects with 10 or more repositories, consider using progressive polyrepo mode instead of the standard all-at-once approach. Benefits of progressive mode:
  • Faster workspace creation: only meta/docs repos initially
  • Less disk usage: agents only check out repos they need
  • Flexible scope: agents add repos as they discover what’s needed
  • Cleaner meta repos: symlinked and marked readonly for agents, with no feature branches
See Progressive Polyrepo Workspaces for full documentation.