Research case law.
Entirely off the grid.

Writ combines a fine-tuned language model with an encrypted on-device knowledge base — judgments, statutes, curated legal notes — retrieved through hybrid keyword and neural search. No account. No cloud. Queries never leave your machine.

Download for Free View on GitHub
100%Offline
~2.5 GBModel size
3 PlatformsWin / Mac / Linux
0 AccountsRequired

What's inside the framework.

Every architectural decision prioritises privacy, depth, and precision over convenience and cloud dependency.

Fully On-Device

The complete inference pipeline — model loading, retrieval, generation, and re-ranking — runs on your local hardware via Ollama. Nothing is transmitted to any external server. Your research stays yours.

Encrypted Knowledge Base

Judgments, acts, and curated legal notes stored encrypted on-device. No plaintext exposure at rest.

Hybrid Retrieval

BM25 keyword search combined with neural re-ranking surfaces the most relevant passages, not just the most frequent matches.

Vidhi — Fine-tuned on Indian Law

Writ runs Vidhi (Llama 3.2 3B fine-tune), a model trained specifically on Indian legal texts. It understands the structure of judgments, identifies precedents, and reasons about statutory provisions in context.

Persistent Research Sessions

Save and restore multi-turn research sessions. Annotate retrieved passages and build a structured research trail — stored locally.

Clean, Distraction-free UI

A focused interface designed for long-form legal reading. Light and dark modes. No telemetry, no banners, no feature clutter.


How a query becomes an answer.

Four steps from your prompt to a grounded, cited legal response — all on your machine.

01

Query Input

Submit a natural-language legal question or a case-law lookup. No query syntax required.

02

Hybrid Retrieval

BM25 keyword search across the encrypted knowledge base is fused with a neural embedding pass and candidates are scored.

03

Neural Re-rank

A cross-encoder reorders results by semantic relevance, surfacing the most on-point paragraphs from judgments and statutes.

04

Grounded Generation

Vidhi receives the top passages as context and generates a cited, structured response entirely on your hardware.

"The right to access justice should not require trusting a third-party server with the most sensitive details of a legal matter." — Writ, built for privacy-first legal research

Download Writ.

Free for personal, non-commercial use. No account required. Windows, macOS, and Linux.

Windows
Installer — .exe · 64-bit
  1. Download Writ-Setup-1.0.0-Windows.exe
  2. Run the installer and follow the wizard
  3. Install Ollama if not already present
  4. Launch Writ — Vidhi downloads automatically on first run
Download for Windows
macOS
Disk Image — .dmg · Universal
  1. Download Writ-1.0.0-Mac.dmg
  2. Open the disk image, drag Writ.app to Applications
  3. Install Ollama if not already present
  4. Launch from Spotlight — Vidhi downloads automatically
Download for macOS
Linux
Archive — .tar.gz · x86_64
  1. Download Writ-1.0.0-Linux.tar.gz
  2. Extract and run the installer script
  3. Install Ollama if not already present
  4. Launch Writ — Vidhi downloads automatically on first run
$ tar -xzf Writ-1.0.0-Linux.tar.gz
$ cd Writ-1.0.0-Linux && ./install.sh
Installation complete.
Download for Linux

Prerequisites. Writ requires Ollama running locally for model inference. On first launch, the Vidhi model (~2.5 GB) is downloaded automatically. The knowledge base (~1.6 GB) is fetched during installation if not already present.



Personal use, free of charge.

Writ is licensed for personal, non-commercial use. You may install and run the software on your own device for personal legal research. Redistribution, modification, or commercial use requires explicit written permission from the author.

Licensing inquiries →

Want this built properly?

The architecture is proven. If you represent a legal firm, institution, or organisation that needs a production-grade offline legal intelligence system — expanded knowledge base, custom fine-tuning, enterprise deployment — reach out.

Send an enquiry

Open email to prawin@vyapai.tech

Also reaches prawwiin@gmail.com