-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Lucius Morningstar edited this page Aug 8, 2026
·
2 revisions
Welcome to the Mailroom wiki.
Mailroom is a multi-agent pipeline that ingests high-volume legal documents, classifies them, routes them to specialist agents for extraction, compiles the results into a matter record, and archives everything with a full, tamper-evident audit trail.
v1 targets pilot scale (dozens of documents/day), organized by case/matter, running on OpenRouter with a clear path to fully local inference.
- Auditability over cleverness — Every classification, extraction, and routing decision must be traceable.
- Explicit over emergent — Orchestration is a defined LangGraph state machine.
-
Human-legible state — Filesystem bins mean anyone can
lsa folder and understand where a document is. - Provider-agnostic LLM layer — OpenRouter today, local models later with one config change.
- Redundant record-keeping — The audit trail does not depend on any single tool staying alive.
| Page | Description |
|---|---|
| Home | This page |
| Getting Started | Installation and first run |
| Architecture | Full architectural overview |
| Configuration | Config reference and environment variables |
| Agents | Agent specifications and personalities |
| API Reference | Complete API endpoint documentation |
| Deployment | Production deployment guide |
| Local Model Cutover | Switching to local LLMs |
| Development | Development and testing guide |
| FAQ | Frequently asked questions |
Upload/Drop --> /pipeline/inbox/ --> [Watcher] --> LangGraph run per document
|
Sorter --> Specialist --> Reporter --> Catalog --> Archivist
|
Boss (escalation) Human Review Audit Log
11 LangGraph nodes in a Postgres-checkpointed state machine. One graph per document, resumable across crashes.
docker compose -f docker/docker-compose.yml up -d postgres clickhouse langfuse-server
cp .env.example .env
pip install -e ".[dev]"
python pipeline/watcher.py &
python api/main.py &
curl -X POST http://localhost:8000/upload -F "file=@tests/fixtures/contract/sample_msa.txt" -F "matter_id=MATTER-001"Mailroom — Multi-Agent Legal Document Processing Pipeline. Built with LangGraph, OpenRouter, and Postgres.