Fusion can coordinate multiple repositories from one installation, with shared visibility and global concurrency control.
Use multi-project mode when you need to:
- Operate many repos from one dashboard/CLI
- Standardize settings and workflows across projects
- Monitor global activity and system-wide execution capacity
Multi-project metadata is stored in:
~/.fusion/fusion-central.db
Core tables:
projectsprojectHealthcentralActivityLogglobalConcurrencynodespeerNodessettingsSyncState__meta
Per-project task data remains in each repo’s .fusion/fusion.db.
Peer/mesh coordination spans core + engine:
NodeDiscoveryandNodeConnectionin@fusion/corehandle discovery and remote node connectivity/auth.PeerExchangeServicein@fusion/enginecoordinates node-to-node sync/exchange workflows.
fn project add my-app /path/to/app
fn project list
fn project show my-app
fn project set-default my-app
fn project detect
fn project remove my-app --forceYou can target a project explicitly:
fn task list --project my-app
fn task create "Fix oauth callback" --project my-appResolution order without --project:
- explicit flag
- default project
- current-directory auto-detection
Central health tracking keeps mutable project metrics, including:
- active task counts
- in-flight agent counts
- project status (
initializing,active,paused,errored)
A singleton central record enforces system-wide limits so one project cannot monopolize all execution slots.
Projects can run with:
in-process(default): low overhead, shared processchild-process: stronger isolation with independent process boundary
On first run after upgrade:
- Existing project databases are detected
- Projects are registered into central DB automatically
- Existing single-project workflows continue working
Migration is idempotent and designed to avoid repeated re-registration.
If central registry behavior needs to be reverted:
- Delete
~/.fusion/fusion-central.db - Keep using per-project
.fusion/fusion.dbdata - Fusion falls back to legacy/single-project behavior
- Re-register projects later with
fn init/fn project add
Each project runtime supports start/stop/status/metrics and access to scheduler/task store (for in-process mode).
HybridExecutor orchestrates all project runtimes and forwards project-attributed events.
Host → worker commands include:
START_RUNTIMESTOP_RUNTIMEGET_STATUSGET_METRICSGET_TASK_STOREGET_SCHEDULERPING
Worker → host events include:
TASK_CREATEDTASK_MOVEDTASK_UPDATEDERROR_EVENTHEALTH_CHANGED
flowchart TD
HE[HybridExecutor]
PM[Project Manager]
CC[CentralCore]
HE --> PM
HE --> CC
PM --> A[Project A Runtime\n(in-process)]
PM --> B[Project B Runtime\n(child-process)]
PM --> C[Project C Runtime\n(in-process)]
B --> IPC[IPC Worker Channel]
See also: Architecture, CLI Reference, and Missions.