Building LexAegis: How Qwen 3.8 Max Powers an Evidence-Backed Legal AI Assistant on Monad
Building LexAegis: How Qwen 3.8 Max Powers an Evidence-Backed Legal AI Assistant on Monad Building AI that helps professionals make decisions is one challenge. Building AI whose evidence, limitations and human approvals can be inspected is another. For the Monad Metropolis hackathon, I built LexAegis, an AI-assisted legal workspace that combines Qwen 3.8 Max, encrypted document storage,…
Creating LexAegis: How Qwen 3.8 Max Powers an Evidence-Backed Legal AI Assistant on Monad
The goal was to build an AI-assisted legal workspace that separates AI-assisted analysis from evidence verification and human approval. The Monad Metropolis hackathon project, LexAegis, combines Qwen 3.8 Max, encrypted document storage, human-controlled review, and blockchain-based Proof of Review.
Qwen 3.8 Max serves as the reasoning and language component. Integrated through Alibaba Cloud's compatible-mode API, the model receives structured JSON output and native tool calling. LexAegis gives Qwen a constrained workflow rather than unrestricted legal authority.
LexAegis implements four read-only assistant tools:
1. read_sources - retrieves evidence excerpts for the model's responses
2. check_payments - examines payment figures using deterministic code
3. check_evidence - identifies evidence gaps
4. get_status - retrieves application or review status information
The model can request these tools, but the application validates arguments and controls execution. Tools have limits on execution time, provider attempts, and usage. The model cannot use these tools for legal actions like signing agreements or altering confirmed facts.
A test using a fictional employment settlement agreement demonstrated Qwen's ability to detect discrepancies. Qwen identified a £2,000 difference between stated and instaled amounts, incorporating the calculation into its response. The deterministic payment checker confirmed the £2,000 discrepancy, highlighting the importance of combining AI interpretation with deterministic calculations and verification.
LexAegis' conversational interface allows users to ask Aegis to analyze legal matters, retrieve relevant excerpts, and provide evidence-backed responses. The conversational Command Centre was deployed on Railway on October 13, 2026. Privacy is maintained through client-side encrypted storage and an explicit disclosure process before material is sent to Qwen.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.