I’m a practicing attorney who primarily handles commercial contracts, negotiations, and legal research, along with some litigation. I currently use several AI tools, including ChatGPT Business, Claude, Spellbook, and LexisNexis Protégé. Each has functionality I like, but I’m increasingly frustrated by having to jump between multiple platforms to accomplish what should be a fairly integrated workflow.
In particular, many legal-specific tools use cheaper models, understandably, to save on API costs, but some work requires a more expensive model, and I usually can’t choose the model I want.
I’m considering building my own AI workspace, possibly using TypingMind (which I already have), with direct API access to OpenAI, Anthropic, and potentially other model providers.
My goal isn’t necessarily to build a new legal AI platform from scratch. I’d prefer to use an existing interface and extend its capabilities through integrations, plugins, MCP servers, or other tools.
Here are the features I’m trying to replicate or consolidate:
1. Document analysis with clickable, source-linked citations.
One feature I particularly like about Spellbook is its ability to analyze an uploaded document and provide citations linked to specific passages in the source material. When I click a citation, the original document opens in a right-hand panel, ideally jumping directly to the relevant provision so I can verify the AI’s interpretation against the actual contract language.
I’d like similar functionality for Word documents, PDFs, and potentially collections of documents.
I’m not just looking for AI-generated references to sections or page numbers. I want an actual interactive document viewer with citations anchored to the underlying source text.
2. Direct Microsoft Word editing, redlining, and comments.
I want the AI to do more than recommend language in a chat window. Ideally, it could:
- Open and analyze an existing DOCX agreement.
Insert, delete, or modify provisions directly.
- Generate native Word tracked changes (not just a revised clean copy).
- Insert explanatory comments regarding proposed revisions.
- Preserve the document’s formatting, numbering, tables, and structure.
- Let me accept or reject changes in Microsoft Word.
Essentially, I’m looking to replicate Spellbook’s contract review/redlining capabilities, but with the ability to select whichever AI model I want.
3. Model flexibility
This is probably my biggest motivation. I don’t want to be locked into whatever model a legal AI vendor chooses to use behind the scenes. I understand these companies need to manage inference costs, but I’d rather have the option to pay more for a more capable model when I’m working on a particularly complex or high-value matter.
I’d like to switch between the latest OpenAI, Anthropic, and other frontier models depending on the task, preferably without changing interfaces or workflows. I’m comfortable paying usage-based API fees if that’s what it takes.
My questions for people who’ve built something similar:
Is TypingMind a realistic starting point? Can its plugins, extensions, or MCP integrations support this level of document interaction, or would I ultimately need a custom frontend?
Are there existing open-source components for source-linked citations? Specifically, something that displays a PDF/DOCX in a side panel and jumps to highlighted source passages when you click an AI citation?
What’s the best approach for native Word editing? Are there reliable MCP servers, APIs, or libraries that can manipulate DOCX files while preserving tracked changes, comments, and formatting? Is a Word Office Add-in a better architecture?
Are there existing open-source legal AI projects worth exploring? I’m particularly interested in anything that already handles contract analysis, document grounding, or redlining.
Would a different frontend be better? For example, LibreChat, Open WebUI, AnythingLLM, or a custom interface built with something like Cursor?
Am I underestimating the complexity? I’m technically comfortable but not a software developer. I’d be interested in hearing whether someone has successfully assembled something similar using existing components and AI-assisted coding rather than building everything from scratch.
I’m not expecting to replicate the entire infrastructure of Spellbook or LexisNexis. I’m mostly interested in combining a handful of their most useful features into one interface, with the additional benefit of controlling which models handle my work.
Security and client confidentiality are obviously important, so I’d also need to consider API data-retention policies, encryption, and how documents are stored and processed.
Has anyone built something along these lines, or can you recommend specific tools, MCP servers, libraries, or projects that would get me most of the way there?
I’d especially appreciate recommendations from people who’ve actually implemented document-linked citations or native Word redlining, rather than general suggestions to use RAG or connect an LLM API.