LexVerse: A Unified Practice Platform Where Legal Agents Learn, Act, and Are Evaluated
✨ Nine Chinese legal benchmarks integrated at once; a single command completes the evaluation, returns comparable results, and leaves a full trace of every run.
✨ Knowledge, Skills, and external services are called on demand, so agents do more than "know the law" — they "work the way legal professionals do."
✨ One configuration file plus one set of materials defines a custom legal task, runnable locally or in a sandbox with controllable network permissions and access scope.
Project status: the code has been open-sourced and released. More benchmarks, long-horizon tasks, and a continuous update mechanism are still under construction.
Legal agents are moving from "being able to answer legal questions correctly" toward "being able to complete complex legal tasks autonomously." Given a set of case files, a contract to review, or a dispute that needs to be argued, an agent has to read the relevant materials, locate the authorities, check the facts, use tools, and adjust its analysis in light of what it finds, finally delivering a finished work product — a legal document, an evidence list, or a set of search results. Whether this work gets done depends not only on model capability but also on the environment in which the task is completed: what materials the model can see, what knowledge and tools it uses, under what rules it acts, and how it judges whether the work is finished.
Yet existing legal-agent research and engineering practice still lack a shared "infrastructure" that is easy to reuse. Legal benchmarks differ markedly in data organization, interaction flow, and evaluation method, so researchers often have to repeat the adaptation work; agent execution frameworks are tightly bound to specific tasks, which limits cross-framework comparison and migration; and the materials and real needs in users' hands are difficult to bring directly into existing evaluation systems.
To address this, our group, together with the Institute of Intelligent Rule of Law at Tsinghua University, Northeastern University, and other research teams, has open-sourced LexVerse, an interactive environment for legal agents. LexVerse is an open-source, integrated framework for legal agents that spans task environments, agent execution, legal resources, and result evaluation, allowing legal agents to learn, act, and be examined within a single system. It supports three ways of working: evaluating agents on existing legal benchmarks, augmenting agents with knowledge, skills, and external services, and extending or customizing new tasks based on users' individual needs.
LexVerse overall framework
Highlight 1: An Integrated Framework for Legal Benchmarks
In recent years legal AI benchmarks have proliferated, but their data formats, run procedures, and scoring methods all differ, so every switch to a new benchmark tends to require fresh adaptation. Most of these benchmarks are also static question-answering sets designed for "models answering questions," and give little thought to how an agent reads materials, calls tools, retrieves legal knowledge, and advances over multiple turns within a task. What LexVerse does is bring scattered legal benchmarks into one framework and uniformly turn them into task environments an agent can run: integrate once, run uniformly, and evaluate both models and agents.
Nine Chinese legal benchmarks are currently integrated: LexEval, LawBench, J1Bench, PLawBench, DLawBench, Legal-world, MASER, LeCaRDv2, and AgentsCourt. They cover legal knowledge and reasoning evaluation, similar-case retrieval, courtroom argument and judgment simulation, and multi-role, multi-agent interaction. The framework is highly extensible: to integrate a new benchmark, a researcher only needs to write a plugin instead of building another runtime adaptation layer.
With the integrated evaluation framework LexVerse provides, researchers no longer need to deploy and adapt each legal-capability benchmark one by one. A single command completes evaluation across multiple benchmarks and yields results that can be compared side by side, along with complete execution records. Different models and different agent frameworks can be compared under the same conditions; static benchmarks that could previously measure only "answering questions" also become environments for examining whether an agent can "do the work." For model developers this means lower evaluation cost; for researchers it means a more flexible, easier-to-use, and more reproducible experimental foundation.
Highlight 2: A Legal Task Execution Environment with Capability Augmentation
In real legal work, practitioners usually look up statutes and search for similar cases first; when reviewing a contract they check it item by item against the relevant elements; and when a question turns on how a regulation has evolved, they consult earlier versions. This raises a question: if agents were given the same working conditions, how would they perform on legal benchmarks?
The questions stay the same and the evaluator stays the same; LexVerse adds a capability-augmentation configuration to benchmarks. While working, an agent can call three categories of built-in legal resources on demand: legal knowledge it can retrieve and verify (Knowledge), professional skills it can invoke (Skills), and external services it can connect to (MCP). Organized around what legal work actually requires, these resources mainly cover five categories: laws and regulations, judicial cases, legal Q&A, legal concepts, and document templates. Assembled from multiple open-source legal datasets and public materials, laws and regulations are updated continuously as they are amended. Every collection comes with a pre-built retrieval index and works out of the box. The skills library includes both professional skills for Chinese legal practice and office skills such as document processing, so agents do not merely "know the law" — they can "work the way legal professionals do."
The three resource types can be enabled individually or in combination, so a benchmark is no longer just a measuring instrument; it also becomes a platform for controlled experiments. Researchers can open only the knowledge base first, then add skills, and finally connect external services, observing item by item which tasks each resource type helps with and where its contribution is limited. With these complete execution trajectories, researchers can go beyond comparing score changes and pinpoint exactly where a failure occurred: was nothing retrieved, was the right thing retrieved but used incorrectly, or did the problem lie in reasoning and generation itself?
Highlight 3: An Extensible Legal Environment with User Customization
Existing benchmarks measure questions designed in advance by researchers, whereas real legal work often depends on concrete workflow tasks: a set of contracts to review, a case file to organize, a disputed issue that needs to be argued. For this reason, beyond its built-in benchmarks, LexVerse opens up a user-defined legal environment. One configuration file plus one set of input materials constitutes an extensible, custom legal task. The configuration lets users freely define the task instruction, model or agent, knowledge and skills, external services, runtime environment, and output requirements; a task directory can also include a custom environment, reference execution scripts, and verification scripts. Tasks can run locally or in a sandbox, ensuring strict network permissions and access scope.
From Open Source to Continuous Building: More Tasks, More Complete Work Processes
More legal benchmarks. We are integrating additional legal benchmarks and preparing plugin development documentation and examples so that interested developers can connect their own benchmarks to LexVerse, steadily improving its benchmark coverage.
Multiple tasks and long workflows. Real legal work usually goes through several stages — material review, retrieval, argumentation, and drafting. We are adding support in LexVerse for workflows made up of multiple linked subtasks, and opening the multi-role, multi-agent collaboration currently available only in benchmarks to custom user tasks.
Environment evolution. Regulations are amended and cases are updated, so the environment in which agents operate must change as well. We are building continuous update and version management mechanisms for knowledge and service resources, and will work with legal professionals to find ways of turning real materials into new tasks and checking methods, so that LexVerse's environment evolves in step with legal practice.
From trajectories to learning. The execution trajectory left by every run records how the agent retrieved, how it reasoned, and where it went wrong. We are studying how to select high-quality data from these trajectories and design reliable reward signals for legal tasks, in support of improving agents' legal capabilities.
We welcome legal practitioners and research peers to join us and build together. You can integrate a benchmark, contribute a skill, or bring a real legal task. We hope to turn the experience and judgment of legal practice into methods that can be shared, tasks that can be reused, and standards that can be tested, so that technological progress stays closer to what legal work actually needs.
The open-source code repository has been released publicly.
Final Thoughts
Limitation 1 · Evaluation scope. The nine integrated benchmarks are Chinese legal benchmarks, centered on Chinese legal tasks, and more are still being integrated; the boundaries of that coverage are exactly what we need to fill in next.
Limitation 2 · Long workflows. Real legal work often runs through material review, retrieval, argumentation, and drafting, and support for long workflows composed of multiple linked subtasks is still under construction; multi-role, multi-agent collaboration for custom tasks is not yet open.
Limitation 3 · Resources and cost conditions. Regulations are amended and cases updated, and continuous update and version management for knowledge and service resources is still being improved; how to select high-quality data from execution trajectories and design reliable reward signals for legal tasks is likewise still at the research stage, and the relevant experiments require the corresponding retrieval indexes and runtime environments.
The open-source repository is public: clone it, run it against a benchmark at hand or your own real legal task, and see how agents actually perform in your setting. You are also welcome to integrate a benchmark, contribute a skill, bring a real legal task, or share a failed run and its execution trajectory to tell us whether the failure happened in retrieval, tool use, or reasoning — every retrospective becomes shared experience.
From answering questions to doing the work, what lies between is a practice ground where agents can train, try, err, and review. May legal agents grow within one shared ground, and may every step they take be traceable.