Mike: The Open-Source Legal AI That Writes Redlines, Not Just Drafts

An inside look at the document engine, multi-model orchestration, and citation system that make this platform feel built for lawyers instead of demo users.

9 min read View on GitHub More from willchen96

A lawyer's desk where a document is being revised in two forms at once. One side shows AI-generated text spilling from a terminal, while the other shows a Word document with visible insertions and deletions stitched into the page. It explains that the product's real output is not a chat answer but a reviewable redline.
Mike is interesting because it tries to land inside the existing legal review workflow instead of asking lawyers to adopt a new one.
Key Takeaways

Why Redlines Are the Real Product

Most legal AI tools stop at a draft, a summary, or a chat response. Mike aims at the part that actually gets reviewed: the redline. That is a meaningful shift, because lawyers do not just need text that sounds right. They need changes they can accept, reject, and audit in the same surface they already trust.

That makes the product feel less like a chatbot and more like a document system. The goal is not to replace Word. It is to make AI behave like a careful collaborator inside Word's rules.

What Mike Actually Does

The repo centers on legal document workflows such as credit agreement analysis, CP checklist generation, and tabular review across many files. Those are not generic assistant tasks. They are the routines of transaction work, where the value is in extracting, comparing, and editing structure.

CapabilityMikeTypical legal chatbot
OutputTracked changes in .docx and structured review tablesPlain chat answers or draft text
WorkflowFits document review and revisionStops at generation
EvidenceVerbatim citations and page referencesOften lightweight or implicit
ModelingMulti-LLM orchestrationUsually one model path
FocusDocument operationsConversation

The interesting thing is not that Mike writes text. It is that it rewrites the document structure Word expects to see.

The Hidden Trick: Writing Real Word Redlines

This is the technical center of gravity. Mike manipulates the underlying `.docx` package instead of overwriting content like a normal text generator. In practice, that means editing the XML inside the file and inserting tracked-change tags such as `` and `` so Word can render revisions natively.

<w:ins w:author="Mike" w:date="2024-04-01T12:00:00Z">
  <w:r><w:t>inserted language</w:t></w:r>
</w:ins>
<w:del w:author="Mike" w:date="2024-04-01T12:00:00Z">
  <w:r><w:delText>deleted language</w:delText></w:r>
</w:del>
A close-up view of a .docx file opened like a layered mechanical device. Inside, XML tags, a diff engine, and output paths for insertions and deletions are connected by a thread to the final Word document. It explains how tracked changes are built from document structure rather than faked in the interface.
The real trick is structural. Mike turns file internals into legal-grade revision marks.

How Mike Chooses and Routes Models

The backend is not married to a single model. It uses a tiered strategy, with stronger models for interactive work and cheaper ones for background tasks like lightweight generation. That is a sensible move for an open-source legal tool, where cost and latency matter as much as quality.

Just as important, the tool layer normalizes provider differences. The repo includes an adapter that maps a single tool schema into the shapes Claude and Gemini expect. That lets the product switch providers without rewriting the higher-level workflow.

LayerRoleWhy it matters
Main modelsInteractive drafting and analysisQuality where the user feels it
Mid modelsDocument extraction and structured reviewGood enough for repetitive work
Low modelsBackground chores like titlesKeeps costs down
Tool adapterNormalizes provider schemaPrevents vendor-specific logic from spreading

Why Citations Matter More Than Fluency

Legal AI lives or dies on traceability. Mike's system prompt pushes the assistant to return citations as verbatim evidence with page references, which changes the standard from plausible to inspectable. That is the right bar for a legal workflow.

Tabular Review Is the Second Big Bet

Mike is not only about drafting. Its tabular review workflow extracts fields across many documents and presents them in a spreadsheet-like interface. That matters because legal work is often a search for the same clause, fee, or date across a pile of similar contracts.

This complements redlining neatly. One surface edits a single document. The other turns a document set into a dataset. Together they cover two of the hardest parts of transactional review.

WorkflowBest forOutput shape
RedliningSingle-document revisionTracked changes in Word
Tabular reviewMulti-document comparisonStructured table
ChatAd hoc questionsNatural language reply

Mike vs. the Legal AI Market

ProductStrengthGap Mike fills
HarveyEnterprise legal AI with strong brand trustMike is open source and document-native
CoCounselBroad legal workflow maturityMike is more transparent and customizable
IroncladCLM and contract operationsMike focuses on generative editing and review
DocassembleOpen-source legal automationMike adds generative AI and redline mechanics

What the Project Reveals About Open-Source Legal AI

Mike suggests that the real contest in legal AI is not who can sound smartest in a chat window. It is who can fit into a high-trust workflow without breaking auditability, format, or habit. That is a harder engineering problem, and a more interesting one.

The repo also hints at a practical open-source strategy. Use multiple models, keep the tool layer portable, support BYOK economics, and put the output where users already work. In legal tech, that combination may be more valuable than a better prompt.