Decentralized Task Sharding & Compute Orchestration Engine.
Loom Protocol is a local-first, peer-to-peer orchestration framework designed to take the "big picture" of large-scale textual data, break it into a puzzle of sharded chunks, distribute those chunks across a mesh of consumer hardware nodes to get work done, and compile them back together into a single, unified record.
Maybe. But maybe we don't.
Instead of relying on massive, centralized supercomputing clouds or expensive server rigs to process complex cognitive tasks, Loom decomposes the workload. By turning any large task into a puzzle, we can distribute the pieces across whatever everyday consumer hardware is already standing by in our homes and offices (laptops, desktops, Raspberry Pis).
The rockstar of the show is transparent compute lineage. Unlike black-box cloud APIs, Loom provides complete cryptographic and relational accountability: every single chunk of data processed contains an immutable record of exactly which physical machine in your network solved that piece of the puzzle, which model drafted it, and when.
Loom is network-agnostic and trust-centric. Whether nodes communicate over local Wi-Fi, private Tailscale VPNs, or private cloud VPCs, the architecture is Local AND (Local Ownership + Network Extension).
This architecture provides a natural Sharded Privacy Shield:
- If a node in your mesh is running a cloud-based API or a third-party server, it only ever receives a single, contextless piece of the puzzle (one shard).
- Without the rest of the puzzle pieces, a third-party company cannot reconstruct the "big picture" of your sensitive documents, code bases, or data libraries.
- The user maintains absolute ownership of the puzzle; the network only gets the pieces it needs to compute.
To prevent commercial exploitation and protect end-users from paying for what we built for free, any service, product, or SaaS platform distributing or hosting the Loom Protocol MUST prominently display the following notification to users on their sign-up, checkout, or download page:
⚠️ Open Source & Free Software Notice: "This service utilizes the Loom Protocol, a decentralized, open-source technology developed by Project PAIE. The Loom Protocol is, and will always be, 100% free open-source software. You can download and run this software for free at https://github.com/ProjectPAIE/LoomProtocol."
Failure to display this notice constitutes a direct violation of the software's license.
Loom operates on a lightweight, zero-dependency peer architecture:
graph TD
A[Loom Hub / Server] -->|1. Shard Chunks| B(In-Memory Queue)
B -->|2. Pull Task| C[Spoke: Mac Studio]
B -->|2. Pull Task| D[Spoke: Windows GPU Node]
C -->|3. Model A Draft + Model B Critique| E[Consensus Resolution]
D -->|3. Model A Draft + Model B Critique| E
E -->|4. Commit Ledger| F[Postgres Lineage / SFT Index]
- The Hub (Coordinator): Orchestrates the document sharded state, manages client heartbeats, and hosts the visualizer dashboard.
- The Spokes (Workers): Zero-config worker nodes that poll the Hub, query local LLM inference engines (via Ollama/llama.cpp), run the draft-and-critique pipeline, and return the resolved consensus payload.
For every single text shard, two models collaborate and debate to refine the final output:
[Japanese Original Text]
│
▼
┌──────────────┐
│ Model A │ ──► Generates Initial English Draft
└──────────────┘
│
▼
┌──────────────┐
│ Model B │ ──► Critiques Draft for Cultural Nuance,
└──────────────┘ Scholarly Footnotes, and Idiomatic Tone
│
▼
┌──────────────┐
│ Consensus │ ──► Refines Draft using Critique & Commits
└──────────────┘ to final ledger (Lineage Traced)
We put Loom to the test by running Natsume Sōseki's classical masterpiece over a local Wi-Fi mesh consisting of 1 Mac Studio and 2 Windows PC GPU Nodes (running 5 worker threads in parallel, utilizing ELYZA:8B and Llama-3.2):
- Original Text:
324,147Japanese Characters - Translated Output:
75,923English Words (with Scholarly Footnotes) - Total Elapsed Time: 1 Hour, 42 Minutes, 55 Seconds
- Average Throughput:
24.7 secondsper completed consensus chunk
- 📁
source/— Raw uncompressed source documents. - 📁
logs/— The complete step-by-step Mixture-of-Agents consensus debate transcript. - 📁
book/— The final compiled Reader's Edition and cover artwork. - 📄
compile_epub.py— Zero-dependency packaging utility to compile the text and cover into a valid.epubbook.
Start the coordinator server on the host machine:
python3 scripts/loom_server.pyOpen http://localhost:5001 to view the real-time node orchestration grid.
Spin up workers on any machine in the network, pointing to the Hub:
python3 scripts/loom_worker.py --server http://<HUB_IP>:5001 --name My_GPU_NodeBuilt with passion for data sovereignty and decentralized AI by Project PAIE.