← Back to Projects

⚖️ Peanuts · Litigation Intelligence Platform

Date: January 2025 – Present

By: Aidan Lynde

View Skills

Peanuts is a class action litigation screener and intelligence platform. The system ingests federal court case filings, screens complaints to determine class action viability using PDF parsing and LLM analysis, and enriches confirmed cases with structured legal facts, entity data, taxonomy, and analytics — surfacing actionable intelligence for legal teams and researchers.

The core engineering challenge is a multi-stage gated data pipeline. At Stage 1, cases are discovered from federal court sources via three ingestion lanes. Stage 2 uses Claude Haiku to classify complaints — at high-confidence thresholds, cases auto-chain through to extraction; lower-confidence cases are held for human review. Stage 3 extracts structured legal facts from the complaint PDFs. Stage 4 normalizes those facts against a taxonomy system. Stage 5 runs deeper intelligence scoring using Claude Sonnet and Opus.

The architecture follows an 8-silo data model — canonical cases, provenance, documents, extraction results, structured legal facts, entities, taxonomy assignments, and analytics — all connected via case ID and managed with SQLAlchemy 2.x async on PostgreSQL. Pipeline orchestration runs on Prefect with concurrency semaphores per stage to control LLM API costs.

The frontend is a Next.js analytics dashboard with role-based access (admin, analyst, reviewer, viewer), a human review queue for borderline cases, taxonomy management, and an alert system for flagging new filings that match saved criteria. The full stack is containerized and deployed on Railway.

Peanuts is an active build — the pipeline is functional and the core intelligence loop is running. This is a private project; the repository is not publicly available.