Skip to content
/ flow Public

Instant multi-repo workspaces. Bring your own editor

License

Notifications You must be signed in to change notification settings

milldr/flow

Repository files navigation

🌊 flow

ko-fi

CLI for managing multi-repo development workspaces using git worktrees.

Working across multiple repos means repetitive setup, scattered branches, and cleanup debt. Flow uses a YAML state file to define which repos and branches belong together, then materializes the workspace with bare clone caching and git worktrees.

flow demo

Features

🌳 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.

Why flow?

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.

Flow is that deterministic layer. It gives agents (and humans) a small set of reliable commands for workspace lifecycle: create, define repos in YAML, render worktrees, check status. Agents call these tools through embedded skills rather than interpreting setup instructions on their own.

Beyond workspace creation, flow centralizes agent skills across all your workspaces and lets you check the status of many workstreams in parallel. It is not opinionated about which agent or editor you use — configure Claude, Cursor, or anything else in a single config file. Everything is customizable: status checks, agent skills, workspace structure.

Getting started

Install
brew install milldr/tap/flow

Or with Go:

go install github.com/milldr/flow/cmd/flow@latest

Or build from source:

git clone https://github.com/milldr/flow.git
cd flow
make install

Create a workspace and start working

Flow creates a workspace and launches your configured agent. Describe what you're working on and the agent handles the rest.

flow init my-project

The agent reads its embedded skills to edit state.yaml, run flow render, and begin working in the repos.

Manual workflow

Use --no-exec to skip the agent launch and set things up yourself:

flow init my-project --no-exec
flow edit state my-project    # add repos and branches
flow render my-project        # clone repos, create worktrees
flow exec my-project          # launch agent manually

See the spec reference for YAML file schemas and the command reference for all commands.

How it works

Flow stores everything under ~/.flow (override with $FLOW_HOME):

~/.flow/
├── config.yaml                         # Global config
├── status.yaml                         # Global status spec
├── agents/
│   └── claude/
│       ├── CLAUDE.md                   # Shared agent instructions
│       └── skills/
│           ├── flow-cli/SKILL.md       # Built-in: workspace management
│           ├── workspace-structure/SKILL.md  # Built-in: directory layout
│           └── 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 → agents/claude/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 ships two built-in skills (flow-cli and workspace-structure) and preserves any custom skills you add to the same directory. Run flow reset skills to update the built-in skills without touching your own.

See the spec reference for YAML file schemas and the command reference for usage, flags, and GIF demos.

Customization

Flow stores everything under ~/.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.

Requirements

  • Go 1.25+
  • Git 2.20+ (worktree support)

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:

ko-fi

License

MIT

About

Instant multi-repo workspaces. Bring your own editor

Resources

License

Stars

Watchers

Forks

Packages