Mace-legal/mike
Adds redline-aware document extraction for DOCX tracked changes and PDF color annotations
Mace-legal/mike extends the base extraction pipeline to surface redlines directly in the assistant context. DOCX tracked-change markers and PDF color-annotated segments are both parsed and inserted as inline markers rather than silently stripped. The primary goal is giving the assistant visibility into both what has changed in a document and its current state.
What's in it
- Tracked changes awareness Word documents come in with their tracked edits intact, so the AI can reason about what's being proposed, not just the final text.
- Margin comments in scope Reviewer comments attached to a Word doc are surfaced alongside the body, giving the assistant the full negotiation thread.
- Colour-coded PDF redlines PDFs marked up with coloured redlines are parsed as redlines - not as flat text with mysterious highlights.
Direction
contract-reviewdrafting
Activity
Threads of work (detailed view)
Mace-legal teaches Mike to read redlines
The fork now understands tracked changes and reviewer comments instead of flattening them into noise.
Redline-aware extraction: DOCX tracked changes and PDF color annotations surfaced as inline markers
JonasBoury added end-to-end support for preserving review markup through the document ingest pipeline. DOCX tracked changes and reviewer comments now arrive at the LLM as inline markers rather than getting flattened; PDFs with color-based redlines (Litera/Workshare style) get a PyMuPDF extractor, with the existing pdfjs path kept as fallback.
Document extraction now preserves tracked changes and comments instead of flattening them
JonasBoury landed a change that stops the ingest pipeline from silently discarding review markup. DOCX tracked changes and comment bubbles now come through as readable inline markers, and PDFs with color-coded annotations get an optional PyMuPDF extractor backed by pdfjs fallback.
Pull requests (detailed view)
✅ Merged (1)
JonasBoury · opened 2mo ago · merged 2mo ago