explaingit

justvugg/judicex

Analysis updated 2026-05-18

0PythonAudience · generalComplexity · 3/5LicenseSetup · moderate

TLDR

A local-first AI workspace for lawyers that drafts documents, analyzes evidence, and answers only from cited sources, keeping client data off the cloud.

Mindmap

mindmap
  root((judicex))
    What it does
      Legal document analysis
      Cited AI answers
      Case workflow checks
    Tech stack
      Python
      Flask
      SQLite
    Use cases
      Legal drafting
      Document review
    Audience
      Lawyers
      Legal teams

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Chat with your local legal document library and get answers cited to specific sources

USE CASE 2

Run structured checks against a case type to see which legal elements are present or missing

USE CASE 3

Draft legal documents in a split-view editor and export them as Word or PDF

USE CASE 4

Keep all client files on your own machine instead of sending them to a cloud AI vendor

What is it built with?

PythonFlaskSQLiteJavaScript

How does it compare?

justvugg/judicex0xhassaan/nn-from-scratch3ks/embedoc
Stars00
LanguagePythonPythonPython
Last pushed2023-06-08
MaintenanceDormant
Setup difficultymoderatemoderatehard
Complexity3/54/51/5
Audiencegeneraldeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 1h+

In alpha, local AI mode avoids sending client data to third-party cloud providers.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice and state changes.

In plain English

Judicex is an open-source workspace for lawyers and legal teams that uses AI to help with legal drafting, document analysis, and case research, while keeping client data entirely on your own machine. The central problem it addresses is that most legal AI tools are closed cloud services, meaning client files are sent to a third-party vendor's servers. Judicex runs locally on a laptop, workstation, or private server inside a law firm, with all data stored in a local database file you control. It supports multiple AI providers, including fully offline local models, or cloud providers like OpenAI and Anthropic, and can also run in a no-AI mode for purely deterministic work. Its distinctive design principle is what it calls an "answer contract": the AI is only allowed to answer questions that are supported by evidence in your local document library. If the evidence is insufficient, it abstains rather than guessing. Every answer cites the specific document it came from. This prevents the hallucination problem that makes generic AI tools risky in legal contexts. In practice, you ingest official legal sources and private matter files into the system. The web interface then lets you chat with those documents, run structured workflow checks against a matter (such as identifying present, partial, or missing elements for a civil case type), draft documents in a split-view editor, extract facts and timelines from uploaded files, and export finished drafts as Word or PDF files. The tech stack is Python with a Flask web interface, SQLite for storage, and vanilla JavaScript on the frontend. It is in alpha and licensed Apache-2.0. The full README is longer than what was provided.

Copy-paste prompts

Prompt 1
Help me set up Judicex to run locally with an offline AI model for legal document review
Prompt 2
Explain how Judicex's answer contract prevents the AI from answering without evidence
Prompt 3
Show me how to ingest legal source documents into Judicex's local database
Prompt 4
Walk me through drafting and exporting a legal document with Judicex's split-view editor

Frequently asked questions

What is judicex?

A local-first AI workspace for lawyers that drafts documents, analyzes evidence, and answers only from cited sources, keeping client data off the cloud.

What language is judicex written in?

Mainly Python. The stack also includes Python, Flask, SQLite.

What license does judicex use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice and state changes.

How hard is judicex to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is judicex for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.