loom

command module
v0.1.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 5 Imported by: 0

README

CI Coverage Go Version

Important Note from Loom's co-creator, Jordan Hubbard:

  • Loom's first prompts may have come from me, but its own name as well as its story below is all written by Loom itself. Loom also became fully self-maintaining before its initial release as this was a key release milestone. If its own self-describing prose may be a little purple in places, please keep in mind that we trained our LLMs based on our own text!

Loom

"From a single thread of an idea, we weave complete software."

Autonomous AI Agent Orchestration Platform

The Story of Loom

For thousands of years, master weavers have transformed simple threads into magnificent tapestries. They didn't work alone—apprentices prepared threads, dyers created colors, designers planned patterns. Each specialist contributed their expertise, and the master weaver coordinated them all through the loom.

Software development follows the same ancient pattern. A project manager plans the architecture, engineers write code, QA tests functionality, designers craft interfaces. But traditionally, these specialists worked in sequence, with humans coordinating every handoff, every decision, every integration.

Loom changes this.

Just as a master weaver operates a loom to coordinate multiple threads into unified fabric, Loom orchestrates multiple AI agents—each with specialized expertise—to weave complete software from a simple Product Requirements Document (PRD). You provide the thread of an idea. Loom weaves it into reality.

Give Loom a PRD, and watch as:

  • A Project Manager expands your requirements with best practices
  • An Engineering Manager builds the core architecture
  • QA Engineers write comprehensive tests
  • DevOps Engineers configure infrastructure
  • Designers craft the user interface
  • A Code Reviewer ensures quality throughout

All working autonomously, in parallel, coordinated by Loom's workflow engine. From PRD to working MVP in hours, not weeks.

This is the craft of software, elevated by the ancient wisdom of the loom.


Quick Start

New to Loom? See QUICKSTART.md to get running in 10 minutes: start the server, connect to TokenHub, add your first project, and file beads from the CEO dashboard.

UI Ports

Once Loom is running, access the various interfaces:


What is Loom?

Loom is a lightweight AI coding agent orchestration system that manages workflows, handles agent lifecycle, and provides real-time event streaming for monitoring and coordination.

Core Capabilities:

  • 🚀 Project Bootstrap: Create complete projects from a PRD

    • Autonomous PRD expansion with best practices
    • Automatic epic and story breakdown
    • Agent work assignment and orchestration
    • CEO review and approval workflows
  • 🤖 Multi-Agent Orchestration: Specialized AI agents working in harmony

    • Project Managers, Engineers, QA, DevOps, Designers
    • Parallel task execution with dependency management
    • Autonomous decision-making within defined guardrails
  • 🔄 Workflow Engine: Temporal-based reliable execution

    • Durable workflows that survive failures
    • Complex multi-step processes
    • Human-in-the-loop approval gates
  • 📊 Git-Backed Issue Tracking: Beads system for persistent work tracking

    • Issues survive context compaction
    • Dependency tracking (blockers, blocked-by)
    • Cross-session context recovery
  • 🎯 Intelligent Routing: Smart work assignment

    • Role-based bead matching
    • Workflow-based task progression
    • Priority and tag-based filtering
    • LLM routing delegated to TokenHub

Documentation

Full documentation is available at jordanhubbard.github.io/loom or via the built-in docs browser at /api/v1/docs.

Start here: Quick Start -- Get running in 10 minutes

Guide Audience Content
User Guide End users Dashboard, projects, beads, agents, workflows, decisions
Admin Guide Operators Configuration, TokenHub integration, deployment, security, observability
Developer Guide Contributors Architecture, API, microservices, agent actions, plugins
Reference All API endpoints, entities, config options

Build documentation locally:

make docs-serve   # http://localhost:8000

Features

  • 🤖 Agent Orchestration: Spawn and manage AI agents with different personas
  • 🔄 Workflow Management: Temporal-based workflow orchestration for reliable task execution
  • 📊 Work Graph: Track dependencies and relationships between work items (beads)
  • 🔐 Decision Framework: Approval workflows for agent decisions
  • 🔏 API Auth & RBAC: JWT bearer tokens, API keys, and role-based permissions
  • 📡 Real-time Events: Server-Sent Events (SSE) for live status updates
  • 🔔 Activity Feed & Notifications: Team activity tracking with intelligent user notifications
  • 🎯 Smart Routing: Intelligent task assignment and agent coordination; LLM routing via TokenHub
  • 🔒 Secure: Encrypted secret storage and secure credential management
  • 📈 Analytics & Cost Tracking: Real-time usage monitoring, cost tracking, and spending alerts
  • 🔍 Usage Pattern Analysis: Multi-dimensional pattern clustering, anomaly detection, and cost optimization recommendations
  • 🔁 Multi-Turn Action Loop: Agents iterate with LLM feedback — read, write, search, and close beads autonomously
  • 💬 Pair-Programming Mode: Interactive real-time chat with agents scoped to specific beads
  • TokenHub Integration: Single LLM provider — all model routing, failover, and provider management delegated to TokenHub
  • 📊 OpenTelemetry Observability: Full-stack observability with distributed tracing, metrics, and visualization
    • Jaeger for distributed tracing with span-level detail
    • Prometheus for metrics collection and alerting
    • Grafana for dashboards and visualization
    • Custom metrics for agents, dispatch, and workflows

Default Personas

Default personas are available under ./personas/:

  • personas/loom — Loom-specific system persona(s)
  • personas/default/ceo — Human CEO decision maker (tie-breaks / approvals)
  • personas/default/project-manager — Plans work, files beads, drives delivery
  • personas/default/product-manager — Identifies feature gaps and writes PRDs for epics
  • personas/default/engineering-manager — Reviews technical direction and feasibility
  • personas/default/code-reviewer — Reviews patches for correctness and quality
  • personas/default/qa-engineer — Testing strategy and verification
  • personas/default/devops-engineer — Deployment/ops and infrastructure guidance
  • personas/default/documentation-manager — Keeps docs accurate per doc policy
  • personas/default/decision-maker — Resolves routine decisions (non-CEO)
  • personas/default/web-designer — UX/UI guidance
  • `person ... (truncated)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
cmd
connectors-service command
Package main implements the connectors service for Loom.
Package main implements the connectors service for Loom.
loom command
loomctl command
yaml-lint command
examples
worker_demo command
internal
api
beads
DEPRECATED: This file is deprecated in favor of git_coordinator.go Git-based federation replaces Dolt for multi-instance coordination Will be removed in next release
DEPRECATED: This file is deprecated in favor of git_coordinator.go Git-based federation replaces Dolt for multi-instance coordination Will be removed in next release
cimon
Package cimon periodically checks GitHub Actions CI/CD status for all projects and files P0 beads when workflows are failing on the default branch.
Package cimon periodically checks GitHub Actions CI/CD status for all projects and files P0 beads when workflows are failing on the default branch.
connectors
Package connectors provides the gRPC ConnectorsService implementation.
Package connectors provides the gRPC ConnectorsService implementation.
dispatch
Package dispatch is PARKED.
Package dispatch is PARKED.
git
github
Package github wraps the gh CLI to provide GitHub API access without additional dependencies.
Package github wraps the gh CLI to provide GitHub API access without additional dependencies.
healthwatchdog
Package healthwatchdog implements a proactive health monitoring system for Loom.
Package healthwatchdog implements a proactive health monitoring system for Loom.
lsp
provider
Package provider implements provider management and health monitoring.
Package provider implements provider management and health monitoring.
ralph
Package ralph implements the Ralph Loop — the relentless work-draining maintenance engine that runs on a 10-second ticker.
Package ralph implements the Ralph Loop — the relentless work-draining maintenance engine that runs on a 10-second ticker.
rpc
Package rpc provides the canonical NATS request/reply RPC mechanism for all internal Loom service-to-service communication.
Package rpc provides the canonical NATS request/reply RPC mechanism for all internal Loom service-to-service communication.
statusboard
Package statusboard provides a simple status board where agents post meeting notes, status reports, and announcements visible to the CEO and UI.
Package statusboard provides a simple status board where agents post meeting notes, status reports, and announcements visible to the CEO and UI.
taskexecutor
Package taskexecutor provides a direct bead execution engine that uses named agents from the WorkerManager.
Package taskexecutor provides a direct bead execution engine that uses named agents from the WorkerManager.
pkg
connectors
Package connectors provides a plugin-like architecture for external service integrations.
Package connectors provides a plugin-like architecture for external service integrations.
paths
Package paths provides centralized path management for Loom This ensures consistent path handling across the codebase
Package paths provides centralized path management for Loom This ensures consistent path handling across the codebase
plugin
Package plugin provides the provider plugin interface for Loom.
Package plugin provides the provider plugin interface for Loom.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL