AgileFlow

/workspace:init

PreviousNext

Initialize a multi-project workspace for cross-repo orchestration

/workspace:init

Initialize a multi-project workspace for cross-repo orchestration. Creates a .agileflow-workspace/ directory in a parent directory that contains multiple AgileFlow-enabled projects.

Quick Start

/agileflow:workspace:init

What It Creates

parent-dir/
  .agileflow-workspace/        # Created by this command
    workspace.json              # Project manifest & config
    workspace-registry.json     # Cross-repo session tracking
    workspace-bus/log.jsonl     # Federated message bus
  frontend/.agileflow/          # Existing project
  backend/.agileflow/           # Existing project

Arguments

ArgumentDescription
[path]Parent directory path (defaults to .. from current project)

How It Works

  1. Scans parent directory for child directories with .agileflow/
  2. Auto-detects workspace mode: monorepo (shared .git) or multi-repo (separate repos)
  3. Creates workspace.json with project manifest
  4. Initializes empty session registry and message bus

Workspace Modes

ModeDetectionSession Strategy
multi-repoEach project has its own .gitcd into project directory
monorepoRoot has .git, or pnpm-workspace.yaml, or package.json workspacesGit worktrees for isolation