Logo Lanfrica

SectumPsempra/agent-juris

Record type:

software
Creator:
Sec
Host:
The Litigation Prep Assistant is an end-to-end, multi-agent AI system built for Kenya (supports any country's legal framework with minor tweaks). Designed for junior lawyers, paralegals, and small law firms, it replaces manual, repetitive litigation prep with an automated, transparent AI pipeline. # Agent Juris - Litigation Prep Assistant > **AI-powered litigation preparation for Kenyan law firms and paralegals.** Litigation Prep Assistant is a multi-agent AI system that transforms raw case input -- text descriptions or uploaded PDFs -- into a structured legal brief. Four sequential agents (Extraction -> Strategy -> Drafting -> QA) process the case and stream their outputs step-by-step to the UI in real time via Server-Sent Events (SSE), giving lawyers and paralegals an interactive, auditable view of the AI's reasoning. --- ## Architecture ```mermaid flowchart TB classDef frontend fill:#000000,stroke:#333,stroke-width:2px,color:#fff classDef backend fill:#026e3f,stroke:#333,stroke-width:2px,color:#fff classDef external fill:#f39c12,stroke:#333,stroke-width:2px,color:#fff classDef database fill:#2980b9,stroke:#333,stroke-width:2px,color:#fff classDef agent fill:#8e44ad,stroke:#333,stroke-width:2px,color:#fff classDef rag fill:#c0392b,stroke:#333,stroke-width:2px,color:#fff subgraph Client_Tier [Client & UI Tier] U((User / Lawyer)) FE[Next.js App Router GCP Cloud Run]:::frontend end subgraph External_Services[Identity & Billing] Clerk[Clerk Auth & Billing UI]:::external end subgraph Backend_Tier [Backend Application Tier - FastAPI on GCP Cloud Run] API_GW[FastAPI REST / API Router]:::backend Auth_MW[Clerk JWT Middleware]:::backend SSE[SSE Streamer Step-by-step updates]:::backend API_GW --> Auth_MW Auth_MW --> SSE end subgraph AI_Pipeline[AI Multi-Agent Orchestration] Orchestrator[Async Pipeline / Orchestrator]:::agent A1[1. Extraction Agent Facts, Entities, Timeline]:::agent A2[2. Strategy Agent Legal Mapping + RAG]:::agent A3[3. Drafting Agent Structured Brief]:::agent A4[4. QA Agent Risk & Hallucination Check]:::agent Orchestrator --> A1 A1 --> A2 A2 --> A3 A3 --> A4 A4 --> Orchestrator end subgraph Data_Tier[Data & RAG Storage] DB[(PostgreSQL Users, Cases, History)]:::database VD[(ChromaDB Vector Store)]:::database RAG_Retriever[RAG …