← Back to Leaderboard
Fdisler

disler/fusion-harness

A Pi extension that coordinates 2–5 coding models with one workspace writer at a time

View on GitHub ↗
Engineering Health (Methodology)
B · 56/100
Maintenance Activity
● Updated 3mo ago
Latest Release
Rolling commits (main)
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance12/35
Fork Adoption18/25
Release Cadence6/20
License Clarity20/20
CLIAPI
Total Stars
★ 614
24h Growth
+0
7d Growth
+3
Forks
117

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

disler/fusion-harness Star History (2026-07-18 - 2026-12-04) ALL-TIME STAR HISTORY (2026-07 – 2026-12) +613 in 139d · avg +4/day 648 324 0 2026-07-18: ★ 12026-08-01: ★ 2372026-08-15: ★ 2582026-08-29: ★ 4712026-09-12: ★ 5462026-09-26: ★ 5802026-10-10: ★ 5902026-10-24: ★ 5942026-11-02: ★ 6002026-11-11: ★ 6042026-11-20: ★ 6092026-11-29: ★ 6122026-12-04: ★ 614 ★ 614 07-18 09-25 12-04

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Fusion Harness is an MIT-licensed TypeScript extension for the Pi coding agent, not a standalone agent server or a documented MCP server. extensions/fusion-harness/fusion-harness.ts loads the stack, sets Pi’s live chat model to Main, manages slot sessions, and registers commands and UI components. model-stack.ts validates the explicit YAML configuration; yaml is the sole listed package dependency, while Pi provides the host and agent runtime.

child-runner.ts launches clean-room Pi children with --no-extensions, streams JSON events from pi --mode json -p, and uses process groups for cancellation and timeout handling. Non-Main transcripts are scoped to the app run and keyed by slot and fully qualified model; Main follows Pi’s native transcript behavior when switching models. Collaboration checks the architect’s task DAG before scheduling and uses both a run-level writer token and an atomic lease keyed to the canonical working directory to coordinate harness-managed writers.

Key Capabilities & Differentiators

An explicit --fh-config stack binds two to five provider/id model slots, with exactly one architect and one non-architect primary. The primary handles raw Pi chat. Slots can set thinking levels and supply inline or file-based system prompts. Opinion and debate modes allow only read, grep, find, and ls; later debate rounds give surviving agents one another’s labeled prior positions and end without a judge or automatic merge.

Fusion gives a fresh temporary agent sole write access, then distributes the full result to Main and every slot. Exact ACK checks, one retry for malformed replies, and a common SHA-256 in the run artifacts make delivery status auditable; a missing ACK leaves the result visible but marks synchronization incomplete. Collaboration runs read-only planning, starts tasks as DAG dependencies clear, and closes with architect integration. Separately, auto-validation writes a uv acceptance gate, checks that the baseline fails, and then iterates with Main, with a default cap of five validations.

Trade-offs & Limitations

Against a single Pi session, the strongest reason to adopt Fusion Harness is getting separate model judgments before committing to a change, then handing implementation to one writer in the existing checkout. The cost is more provider calls and more credentials and model availability to manage. Parallel read-only turns can overlap, but debate rounds, fusion and synchronization, and validation passes add serial stages. Use a narrower mode when you only need one opinion or one implementation pass.

Against agents working in separate worktrees, the shared checkout avoids a branch merge step but also forgoes parallel editing: write-enabled tasks queue, and collaboration rejects observed worktree commands. The lease coordinates participating harness processes; it is not a filesystem sandbox for agents or unrelated tools. Likewise, an exact fusion ACK records a protocol response, not proof that a model understood the result. The local orchestrator also does not change the fact that context sent for inference is subject to each provider’s data policies.

Hardware & Deployment Guide

The manual path installs @earendil-works/pi-coding-agent globally with npm, installs repository dependencies with npm install, and requires just, Bun, jq, and uv. Copy .env.example to .env and supply credentials for the providers in use; Pi expects GEMINI_API_KEY for its Google provider. just fusion starts a preset, and just fh-stack <yaml> starts an explicit stack. There is no config auto-discovery, and --fh-config cannot be combined with legacy model, thinking, or system-prompt flags.

The documented deployment runs the extension and its tooling locally while making provider API calls; no Docker image, standalone API service, or offline inference path is documented. Confirm that models are visible to clean-room children before rollout: invalid or unavailable stacks fail at startup. npm test runs 34 deterministic tests without paid calls, and npm run test:fusion-harness is the focused test entry point. No GitHub release is listed, so pin a known commit if reproducibility matters.

Stack contract: Explicit YAML defines 2–5 slots with exactly one architect and one non-architect Main builder; Main becomes Pi’s live chat model.
Process control: Pi children stream JSON events and run in separate process groups so cancellation can reach tool descendants.
Debate: Each surviving slot sees every other slot’s labeled prior-round opinion; closing positions stay separate, with no judge or automatic merge.
Collaboration: A validated dependency graph schedules ready tasks, while a global writer token and a checkout-scoped lease serialize harness-managed writes.
Fusion handoff: A temporary sole writer produces the result, which is synchronized in full with exact acknowledgments and a shared SHA-256 recorded in run artifacts.
Acceptance loop: A uv gate must fail before implementation starts; the default cap is five validations.
Best For

Pi users who want independent model reviews or plans before letting one agent at a time modify a shared checkout.

Skip If

You need offline inference, a standalone MCP or HTTP service, parallel writes in isolated worktrees, or the cost and simplicity of a single model call.

Reviewed on 2026-12-01 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLIAPI
npm install -g @earendil-works/pi-coding-agent   # the pi coding agent
brew install just jq uv                          # command runner + gate tooling
npm install                                      # repo deps (yaml parser)
cp .env.example .env                             # then fill ANTHROPIC/GEMINI/FIREWORKS/OPENAI/OPENROUTER_API_KEY
npm test                                         # 34 deterministic tests, zero paid calls

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/disler/fusion-harness.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

disler/fusion-harness Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about fusion-harness

How does Fusion Harness integrate with Pi, and can it use models registered by another extension?

Load it as a Pi coding-agent extension. Pass an explicit YAML stack with --fh-config, or use a just launch recipe. The Main builder becomes the live Pi model; worker turns run in separate pi --mode json -p processes with --no-extensions. Models registered only by another extension cannot be used in the stack.

Does a five-model stack require a local GPU or a fixed amount of VRAM?

The provider-backed path runs Pi, child agents, and workspace tools locally; it does not load model weights on the workstation, so there is no fixed GPU or VRAM requirement for that path. Size local CPU and memory for overlapping child processes and whatever builds or checks they invoke. Provider cost and latency depend on the models, the number of calls, and the selected workflow.

Can we use it commercially or run it under an internal data policy?

The extension is MIT-licensed, so commercial use and modification are permitted, subject to retaining the required notices. Running the harness on your own machine does not make provider inference self-hosted or offline. Review each provider’s terms and data handling separately, especially when source code may go to multiple providers or fusion output is redistributed to every slot.

Why use this instead of one Pi session or several agents in separate worktrees?

Use one Pi session when you want fewer calls and a simpler transcript. Use separate checkouts or worktrees when simultaneous edits matter. Fusion Harness is a better fit when you want independent opinions and a controlled handoff to one writer in the same checkout; it does not deliver parallel edits, and collaboration rejects worktree commands.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining disler/fusion-harness? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature disler/fusion-harness on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare