Lavern · Explore
v0.15.0 · Apache 2.0 · multi-agent legal system

What is in this repository

Lavern (codename The Shem) is a multi-agent legal design system. 67 prompted specialists debate findings, three layers of verification fail closed, human gates pause critical calls. Runs on Anthropic, Mistral (EU), or fully local via Ollama.

Start here

Architecture →

Engine, orchestrator, MCP layer, dashboard, Clawern, marketing site.

The cast

67 Agents →

Specialists, orchestrators, leadership. How they are organised.

How they think

Prompts →

Structure of an agent prompt, with two short excerpts.

How they collaborate

21 MCP Tools →

Debate board, scoring, verification, memory, knowledge base.

Pipelines

9 Workflows →

Counsel, Review, Adversarial, Roundtable, Full Bench, more.

What they remember

Knowledge Base →

FTS5 retrieval, hybrid re-rank, five seeded legal corpora.

Stack

Tech & Deps →

TypeScript, Fastify, React 19, SQLite, Claude Agent SDK.

Deeper

Topics the seven pages above touch but don't fully unpack. Each one is its own page; the nav at the top stays focused on the core surface area.

Outbound integration

MCP Remote Bridge →

JSON-RPC 2.0 surface, pinned Counsel allowlist, for Anthropic Managed Agents.

Privacy-preserving review

Hybrid Pipeline →

Local triage → reversible anonymisation → frontier escalation → merge.

Law firm on retainer

Clawern →

Lighthouse architecture, precedent board, multi-client, Telegram, daemon, menu bar.

Fail-closed integrity

Verification →

Grounding string-match, 10-pass invariants, debate resolution, audit bundle.

Firm personality

Lavern's Soul →

SOUL.md as the firm-level voice, injected into every agent prompt.

Talk to your law firm

Voice Dispatch →

Mobile-first voice command interface for Clawern.

We will beat your lawyer

The Lavern Challenge →

Blind, dimensioned, head-to-head document comparison.

Roll your own specialist

Agent Builder →

NBA2K-style wizard: Identity, Face, Stats. OVR drives cost tier.

Local-first delivery

Cowork Folder →

File System Access API: read source, write deliverable, no upload round-trip.

Migration research

Lavern → Azure →

Container Apps, Postgres + pgvector, Blob, Service Bus, Entra ID. Clawern stays local.

Platform fit decision

Clawern on Windows →

Thin uploader + server beats the local daemon — which never ran on Windows anyway.

One-paragraph summary

The backend is a TypeScript service built on the Claude Agent SDK and Fastify. Agents are .ts files exporting a system prompt. They coordinate through 21 MCP tools — a shared debate board, scoring engine, verification pipeline, and a precedent board that persists findings across engagements. A React 19 dashboard (viz/) streams events over WebSocket. A separate Clawern pipeline (src/claw/) runs autonomously against a folder. A static marketing site lives in site/.