@runfusion/fusion 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +166 -0
- package/dist/bin.js +141453 -0
- package/dist/client/assets/addon-fit-C7jRorKK.js +1 -0
- package/dist/client/assets/addon-web-links-CkJwd4cQ.js +1 -0
- package/dist/client/assets/addon-webgl-BjvOw43o.js +58 -0
- package/dist/client/assets/index-Dr0THfBG.css +1 -0
- package/dist/client/assets/index-bkmXzXw5.js +1241 -0
- package/dist/client/assets/vendor-react-K0fH_qHe.js +49 -0
- package/dist/client/assets/vendor-xterm-DzcZoU0P.js +9 -0
- package/dist/client/assets/vendor-xterm-LZoznX6r.css +32 -0
- package/dist/client/icons/icon-192.png +0 -0
- package/dist/client/icons/icon-512.png +0 -0
- package/dist/client/index.html +90 -0
- package/dist/client/logo.svg +6 -0
- package/dist/client/manifest.json +23 -0
- package/dist/client/sw.js +90 -0
- package/dist/client/theme-data.css +3764 -0
- package/dist/extension.js +79879 -0
- package/package.json +86 -0
- package/skill/fusion/SKILL.md +103 -0
- package/skill/fusion/references/best-practices.md +91 -0
- package/skill/fusion/references/cli-commands.md +117 -0
- package/skill/fusion/references/extension-tools.md +296 -0
- package/skill/fusion/references/fusion-capabilities.md +121 -0
- package/skill/fusion/references/skill-patterns.md +38 -0
- package/skill/fusion/references/task-structure.md +158 -0
- package/skill/fusion/workflows/dashboard-cli.md +92 -0
- package/skill/fusion/workflows/specifications.md +124 -0
- package/skill/fusion/workflows/task-lifecycle.md +116 -0
- package/skill/fusion/workflows/task-management.md +90 -0
package/README.md
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<img src="https://raw.githubusercontent.com/Runfusion/Fusion/main/demo/assets/fusion-logo.png" alt="Fusion" width="120" />
|
|
4
|
+
|
|
5
|
+
# @runfusion/fusion
|
|
6
|
+
|
|
7
|
+
### From rough idea to production code — automatically.
|
|
8
|
+
|
|
9
|
+
**Multi-node agent orchestrator** — tasks, agents, missions, git, files, and worktrees, with any model, local or cloud.
|
|
10
|
+
|
|
11
|
+
[**runfusion.ai →**](https://runfusion.ai) · [GitHub](https://github.com/Runfusion/Fusion) · [Docs](https://github.com/Runfusion/Fusion#readme)
|
|
12
|
+
|
|
13
|
+
<br />
|
|
14
|
+
|
|
15
|
+
<img src="https://raw.githubusercontent.com/Runfusion/Fusion/main/demo/assets/fusion-reel.gif" alt="Fusion reel: from rough idea to production code" width="900" />
|
|
16
|
+
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Install
|
|
22
|
+
|
|
23
|
+
As a [pi](https://github.com/badlogic/pi-mono) extension:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
pi install npm:@runfusion/fusion
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Or globally via npm:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npm install -g @runfusion/fusion
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
The package includes a bundled **Fusion skill** that lets AI agents discover and use Fusion tools automatically.
|
|
36
|
+
|
|
37
|
+
## Launch the dashboard
|
|
38
|
+
|
|
39
|
+
Run `/fn` inside pi to start the dashboard and AI engine:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
/fn # start on default port 4040
|
|
43
|
+
/fn stop # stop it
|
|
44
|
+
/fn 8080 # run on a custom port
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Or from a shell:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
fn dashboard # same thing, outside pi
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
The dashboard gives you:
|
|
54
|
+
|
|
55
|
+
- **A live kanban board** — tasks move through columns automatically as AI works on them
|
|
56
|
+
- **Task detail view** — generated spec, step-by-step progress, reviewer verdicts, full execution log
|
|
57
|
+
- **Dependency-aware scheduling** — declare task dependencies or let the engine infer them
|
|
58
|
+
- **Auto-merge** — on by default; reviewed work squash-merges without you lifting a finger
|
|
59
|
+
- **Parallel execution** — independent tasks run simultaneously in isolated git worktrees
|
|
60
|
+
- **Self-sustaining board** — agents may spawn follow-up tasks; the board feeds itself
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Your entire dev environment. On a single pane of glass.
|
|
65
|
+
|
|
66
|
+
Describe a task in plain language. A triage agent reads your project, understands context, and writes a full `PROMPT.md` spec — steps, file scope, acceptance criteria. Then Fusion plans, reviews, executes, and reviews again, in an isolated git worktree, with a human approval gate wherever you want one.
|
|
67
|
+
|
|
68
|
+
One board. Controlled from anywhere. Laptop, Mac mini, Linux server, cloud VM, phone — all connected.
|
|
69
|
+
|
|
70
|
+
<div align="center">
|
|
71
|
+
<img src="https://raw.githubusercontent.com/Runfusion/Fusion/main/demo/assets/fusion-mesh.gif" alt="Fusion mesh: laptop, Mac mini, Linux server, cloud VM, phone — all synced" width="820" />
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Run an agent company
|
|
77
|
+
|
|
78
|
+
Import a team. Run it autonomously for weeks. **440+ agents across 16 companies**, wired for missions, mailboxes, and inter-agent delegation.
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
npx companies.sh add paperclipai/companies/gstack
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
<div align="center">
|
|
85
|
+
<img src="https://raw.githubusercontent.com/Runfusion/Fusion/main/demo/assets/fusion-company-reel.gif" alt="Fusion agent company: import a team, run it autonomously for weeks" width="820" />
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## How it works
|
|
91
|
+
|
|
92
|
+
You create a task with a rough description. A pipeline of specialized agents takes over.
|
|
93
|
+
|
|
94
|
+
**Specification.** A triage agent reads your codebase — file structure, existing patterns, related code — and turns your rough idea into a detailed spec. It breaks the work into discrete steps, identifies which files are in scope, writes acceptance criteria, and assigns a complexity rating that determines how aggressively the work gets reviewed.
|
|
95
|
+
|
|
96
|
+
**Scheduling.** Tasks declare dependencies on each other. The scheduler builds a dependency graph and starts work only when upstream tasks are done. Independent tasks run in parallel — each in its own isolated git worktree, so there are no conflicts during execution.
|
|
97
|
+
|
|
98
|
+
**Execution & review.** An executor agent works through the spec step by step in the worktree. At each step boundary, a separate reviewer agent, with read-only access, independently evaluates the work. The reviewer can approve (continue), request revisions (fix specific issues), or force a rethink (change the approach entirely). Review depth scales with the task's complexity rating: trivial tasks get light checks, complex tasks get thorough multi-pass review.
|
|
99
|
+
|
|
100
|
+
**Merge.** When execution finishes and the reviewer signs off, the task moves to **In Review**:
|
|
101
|
+
|
|
102
|
+
- **Direct merge** *(default)* — automatically squash-merges the completed task branch into your current branch with a clean commit.
|
|
103
|
+
- **Pull request** — automatically creates or links a GitHub PR, waits for reviews/checks, then merges once policy conditions are satisfied.
|
|
104
|
+
|
|
105
|
+
`autoMerge` controls whether Fusion performs completion automatically. If disabled, tasks stay in **In Review** until you finish the merge yourself. For PR-first mode, authenticate GitHub with `gh auth login`.
|
|
106
|
+
|
|
107
|
+
Tasks flow through: **Triage → Todo → In Progress → In Review → Done**.
|
|
108
|
+
|
|
109
|
+
This execution model is heavily based on [Taskplane](https://www.npmjs.com/package/taskplane).
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## What makes it different
|
|
114
|
+
|
|
115
|
+
| | |
|
|
116
|
+
|---|---|
|
|
117
|
+
| 🧠 **AI specification** | Rough idea in, detailed `PROMPT.md` out — steps, file scope, acceptance criteria. |
|
|
118
|
+
| 🔁 **Workflow gates** | Plan → Review → Execute → Review on every step. Block or pass automatically. |
|
|
119
|
+
| 🌳 **Worktree isolation** | Each task runs in its own branch and worktree. Parallel tasks. Zero conflicts. |
|
|
120
|
+
| ⚡ **Smart merge** | Passing every gate? Fusion squash-merges and moves on. |
|
|
121
|
+
| 🛰️ **Multi-node mesh** | Laptop, server, cloud, phone — all synced. Desktop, mobile, web. |
|
|
122
|
+
| 🧩 **Any model** | Anthropic, OpenAI, Ollama — or anything pi-compatible. |
|
|
123
|
+
| 🏢 **Agent companies** | Import pre-built teams — 440+ agents across 16 companies. |
|
|
124
|
+
| 📬 **Inter-agent messaging** | Built-in mailbox between agents. Delegate, clarify, coordinate. |
|
|
125
|
+
| 🗺️ **Missions** | Hierarchical planning with autopilot and validation contracts. |
|
|
126
|
+
| 🔓 **Open source. MIT.** | No vendor lock-in. Run it on your own hardware. |
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## Working from chat
|
|
131
|
+
|
|
132
|
+
Manage tasks without leaving the conversation:
|
|
133
|
+
|
|
134
|
+
> "Every ten minutes, analyze the server code for logic the client hasn't implemented yet and create tasks. Tasks may spawn additional tasks, so just add enough to keep the board saturated."
|
|
135
|
+
|
|
136
|
+
> "Create a Fusion task to fix the login redirect bug"
|
|
137
|
+
|
|
138
|
+
> "Add a task for dark mode support, it depends on FN-003"
|
|
139
|
+
|
|
140
|
+
> "What's the status of FN-042"
|
|
141
|
+
|
|
142
|
+
> "Attach screenshot.png to FN-007"
|
|
143
|
+
|
|
144
|
+
> "Pause FN-012 — I want to add more context first"
|
|
145
|
+
|
|
146
|
+
The pi extension exposes tools to create tasks, check progress, attach files, and pause or resume automation.
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## Standalone CLI
|
|
151
|
+
|
|
152
|
+
Fusion also works as a standalone CLI outside of pi. See [STANDALONE.md](./STANDALONE.md) for installation and usage without the pi extension.
|
|
153
|
+
|
|
154
|
+
## Full documentation
|
|
155
|
+
|
|
156
|
+
Architecture details, development setup, and contributor info live in the [project README](https://github.com/Runfusion/Fusion#readme).
|
|
157
|
+
|
|
158
|
+
## License
|
|
159
|
+
|
|
160
|
+
MIT — see [LICENSE](https://github.com/Runfusion/Fusion/blob/main/LICENSE).
|
|
161
|
+
|
|
162
|
+
<div align="center">
|
|
163
|
+
|
|
164
|
+
**[runfusion.ai →](https://runfusion.ai)**
|
|
165
|
+
|
|
166
|
+
</div>
|