Skip to main content

Official Loom stack showcase: local-first durable chat agent with checkpoint/resume, multi-agent supervisor, MCP tools, and offline traces.

Project description

Loom Stack

loom-run — official Loom stack showcase

PyPI GitHub Loom stack docs Python 3.11+ License: MIT Tests

Official reference product for the Loom stack — not a generic agent framework, but the runnable demo that wires loom-runner + flow-xray into a local-first durable chat agent with multi-agent supervisor.

Keywords: durable agents · checkpoint resume · multi-agent orchestration · MCP tools · local-first · SQLite · inspectable runs · LangGraph alternative (runtime slice)

Showcase hub kroq86.github.io/loom-stack
This repo github.com/kroq86/loom-run
Runtime layer github.com/kroq86/loom-runner
Local traces github.com/kroq86/flow-xray
Ops product github.com/kroq86/loom-ops — runbooks, HITL, incident response
User message  →  coordinator (LLM + tools)  →  loom-runner checkpoint/resume  →  flow-xray --trace
                      ↑ supervise → subagent runs (v0.2)

What this repo is

Role Explanation
Showcase / reference product End-to-end proof that the Loom stack works: CLI, mock LLM (CI-safe), tools, supervisor, E2E tests
Not LangGraph, CrewAI, or a hosted agent platform
Built on loom-runner (durability), loom-tailcalls (loop shape), flow-xray (HTML traces)
Pattern from agents_architecture — coordinator loop only, not full backend

If you want libraries to compose → start with loom-runner.
If you want see it all working in 30 seconds → clone this repo.
If you want incident/deploy runbooks (not dev chat) → loom-ops.

More: Showcase guide · Architecture

Install

From PyPI:

pip install "loom-run[api,openai]"
loom-run chat "explain checkpoint policy" --run-id demo --db runs.sqlite --mock-llm

From source:

git clone https://github.com/kroq86/loom-run.git
cd loom-run
python3.13 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev,api,openai]"

Ecosystem map: loom-stack ECOSYSTEM.md

Demo commands (copy-paste)

Single agent (mock LLM, no API key):

loom-run chat "explain checkpoint policy" --run-id demo --db runs.sqlite --mock-llm
loom-run resume --run-id demo --db runs.sqlite --max-steps 20
loom-run explain --run-id demo --db runs.sqlite
loom-run chat "explain checkpoint policy" --run-id demo2 --db runs.sqlite --mock-llm --trace trace.html

Multi-agent supervisor (v0.2):

loom-run supervise "explain checkpoint policy" --run-id team-demo --db runs.sqlite --mock-llm
loom-run explain --run-id team-demo:sub:researcher --db runs.sqlite

HTTP SSE (optional):

loom-run serve --db runs.sqlite --mock-llm
curl -N -X POST http://127.0.0.1:8765/chat \
  -H 'Content-Type: application/json' \
  -d '{"message":"explain checkpoint policy","run_id":"demo","max_steps":20}'

Tools

Tool Default With MCP
read_file local workspace read rule-based-verifierread_repo_file
search_docs grep *.md in workspace mcp-docs-memorydocs_search
run_tests pytest -q in workspace rule-based-verifier → run_tests
delegate_subagent supervisor → child chat run

MCP config: mcp.servers.example.json · env: docs/ENV.md

Full Loom stack map

Layer Repo Role
Dev showcase (this repo) loom-run Reference chat agent + supervisor
Ops product loom-ops Runbook supervisor (planner / executor / verifier)
Durability loom-runner SQLite checkpoint, resume, idempotent tools
Transitions loom-tailcalls Stack-safe @tailrec driver
Traces flow-xray Offline HTML execution traces
Coordinator reference agents_architecture Production backend patterns
Verification MCP rule-based-verifier Tests, lint, repo read
Docs/memory MCP mcp-docs-memory Semantic docs search

Tests

python -m pytest -q              # 21 tests incl. subprocess E2E
python -m pytest -q tests/test_e2e.py

Docs

License

MIT · kroq86

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

loom_run-0.2.0.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

loom_run-0.2.0-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file loom_run-0.2.0.tar.gz.

File metadata

  • Download URL: loom_run-0.2.0.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for loom_run-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cfa10ffd178b5abeeddc77a54ad41ef5fa70ed2349644b9743ada6375937f991
MD5 0ae8fe423c7bcf7757452ddf0eeb2859
BLAKE2b-256 ce631645734550e36fe0d80b73330742e637055f89f7002c1808cf020f1fbed3

See more details on using hashes here.

File details

Details for the file loom_run-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: loom_run-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for loom_run-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ef44ae1f14920b99af83cf3c6e45626289260994262be625139933654252799
MD5 b2518da829d477f07f67f55995fecffc
BLAKE2b-256 428e30fdc81319108c92824c927e0a6a1df04c6d36ddc4306eb88857e1b59f23

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page