Skip to content
Loom
Esc
↑↓navigate↵open⌘Jpreview
On this page

Introduction

Loom is a kit of chat, tool and approval components for AI agents, installed into your app as source.

Loom gives an agent a place in your product: the conversation, the tool calls it makes, the approvals and questions it asks, and the layouts that put it beside your own UI. The components install as files in your project through the shadcn CLI, so you own them and can change anything.

Loom works with eve. One hook, useLoomEve, connects every component to an eve agent.

"use client";

import { LoomThread } from "@/components/loom/thread";
import { useLoomEve } from "@/lib/loom/eve";

export function Support() {
  const chat = useLoomEve({ agent: "support" });
  return <LoomThread chat={chat} />;
}

What’s in the kit

  • Thread: a whole conversation from one hook, with a header, messages, live activity and the composer.
  • Messages: streamed Markdown replies, reasoning, files, and every tool call and interaction inline.
  • Tool cards: each call’s state, its input as it streams, and its result or error. Swap in your own UI for any tool.
  • Interactions: approvals, questions, free-text answers and sign-ins, answered in place.
  • Composer: attachments, sending while the agent works, stop, and recall of the last message.
  • Layouts: a side panel, a floating widget, an inline card, and a full page.
  • Theme: one set of loom-* tokens for color, radius, shadow and motion, in light and dark.

How it fits together

Every component renders plain data: a LoomChat with the conversation and the commands to change it. useLoomEve builds that from eve, and it is the only file in the kit that imports eve. Components never talk to an agent directly, which keeps them easy to preview, test, and drive from anything else.