Skip to content

About

Open-source AI workspace for legal & document work: native Word tracked changes, linked sources, Git history, local MCP server & plugin SDK. 开源法律 AI 文档工作台

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

195 stars

Watchers

5 watching

Forks

Latest commit

 

History

2,750 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

AI WorkDeck — The IDE for lawyers. Clear the clutter. Get back to the law.

Programmers have long had their IDE: files, editing, search, versions and AI in one window.
AI WorkDeck brings that infrastructure to legal and document-heavy work — organised by matter, every conclusion sourced, every AI edit delivered as native Word tracked changes, and drivable from Claude Code, Cursor or Codex over local MCP.

Download for desktop  Star on GitHub  Try it in your browser

Latest release GitHub stars CI status AGPL-3.0-or-later
Free community edition · Windows / macOS · English · 简体中文

The real AI WorkDeck interface: case files on the left, a draft complaint in the middle, the AI assistant on the right. Click to watch the 2-minute film.
▶ Click the screenshot to watch the 2-minute film. Real interface; the matter is fictional.

Why an IDE

The AI chat box is the command line of the AI era. A big matter means hundreds of documents, months of work and several people. Lawyers, like programmers, work in text — piles of files, draft after draft, citations to check everywhere. They deserve their own infrastructure too.

Chat box AI WorkDeck
Start from scratch every time The context lives with the matter
Paste the materials in, one by one The AI reads the case file and edits the documents
Copy the answers back out, piece by piece Every step leaves a record

Just a quick question? Switch to chat mode. For the longer argument, read our thesis →

What it does

AI edits shown as native Word tracked changes in an English supply agreement, each with Accept and Reject buttons

AI writes native tracked changes. Edits are diffed at character granularity inside an embedded LibreOffice WASM editor and written as real w:ins / w:del redlines — never silently overwriting the file.

Review Sources panel linking conclusions in a breach risk report directly to passages across case documents

Every conclusion stays anchored to its source. Click a citation to land on the supporting passage; modified or orphaned anchors are flagged automatically.

Git-backed project version timeline on the left and clause-level contract comparison in the editor

Git-backed history and document comparison. Branch an agreement, inspect clause-level differences, and merge versions with paragraph-level provenance instead of Final_v7_FINAL.docx.

The in-app marketplace listing Skills, plugins and MCP servers

Extended by Skills, plugins and field capture. Install sandboxed Web panes, Java tools and Skills in one click — or pair the iOS companion to file site photos and recordings by date. Paid listings earn authors 70% of the sale as Credits (Terms of Service, section 6).

All screenshots use fictional demo matters. The interface ships in 20 languages.

Use with Claude Code, Cursor, or any MCP client

AI WorkDeck runs a loopback-only Model Context Protocol server (http://127.0.0.1:5269/mcp) so your existing coding or reasoning agent can read a matter and propose .docx edits without ever touching the file directly.

Local MCP Document Execution: MCP clients propose structured revisions to AI WorkDeck, which validates unique matches and queues edits for human Accept/Reject as native Word tracked changes.

Enable Settings → MCP → Local MCP service in the desktop app, copy the one-time token, and connect in one command:

claude mcp add --transport http aiworkdeck http://127.0.0.1:5269/mcp --header "Authorization: Bearer awdm_..."

Cursor, Codex, and stdio-only clients (Claude Desktop via the bundled zero-dependency bridge) are supported out of the box. Every accepted proposal is signed with the originating client (for example Claude Code · MCP) and counted as an AI change in the review panel. Full guide: MCP server quickstart →

Video tutorials

Two minutes, one task — 19 short episodes on the website. Tutorials are in Chinese for now.

Tutorial: With so many AI chat apps, why a workspace?
Why a workspace?
Tutorial: Linking evidence into the complaint
Linking evidence into the complaint
Tutorial: Hiding party details before the AI edits a pleading
Hiding party details before the AI edits
Tutorial: Who on the team is busy? See it at a glance
Who on the team is busy?

Try it

Self-contained local demo (no account, no model key). Starts the workbench on http://localhost:8080 with a fictional US–Asia supply dispute preloaded: accept/reject AI redlines, click a citation to jump to the source passage, and merge two contract drafts (walkthrough and screenshots):

# Prebuilt image (~30 seconds)
docker run --rm -p 127.0.0.1:8080:8080 ghcr.io/ai-workdeck/aiworkdeck-demo:latest

# Or build locally from source (pass DEMO_LANG=zh for the Chinese case)
docker compose -f demo/compose.yml up --build

No Docker? ./demo/run.sh runs the same demo with JDK 21, Maven and Node 20+.

Build with us

The repository contains the desktop app, workbench, agent backend, document-editor integration and plugin runtime. The foundations map to code you can read:

Foundation Where to look
Document-native agent edits, character-level tracked changes and checkpoints in embedded LibreOffice WASM Engineering deep dive · Editor primitives · Editor bridge
Local MCP document execution (propose_revision) and zero-dependency stdio bridge MCP server quickstart · stdio bridge
Source links with anchor-change detection; a pluggable evidence-provider interface Evidence contract · Provider example
Git-backed history, three-way document merge, paragraph-level provenance Version engine
Web panes, Java tools, declarative templates and reusable Skills Plugin guide · SDK · Skill spec · Examples
Built-in workflows and entry points Skills · Litigation visualization · Desktop · Office/WPS add-in

Build a plugin. Start with the minimal web plugin (plain HTML and JavaScript, no build step; English quick start) or the declarative plugin, or let an agent help you through the developer walkthrough. Web plugins run in a sandboxed iframe behind a permission-checked bridge; Java plugins run in the backend process and must be trusted. The developer program initially has no application fee; basic profile review is not identity certification, and each plugin version undergoes separate review and signing. The plugin guide explains the boundaries and the publication process; the full contract is the plugin spec (web plugins in §8, host SPI in §11).

Contribute. A small reproducible case is especially valuable: a document that loses formatting, a source link that no longer resolves, an edit that fails to round-trip, or an unclear setup step. Use synthetic or redacted materials, and discuss large changes in an issue first. Read the contribution guide. Code contributions require a one-time CLA; contributors retain copyright and grant the steward dual-licensing rights. Substantial API changes use the RFC process; the governance model, maintainers, and contributor directory are public; merged code contributors and published marketplace authors are named there. Plugin and Skill authors can publish through the marketplace (China · International) under the marketplace terms; funded tasks follow the bounty policy, with availability and amounts set per issue.

Roadmap — contribution directions, not dated release commitments: reliable document work on complex layouts, long documents, tracked changes and undo; source links that survive edits; a shorter path for builders (clean local demo, self-hosting docs, more examples); and repeatable professional workflows packaged as Skills. Bring a use case to Discussions.

About

AI WorkDeck is an open-source exploration rooted in day-to-day legal work, developed outside working hours with team support and feedback from colleagues. Its initiator, Zewei Han, is a practicing lawyer and a partner at Beijing Redsunny Law. He previously worked at King & Wood Mallesons, where he supported projects of the firm’s legal technology team, and co-authored 《大模型时代的法律科技》 (on legal technology in the era of large models). Contact: hi@aiworkdeck.com.

Licensing and stewardship

The steward is 北京公富信息技术有限公司 (BEIJING GONG FU INFORMATION TECHNOLOGY LIMITED). The same entity operates the domestic and international offerings. Commercial licensing covers the steward's code; third-party components retain their own terms. See AGPL-3.0-or-later, commercial licensing, third-party components, and trademarks.

The steward's existing policy allocates 20% of net commercial-licensing revenue to a community fund for bounties, Skill-creation grants, and community events. This is a public policy that may be adjusted prospectively, not an individual contractual entitlement. Governance roles carry technical authority; economic terms are set separately in the bounty policy and marketplace terms.

For licensing needs outside AGPL, contact hi@aiworkdeck.com; the commercial license sets out the applicable terms.

About

Open-source AI workspace for legal & document work: native Word tracked changes, linked sources, Git history, local MCP server & plugin SDK. 开源法律 AI 文档工作台

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

195 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages