meta-models
legal-agent-workshop
Code for building an AI legal agent using Muse Code and Muse Spark
Documentation snapshot
README 快照
翻译暂时拿不到。
机器翻译的项目简介,仅供参考。原文在下方,也可以直接用浏览器自带的整页翻译 (Chrome / Edge 点地址栏右侧的翻译图标,或用右键菜单里的「翻译成中文」)。
下面正文是项目自己的英文 README。想读全文就用浏览器自带的整页翻译: Chrome / Edge 点地址栏右侧的翻译图标,或用右键菜单里的「翻译成中文」; 手机浏览器一般在菜单里。
本页保存的是公开项目资料快照,阅读过程不需要连接 GitHub。
Legal Agent Workshop
Two working sessions. Participants clone this repository and launch Muse Code from agent/ only; cases/, world/, and solutions/ stay outside Muse Code’s workspace. First you build a general legal agent; then you point it at a case.
- Session 1 — Build the agent: the agentic loop, in plain OpenAI Python SDK code, on a pre-built kit (one file per tool, Files API document reading, a case-management system with quote-checked facts). The agent drafts a checklist, plans, investigates, and ends with an unverified memo.
- Session 2 — Make it trustworthy: first verify the Session 1 memo and checklist and see what they miss (
./helper verify). Then build the two checks of the verification layer (the checklist against the case’s ground truth, and the memo rules), which the kit runs outside the agent’s control, and continue the Session 1 run from its checklist with verification on (./helper branch): refusals, escalation, release of new evidence, resume, and attorney sign-off.
The Agent Console in ui/ (pre-built) shows any run live: python3 ui/ui.py, then open http://127.0.0.1:8765.
Start
git clone https://github.com/meta-models/legal-agent-workshop.git
cd legal-agent-workshop/agent
cp .env.example .env # add MODEL_API_KEY; CASE_DIR points at ../cases/northbridge-v-caldera
./helper setup # creates .venv with the OpenAI Python SDK, copies the case's documents, checks the key
muse
Start Muse Code
From agent/, run muse. Your first message, and again after any restart or new session, is the ground-rules prompt in HANDBOOK.md, section 1.7.
Structure
HANDBOOK.md— the participant handbook: setup, Session 1, then Session 2 step by step. It holds the ground-rules prompt for Muse Code (1.7).agent/— starter code and the only Muse Code workspace: a general legal agent, no case inside. Seeagent/README.md.cases/northbridge-v-caldera/— the case you hand the agent:objective.mdanddocuments/. A new case is just a folder with an objective and its documents.ground_truth/— what the checklist check compares against: the ground-truth checklist per case (northbridge-v-caldera.json). Never part of the case, never seen by the agent or Muse Code.world/— the simulated outside world: withheld follow-up documents andrelease.py.solutions/—01_session1/and02_session2/snapshots.ui/— the Agent Console: start runs, watch each turn, see the agent’s checklist and how each item is proven, release evidence, sign off. Pre-built; outside Muse Code’s workspace.
Facilitator commands
python3 world/release.py # after a run reaches needs_input
cd agent && ./helper verify RUN_ID --memo # Session 2: what the Session 1 memo misses
cd agent && ./helper verify RUN_ID --checklist # Session 2: what the Session 1 checklist misses
cd agent && ./helper branch RUN_ID # Session 2: continue from the checklist, verification on Official distribution
获取与安装
暂未发现可确认的官方软件包地址
当前 README 快照没有出现 npm、PyPI、Crates.io、pub.dev 等官方包页链接。本站不会根据仓库名称猜测下载地址。
本站不托管项目文件;需要安装时,请以项目维护者发布的官方文档为准。
Before installing
使用前核验
本站保存公开资料用于阅读,不代表安全审计或功能背书。安装前请核对许可证、依赖来源和发布签名,不要直接运行来源不明的二进制文件或高权限脚本。