Case Study · Active Users
JuriSight Agent V3
A matter-centric legal OS with AI grounded in the active case — global navigation plus a matter-scoped workspace for documents, tasks, timeline, research, and chat — shipped as a Tauri desktop app over a Python backend with case-scoped RAG.
- Context
- Personal Product · Early Users
- Role
- Full-Stack & AI Systems Developer
- Timeline
- Nov 2025 – Present
- Focus
- Matter-centric legal OS · Case-scoped AI
Stack
- Python
- FastAPI-style routers
- PostgreSQL
- pgvector RAG
- TypeScript
- React
- Tauri
- Zustand
- REST APIs
The Matter-Centric Challenge
Legal work lives inside matters — documents, tasks, research, and timelines — but many tools scatter those workflows across popups, firm-wide lists, and AI that has no idea which case is active.
JuriSight needed a hybrid workspace: keep global navigation for firm features, while the center panel and assistant stay scoped to the selected matter so AI answers and document work stay grounded in that case.
The Architecture Stack
The backend loads matter metadata and case-scoped document chunks (pgvector metadata.case_id, with FTS/recent-doc fallbacks), indexes uploads into legal_chunks on ingest, and streams chat with an optional case_id so the assistant can use load_case_chat_context().
The Tauri/React client persists the active matter, document scope (matter vs firm), and research scope; AI chat and research enrich queries when a case is selected, with per-matter session storage for conversations.
- Case-aware AI: case_context + case_document_index + RAG retriever case_id filter
- Workspace UX: matter switcher, matter context bar, document/research scope toggles
- Full-screen creation/edit flows (no dialogs) for matters, documents, contracts, compliance, and meetings
- Matter loop: documents (upload/view), tasks CRUD, timeline activity, case edit with activity logging
Workspace UX & Reliability
Creation and edit flows replace the main center panel instead of stacking modals, so legal ops stay in one calm surface. Sidebar noise was cut: Quick Actions removed, billing moved under Settings, and matter context lives in the top bar and case hub.
Uploads tied to a matter are indexed for RAG and logged to the timeline; task and document changes bump timeline refresh so the activity feed stays current.
- Hybrid nav: global left/top chrome + matter-scoped center + matter-scoped AI
- No-popup create/edit shells for a consistent legal OS feel
- Case-scoped RAG over matter documents instead of firm-wide chat guesswork
- Early users on an actively maintained Tauri + Python stack
The Concrete Outcome
Shipped a coherent matter loop — select a case, work documents/tasks/timeline in context, and chat with AI grounded in that matter — for early legal users, with ongoing polish on research empty states and leftover modal cleanup.