MCPcopy Create free account
hub / github.com/cosmix/loom

github.com/cosmix/loom @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
4,113 symbols 13,177 edges 481 files ⚖ MIT 1,434 documented · 35% ● updated 1d agov1.3.1 · 2026-10-24★ 663 open issues

Browse by type

⨍ Functions 3,851◇ Types & classes 262
What it actually does AI analysis from the code graph — generated when you open this
loading…
README
<img src="https://github.com/cosmix/loom/raw/main/doc/images/loom-wordmark-black.svg" alt="loom" width="220">

Agentic engineering for the rest of us.

You design the system. Loom builds it, checks every piece, and learns from its mistakes.

Loop engineering is sold as the whole of software development: state a high-level goal, and an agent loops until finished software comes out. It does get there, by brute force, paying in tokens for every wrong turn and rediscovering what an engineer on the team already knew.

Loom is for engineers who would rather spend their own judgment than someone else's compute. You discuss, theorise, test, explore, and plan the system, and put your experience into that plan. Loom implements it with Claude Code (and optionally Codex) sessions running in parallel across isolated git worktrees. It checks every stage's work itself, then checks all of it together in a final integration-verify stage. Along the way it records its own mistakes and distils them into a knowledge base the next plan starts from. You can watch from a terminal dashboard or a browser, steer any session, or take the keyboard at any time.

A loom run in the web dashboard: the plan as a dependency graph, a stage's detail dialog, its live terminal with control taken over, the ledger, the settings, and a stage completing and freeing the stages that depend on it

A real run in loom status --web, sped up: watch a stage's session, take the keyboard, and see a finished stage merge and start the ones that depend on it.

Why Loom

  • Your expertise where it counts, tokens everywhere else — you do the thinking and put it into the plan. Loom executes it unattended and comes back to you only when a stage needs a person; you can monitor, steer, or take over whenever you like. (Human Expertise Where It Matters)
  • Plan in the browser — loom plan is a feature planner: a chat with a planning session writes a feature's vision, product spec, metaplan and plans, and every document opens as a summary you can follow down to its source and settle. (Feature Planner)
  • It learns your project — every session records what it got wrong and what it decided. Each plan ends by distilling that into a knowledge base in your repo, so every plan starts from what the earlier ones learned. (It Learns From Every Plan)
  • Parallel by default — stages form a dependency graph, everything independent runs at once in its own git worktree, and each stage merges back as it finishes. (Parallel execution and progressive merge)
  • Done means verified — loom runs each stage's acceptance criteria itself and inspects the tree for stubs, unwired code, and code nothing calls. The agent's own account of its work does not count. Once every stage has merged, an integration-verify stage reviews and tests the combined work as one system. (Verification Model)
  • Rules enforced by hooks — commit discipline, worktree boundaries, and subagent limits fire from shell hooks, so they hold whatever the model intends. (Deterministic guardrails)
  • Contained by default — sessions run in a filesystem and network sandbox and cannot write loom's own state, hooks, or config. (Sandbox Configuration)
  • Expensive models only where judgment is needed — the orchestrator plans and commits, one loom check is the gate; implementation goes to the cheapest subagent that can do the piece, Claude or Codex. (Model Allocation)
  • Survives crashes and context limits — all state is plain files. The daemon spots dead and hung sessions and retries them, and a handoff is written before a session runs out of context. (Crash recovery and liveness)
  • Watch it live, steer when you want — loom status --live is a dashboard in your terminal. loom status --web is the same run in a browser: the plan as a dependency graph, a ledger of every stage, and terminals you can watch read-only or take over. (Primary Commands, Web Dashboard)

Quick Start

1. Install

curl -fsSL https://raw.githubusercontent.com/cosmix/loom/main/install.sh | bash

You need git, the claude CLI, and jq, plus minisign for release downloads. Signed binaries cover Linux x86_64 and macOS Apple Silicon; every other platform builds from source — see Installation.

2. Write a plan

Plans are how loom knows what to build. You can write one in the browser, with the Feature Planner, or in Claude Code, with the /loom-plan-writer skill.

In the browser. Run loom plan in your project:

cd /path/to/project
loom plan

It opens the Feature Planner, where a chat with a planning session writes a feature's vision, product spec, metaplan and plans. You read each one as a summary that opens down to its source, settle the ones you agree with, then pressure-test a plan and start its run from the same page. The next section shows it in full.

In Claude Code. Open Claude Code in your target project and use the skill to create the plan:

cd /path/to/project
claude  # start Claude Code CLI

Inside the Claude Code session:

  1. Load the plan-writing skill by typing /loom-plan-writer (or just mention that you're writing a loom plan).
  2. Describe what you want to build and discuss with Claude, as you would in plan mode.
  3. When done, Claude will write the plan to doc/plans/PLAN-<name>.md.

However you wrote it, validate the plan file before you spend anything on it:

loom plan verify doc/plans/PLAN-<name>.md

Then read it yourself and check that it captured your intent in enough detail. For longer plans, loom pressure doc/plans/PLAN-<name>.md has two model families (Claude and Codex) review it adversarially and harden it. Without the codex CLI, run /pressure doc/plans/PLAN-<name>.md inside a Claude Code session for a Claude-only pressure test.

3. Run it

loom init doc/plans/PLAN-<name>.md
loom run
loom status --live
loom stop

loom init parses the plan, creates stage state, and installs the project hook wiring. loom run starts the daemon and orchestrator. (The Feature Planner's Run panel does both for you.) loom status --live follows the run in your terminal, and loom status --web puts it in a browser. Add --terminals to watch or take over the Claude Code sessions from the browser. --host <addr> binds the dashboard to an address other than 127.0.0.1; read Web Dashboard Remote Access first, since a non-loopback bind serves plain HTTP.

loom stop stops the daemon, and the orchestrator with it.

Next: the Feature Planner in detail. After it come the two ideas loom is built on, human expertise where it matters and learning from every plan, then How It Works and the Feature Tour, a map of everything below.

Feature Planner

loom plan [--port <PORT>] [--host <HOST>] [--no-open]

loom plan serves a local web app for planning a project. You talk to a Claude Code session in a chat panel, it writes the documents under doc/ in loom's conventions, and you read, question and settle them in the browser. It ends at a reviewed plan, a run, and the follow-up plans the run leaves behind. The files stay plain Markdown that any editor can change, and the app picks up the edits.

The feature planner from a new idea to plans: describing the work on the New work page, the planning session settling it as a feature, then the vision, product spec, metaplan and plans each created with a button; each document opens as a summary whose sentences open to the sentences they rest on and to the source passage, then fold closed; revising a document by attaching a sentence to the chat; and the settings dialog switching the theme from Ledger to Aubergine

One feature from the first description to plans: each document as a summary that opens down to its source and folds back, a revision made by attaching a sentence to the chat, and a theme change in Settings.

Starting it

Run loom plan in a git repository. It prints a URL with an access token and opens it in a browser, unless you pass --no-open, the session is over SSH, or Linux has no display. It binds 127.0.0.1 starting at port 7272 and takes the next free port if that one is busy; --port binds exactly that port, and --host accepts the same values as the dashboard's. One planning server runs per project, and no loom init is needed. The app needs tmux, Claude Code and its login, and on Linux the sandbox prerequisites; without them it starts read-only and says what is missing. Details: Plan Commands.

The home page lists the project's features, each with its progress and what needs you. /new is the kickoff: describe the work, and the session settles whether it is a feature or a standalone plan before it writes anything.

One feature, four documents

A feature lives at /f/<feature>. A spine on the left lists its documents in workflow order and is the only place its progress is drawn:

  1. Vision: what the product is, and which sections its spec needs.
  2. Product spec: one numbered section per topic, under doc/product/<feature>/. A Coverage ledger shows which spec headings the metaplan, plans and stages cover.
  3. Metaplan: one entry per loom plan, in doc/plans/<feature>/index.md.
  4. Plans: the loom plans, plus a Findings ledger for what runs leave open.

Each document opens as a summary, with its source one click away. In a summary, opening a sentence replaces it with the sentences it rests on, and opening one of those shows the source passage; folding closes it again. Nobody has to read every document to form a view, and every claim traces to its text. Summaries are generated, kept in doc/loom/summaries/, and rebuilt when their sources change.

You mark a document settled when you agree with it. The mark is a Settled: line in the file. The spine flags a settled document that was revised, or whose vision row, metaplan entry or upstream section changed since.

The chat

The chat panel is the conversation with a planning session. Loom starts the session in tmux under your Claude Code login, and loom-plan:* skills from plan-plugin/ (vision, section, metaplan, plan, refine, review) give it loom's conventions for the step at hand. Offers on empty pages and the New chat control start one. The panel knows which document you are viewing, attaches a passage or a summary sentence to your next message, shows permission prompts as cards, and lists the files each turn changed with a diff and a Restore. An idle chat shows the background tasks it waits on, and / opens a list of the session's skills and commands with the terminal-only ones disabled and the reason shown. One browser holds the authoring seat at a time; other viewers read.

From plan to run to follow-ups

  1. Pressure test. A written plan's page offers a pressure test, the loom pressure rounds with two model families. Their dated record is appended to the plan's ## Pressure tests section, and the spine shows which plans have one.
  2. Run. The metaplan page, the Plans home, has a Run panel. Start a run does loom init and loom run for the plan (only loom run to resume a stopped one), and Open dashboard links to the Web Dashboard.
  3. Review. When plans have run, loom writes doc/plans/REVIEW-<plan id>.md: spec conformance, open questions and open findings. The review is never edited. "Review the feature" starts a session with loom-plan:review, which records what it finds in the feature's findings ledger, doc/plans/<feature>/findings.md.
  4. Follow-ups. The Findings page groups the ledger by run review. Plan this and Fold into entry send a finding to a session that adds an entry under ## Follow-ups in the metaplan, from which the next plan is written; Dismiss closes it with a reason. A finished feature offers "Plan follow-ups" for the same purpose.

File mode

/files/* browses everything under doc/: product spec, metaplan, plans, briefs, run reviews and the knowledge base. It renders Markdown, searches, diffs against HEAD or a chat turn, and edits plain documents in an editor that validates a plan before saving. Plans that are running or done, knowledge files and the summary store are read-only. A dot marks documents that changed since you last looked.

Planning sessions

Each planning session runs in its own tmux server named loom-plan-<id>, and tmux -L <socket> attach -r watches it read-only. Ctrl-C stops new sessions and waits for running ones to finish writing; a second Ctrl-C exits at once. If the server dies or restarts, messages a session had accepted but not yet confirmed are not replayed into it: they come back as one batch into the composer of the browser that held authoring, so you can read them and decide what to send again (attachments are not carried).

Human Expertise Where It Matters

Writing the plan, in the planner or in Claude Code, is your part of the work. This section is about why it comes first.

Loop engineering presents itself as the end of the story: give an agent a high-level goal, let it try, fail, read th

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 3,325
Method 526
Class 182
Enum 75
Interface 5

Languages

Rust100%
Python1%

Modules by API surface

loom/src/fs/work_dir.rs59 symbols
loom/src/models/stage/methods.rs48 symbols
loom/src/fs/safe_fs.rs42 symbols
loom/src/models/stage/types.rs40 symbols
loom/src/sandbox/settings.rs38 symbols
loom/src/skills/index.rs36 symbols
loom/src/plan/amendment.rs36 symbols
loom/src/commands/self_update/tests.rs36 symbols
loom/tests/integration/hooks_commit_filter.rs34 symbols
loom/tests/integration/plan_verify.rs32 symbols
loom/src/sandbox/config.rs32 symbols
loom/src/fs/plan_lifecycle.rs32 symbols

Datastores touched

myappDatabase · 1 repos

For agents

$ claude mcp add loom \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page