Fusion cb54000fe5 feat(FN-1662): fix project overview stats for non-first projects
- Always compute live task counts from the project-scoped store via getOrCreateProjectStore()
- Remove broken path-comparison logic that only worked for the default project
- Endpoint /api/projects/:id/health now returns accurate stats for all projects
- Add tests covering multi-project health endpoint scenarios
2026-04-15 07:19:41 -07:00
2026-04-14 13:30:24 -07:00
2026-04-12 12:20:16 -07:00
2026-04-15 04:16:32 -07:00

Fusion

AI-orchestrated task board — specify, execute, and deliver tasks automatically.

Like Trello, but your tasks get specified, executed, and delivered by AI — powered by pi.

Fusion dashboard

Fusion turns rough ideas into production code. Describe a task, and an AI agent writes the spec, plans the implementation, writes the code in an isolated git worktree, and merges it — with automatic code review at every step. Manage a single project or coordinate across multiple repositories from one dashboard.

Documentation

For detailed guides, see the Documentation Index.

Guide What it covers
Getting Started Installation and onboarding
Dashboard Guide Board/list views, terminal, git manager
Task Management Task lifecycle and CLI commands
Settings Reference Configuration options
Architecture System internals
Agents Agent management, spawning, heartbeat
Workflow Steps Quality gates, templates, phases
Missions Mission hierarchy, planning, autopilot
Multi-Project Central registry, isolation modes

For Docker deployment, see docs/docker.md.

Quick Start

  1. Install:

    npm i -g @gsxdsm/fusion
    
  2. Initialize (or just start the dashboard):

    fn dashboard
    
  3. Open http://localhost:4040 — create tasks from the board or the CLI.

First-run Setup

On first launch, Fusion automatically opens the onboarding wizard with three guided steps:

  1. AI Setup — Connect an AI provider and choose a default model
  2. GitHub (Optional) — Connect GitHub for issue import and PR management
  3. First Task — Create your first task or import from GitHub

The wizard is dismissible and non-blocking — click Skip for now to dismiss it and use the dashboard immediately. You can also re-trigger onboarding later from Settings → Authentication → Reopen onboarding guide.

Prerequisites

The AI engine uses pi under the hood:

  1. npm i -g @mariozechner/pi-coding-agent
  2. Run pi and use /login, or set ANTHROPIC_API_KEY

Fusion reuses your existing pi authentication.

Mobile

For Capacitor + PWA workflow, see MOBILE.md.

Workflow

graph TD
    H((You)) -->|rough idea| T["Triage\n<i>auto-specification</i>"]
    T --> TD["Todo\n<i>scheduled for execution</i>"]
    TD --> IP["In Progress\n<i>for each step:\nplan, review, execute, review </i>"]

    subgraph IP["In Progress"]
        direction TD
        NS([Begin step]) --> P[Plan]
        P[Plan] --> R1{Review}
        R1 -->|revise| P
        R1 -->|approve| E[Execute]
        E --> R2{Review}
        R2 -->|revise| E
        R2 -->|next step| NS
        R2 -->|rethink| P
    end

    R2 -->|done| IR["In Review\n<i>ready to merge,\nor auto-complete</i>"]
    IR -->|direct squash merge\nor merged PR| D["Done"]

    style H fill:#161b22,stroke:#8b949e,color:#e6edf3
    style T fill:#2d2006,stroke:#d29922,color:#d29922
    style TD fill:#0d2044,stroke:#58a6ff,color:#58a6ff
    style IP fill:#1a0d2e,stroke:#bc8cff,color:#bc8cff
    style P fill:#1a0d2e,stroke:#bc8cff,color:#e6edf3
    style R1 fill:#1a0d2e,stroke:#bc8cff,color:#e6edf3
    style E fill:#1a0d2e,stroke:#bc8cff,color:#e6edf3
    style R2 fill:#1a0d2e,stroke:#bc8cff,color:#e6edf3
    style NS fill:#1a0d2e,stroke:#bc8cff,color:#bc8cff
    style IR fill:#0d2d16,stroke:#3fb950,color:#3fb950
    style D fill:#1a1a1a,stroke:#8b949e,color:#8b949e

Tasks with dependencies are processed sequentially. Independent tasks run in parallel.

In Triage, an AI agent reads your project, understands context, and writes a full PROMPT.md specification — steps, file scope, acceptance criteria. Optionally require manual approval before tasks move to Todo (requirePlanApproval setting).

Core Features

  • AI Specification — Triage agent generates detailed PROMPT.md with steps, file scope, and acceptance criteria
  • Step-by-step Execution — Plan → Review → Execute → Review cycle for each task step
  • Git Worktree Isolation — Each task runs in its own worktree (fusion/{task-id} branch)
  • Workflow Steps — Configurable quality gates (pre-merge: blocks merge; post-merge: informational)
  • GitHub Integration — Import issues, create PRs, real-time PR/issue badges
  • Dashboard — Real-time kanban board, agent management, terminal, git manager, mission planner
  • Missions — Hierarchical planning (Mission → Milestone → Slice → Feature → Task) with autopilot
  • Multi-Project — Manage multiple projects from a single installation with project isolation
  • Inter-Agent Messaging — Built-in messaging for coordination between agents and users

Quick Examples

fn task create "Fix the login bug"                    # Quick entry → triage
fn task plan "Build auth system"                      # AI-guided planning
fn task import owner/repo --labels bug               # Import GitHub issues
fn task show FN-001                                  # View task details
fn task logs FN-001 --follow                         # Stream execution logs
fn task steer FN-001 "Use TypeScript"               # Guide the agent mid-execution

fn project add my-app /path/to/app                   # Register a project
fn project list                                      # List all projects

fn settings set maxConcurrent 4                      # Configure settings
fn settings export                                   # Export configuration

fn mission create "Auth System" "Build auth"         # Create mission
fn mission activate-slice <slice-id>                # Activate a slice

Packages

Package Description
@fusion/core Domain model — tasks, board columns, SQLite store
@fusion/dashboard Web UI — Express server + kanban board with SSE
@fusion/engine AI engine — triage, execution, scheduling, workflow steps
@fusion/tui Terminal UI — Ink-based CLI components
@gsxdsm/fusion CLI + pi extension — published to npm

Development

pnpm install                  # Install dependencies
pnpm build                    # Build all packages
pnpm dev dashboard            # Run dashboard + AI engine
pnpm dev:ui                   # Dashboard only (no AI engine)
pnpm lint                     # Lint all packages
pnpm typecheck                # Type-check all packages
pnpm test                     # Run all tests

Building a Standalone Executable

Build a single self-contained fn binary using Bun:

pnpm build:exe                # Build for current platform
pnpm build:exe:all            # Cross-compile for all platforms

Releases

Packages are published to npm automatically via GitHub Actions and changesets.

npm install -g @gsxdsm/fusion

See RELEASING.md for the full workflow.

License

ISC

Description
Fork of github.com/Runfusion/Fusion with Coolify-friendly Dockerfile
Readme MIT 124 MiB
Languages
TypeScript 95.4%
CSS 3.3%
JavaScript 1.2%