SuperAPI AI Directory

loomcycle

Agent runtime sidecar that packages a hardened agent loop, multi-provider model support, and MCP connectivity into one Go binary that runs alongside an application.

Open website

About this tool

Purpose

loomcycle is a self-hostable agent system runtime substrate, positioned as an agent runtime sidecar: it runs alongside an application as a single Go binary, responsible for hosting capabilities such as the agent loop, model routing, memory and document subsystems, and multi-agent collaboration. It is officially described as "the place where agents live, talk, and learn."

Main Capabilities

  • Single-binary delivery: A Go binary of about 80 MB, with the components needed for agent operation built in.
  • Multi-provider model support: Built-in routing capability for six LLM providers.
  • MCP native: Supports MCP connections, with MCP server identity.
  • Agent memory: Agent memory with bi-temporal validity and subject-document identity; supports scoped SQL memory.
  • Document storage: Stores documents and derives search units for each document.
  • Decision tool: Outputs typed probabilistic results (such as single choice, yes/no, scale position) rather than plain text.
  • Teams primitive: Used for multi-agent state machine workflows.
  • Context retention modes: Three context retention modes, with a Recall tool for evicted fragments.
  • Tool use framework: Enables even small local models to call tools, officially reported at a 10/10 success rate.
  • Built-in development toolchain: Python, Go, Rust, Node, git, gh, curl, jq, sqlite3, and headless Chromium with a per-run temporary volume.
  • Visual canvas LoomBoard: Used to build and debug workflows.
  • Multi-replica high availability: Postgres-based multi-replica HA, with OpenTelemetry support.
  • Snapshots: Can package an entire deployment into a single archive.

Usage

Applications can call loomcycle via HTTP, gRPC, MCP, the TypeScript adapter, or the Python adapter. The agent loop, multi-provider routing, memory and document subsystems, Decision tool, Teams, MCP server identity, OpenTelemetry tracing, and multi-replica coordination all reside within that binary, and applications can keep their existing language.

Two operating postures are provided, using the same binary and the same configuration schema, selected by the operator via environment variables:

  • Sandbox posture: Runs as a managed sandbox.
  • Full agent development environment posture.

The trust boundary is operator / caller: operator configuration is the floor, and callers can narrow permissions per request but cannot widen them. Anyone holding the bearer token (LOOMCYCLE_AUTH_TOKEN) should be considered fully trusted. If true isolation is needed, loomcycle should be run in a container or VM; although Bash has restrictions (cwd, env scrub, output bounds, timeout), it is not a kernel-level sandbox.

Quick Start

init --with-token will print the Web UI address (http://127.0.0.1:8787/ui)。打开后,在登录提示处粘贴来自 the token in ~/.config/loomcycle/auth.env. The token is stored in a 0600 file and is not embedded in the URL. Both loomcycle and loomcycle doctor automatically load auth.env from the configuration directory; explicitly exporting LOOMCYCLE_AUTH_TOKEN=… always overrides it.

Bootstrap tiers

  • Tier 1: Zero-config development (open mode, localhost): No token, no arguments, runs only on 127.0.0.1, and whoami returns a synthetic admin. Never expose it beyond localhost.
  • Tier 2: Single shared token (recommended default): One bearer controls everything,init --with-token for a convenient way.
  • Tier 3: Multi-tenant, per-subject token (RFC L, v0.17.0): Mints an independent bearer for each developer/application, bound to the authoritative (tenant, subject, scopes). The first admin OperatorTokenDef disables the old shared token fallback. Supports per-route HTTP scope and per-RPC gRPC scope, and the Web UI becomes role-aware (super-admin vs tenant).

Building from source (for development)

The material provides instructions for "Build from a checkout (for development)", but does not give the specific command content.

Multi-replica cluster demo (v0.12.x)

Provides a one-command docker compose up cluster (2 loomcycle replicas, Postgres, nginx LB) and a verification script, see examples/cluster/README.md; for the complete operations manual see docs/MULTI-REPLICA.md.

Applicable scenarios

  • Teams that need self-hosting and control over the agent loop and data foundation.
  • Scenarios that need multi-agent state machine workflows (Teams).
  • Scenarios that need decision models with probabilistic output (Decision).
  • Scenarios that need agent memory and document retrieval.
  • Scenarios that need multi-replica high-availability deployment on Postgres.
  • Scenarios that need integration into existing tech stacks via HTTP/gRPC/MCP or TS/Python adapters.

Limitations and caveats

  • The Bash restriction is not a kernel-level sandbox; true isolation requires a container or VM.
  • Anyone holding a bearer token is considered fully trusted.
  • Tier 1 open mode is limited to localhost and must never be exposed externally.
  • The material does not provide specific pricing or cost information.
  • The material does not provide complete installation command details (it only mentions distribution forms such as Homebrew, multi-architecture Docker, Claude Code plugin, TS + Python adapters, TrueNAS app, etc.).

Version and status

loomcycle has passed v1.0 (currently v1.111), is feature-complete, hardened, and ready for distribution. It has been validated through two months of continuous production operation at JobEmber.ai, using Postgres multi-replica HA under real user load. Development after v1.0 consists of new primitives and hardening. It is licensed under Apache-2.0. Recent versions (v1.101–v1.112) involve capabilities such as snapshots carrying the entire deployment, team decisions, traceless runs (retention: "none"), multi-tenant authentication, token expiration and rate limiting, sub-agents, and team walk.hardened and ready for distribution. It has been validated through two months of continuous production operation at JobEmber.ai, using Postgres multi-replica HA under real user load. Development after v1.0 consists of new primitives and hardening. It is licensed under Apache-2.0. Recent versions (v1.101–v1.112) involve capabilities such as snapshots carrying the entire deployment, team decisions, traceless runs (retention: "none"), multi-tenant authentication, token expiration and rate limiting, sub-agents, and team walk.