CLI for managing multi-repo development workspaces using git worktrees.
Working across multiple repos means repetitive setup, scattered branches, and cleanup debt.
🌳 Workspaces as code — Declare repos and branches in a YAML state file. Repos are cloned once into a shared cache and checked out as lightweight git worktrees, so multiple workspaces pointing at the same repo don't duplicate data.
🚦 Status tracking — Define custom check commands that dynamically resolve the status of each repo in a workspace.
🤖 AI agent integration — Generate shared context files and agent instructions across repos so your AI tools have the right skills and knowledge from the start.
AI agents work best when they have deterministic tools instead of freeform instructions. Asking an agent to "set up a multi-repo workspace" produces inconsistent results — but giving it a CLI that manages YAML state files, bare clone caches, and git worktrees produces the same result every time.
Beyond workspace creation,
flow init creates a workspace pre-configured with agent instructions and skills, then launches you directly into your preferred agent — Claude, Cursor, or anything else you configure. The agent reads the embedded flow skill to understand how workspaces work, plus any custom skills you've added (like resolving repos by friendly names). Describe what you're working on and the agent handles the rest: editing the state file, rendering worktrees, and getting everything ready to go.
flow status gives you a live view across all active workspaces. Statuses are fully customizable — they're just one-line shell commands in a config file, not hardcoded logic. Have your AI generate complex status checks (query GitHub PRs, check CI, inspect git state) and hide them behind simple labels. Nothing in
Install
brew install milldr/tap/flowOr with Go:
go install github.com/milldr/flow/cmd/flow@latestOr build from source:
git clone https://github.com/milldr/flow.git
cd flow
make installflow initThe agent reads its embedded skills to edit state.yaml, run flow render, and begin working in the repos.
See the spec reference for YAML file schemas and the command reference for all commands.
~/.flow (override with $FLOW_HOME):
~/.flow/
├── config.yaml # Global config
├── status.yaml # Global status spec
├── agents/
│ └── claude/
│ ├── CLAUDE.md # Shared agent instructions
│ └── skills/
│ ├── flow/SKILL.md # Built-in: workspace management
│ └── find-repo/SKILL.md # Your own custom skill
├── workspaces/
│ └── calm-delta/ # Workspace ID
│ ├── state.yaml # Workspace manifest (name: vpc-ipv6)
│ ├── status.yaml # Optional workspace-specific status spec
│ ├── CLAUDE.md # Generated workspace context
│ ├── .claude/
│ │ ├── CLAUDE.md → agents/claude/CLAUDE.md
│ │ └── skills/ # Consolidated from shared + repo skills
│ ├── vpc-service/ # Worktree
│ └── subnet-manager/ # Worktree
└── repos/
└── github.com/acme/
├── vpc-service.git/ # Bare clone
└── subnet-manager.git/ # Bare clone
Bare clones are shared across workspaces. Worktrees are cheap — they share the object store with the bare clone, so multiple workspaces pointing at the same repo don't duplicate data.
flow skill and consolidates skills from all repos into each workspace's .claude/skills/ directory on render. Add your own skills to the shared directory or to individual repos. Run flow reset skills to update the built-in skill without touching your own.
See the spec reference for YAML file schemas and the command reference for usage, flags, and GIF demos.
~/.flow (override with $FLOW_HOME). Edit these files to customize your setup:
| Command | What it configures |
|---|---|
flow edit config |
Default agent, editor preferences |
flow edit status |
Status checks for tracking workstreams |
flow edit state <workspace> |
Repos and branches for a workspace |
flow reset skills |
Restore default agent skills to latest |
See the spec reference for YAML schemas and the command reference for all commands.
- Go 1.25+
- Git 2.20+ (worktree support)
I build and maintain projects like flow in my free time as personal hobbies. They're completely free and always will be. If you find this useful and want to show some support, feel free to buy me a coffee:
MIT

