disler/fusion-harness
A Pi extension that coordinates 2–5 coding models with one workspace writer at a time
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
uv gate must fail before implementation starts; the default cap is five validations.Pi users who want independent model reviews or plans before letting one agent at a time modify a shared checkout.
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.
Quick Start & Installation
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.
curl -sL https://repoforai.com/repo/disler/fusion-harness.md
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?
--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?
Can we use it commercially or run it under an internal data policy?
Why use this instead of one Pi session or several agents in separate worktrees?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
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