Introduction¶
When using DSH for legal studies or bar exam training, a common practice is to repeatedly paste case details, legal elements, and memorization materials into the dialogue. Learning archives are often scattered across Markdown files or local folders, while Obsidian notes need to be opened separately. Even if you are already using “Minglü” (the lawagent agent preset) and storing archives in a fixed directory, there is still a lack of a local interface aligned with the preset: one that centralizes the review of case file sections, memorization cards, and notes, and actually sends instructions like “Generate Questions / Grade / Review / Draft Documents” into the current Minglü session without requiring you to copy and paste them again.
Below is an introduction to the community plugin lawagent-ui (repository Iambatman1928/dsh-lawagent-ui), published by maintainer Iambatman1928 and categorized as a Client in the SkillHub directory. It reads the same learning archives via a three-column workbench and provides one-click integration with Minglü.
What is this¶
lawagent-ui is a local learning and training workbench for law students and bar exam candidates: featuring a three-column academic interface (Left Navigation / Middle Workspace / Right Dynamic Panel), it reads learning archives directly from Minglü (lawagent preset) and can send instructions to the Minglü session with one click.
The plugin is licensed under MIT (© 2026 Iambatman1928), with the current package version at 1.0.0. Runtime requirements are Node >=20 and DSH >=0.1.0-rc.1. The README states: no external dependencies, purely local storage, and no uploading of learning archives. A disclaimer at the end of the document notes: this plugin is a learning auxiliary tool and does not constitute legal advice; for the original text of laws and their current validity, please refer to official texts.
Core Features¶
The following capabilities are derived from the repository README and package.json descriptions.
Three-column Workbench¶
Left navigation, middle workspace, and right dynamic panel, designed for switching between learning and training content within the same interface.
Case Files¶
The middle workspace supports sections for case details, elements lists, timelines, syllogisms, pro-and-con arguments, fallacies, and legal documents, facilitating the organization of materials for a single case according to legal training habits.
Memorization Cards & Error Book¶
Provides spaced repetition scheduling; shares the same settings.json with Minglü to avoid maintaining two separate sets of configurations.
Notes (Obsidian)¶
Supports listing, searching, and writing to Obsidian bidirectional links (mounting the data folder), allowing notes and learning archives to be used within the same data root directory.
One-click Integration with Minglü¶
Can send instructions (Generate Questions / Grade / Review / Draft Documents, etc.) to the current Minglü session, triggering them within the UI rather than manual pasting.
Installation and Activation¶
The installation command follows the README:
dsh plugin add github:Iambatman1928/dsh-lawagent-ui
Restart DSH after installation. The plugin integrates as a web client via cordis.patch.yml (see dsh.client.platform: "web" in package.json).
Learning Archive Path¶
The workbench reads from ~/lawdata/ by default, consistent with the learning archive path of the lawagent preset. To change the root directory, you can use:
- Environment variable
LAWAGENT_DATA_ROOT - Or set
config.dataRootincordis.patch.yml
For specific field meanings, refer to cordis.patch.yml in the repository; you can browse this file on GitHub before installation.
Typical Usage (Reproducible Workflow)¶
- Ensure Minglü (
lawagentpreset) is installed and configured, and learning archives are located in the default~/lawdata/(or you have specifieddataRootusing the methods above). - Run the
dsh plugin addcommand above, restart DSH, and open the lawagent-ui client interface. - Navigate to the case files, memorization cards/error book, or notes area in the left column; edit or browse the corresponding Markdown section content in the middle area.
- When AI involvement is needed, use the workbench’s one-click integration to select instructions such as generating questions, grading, reviewing, or drafting documents, which the plugin will send to the current Minglü session.
Following these steps ensures consistency in archive reading/writing and the source of dialogue instructions, reducing the need to switch back and forth between the terminal, Obsidian, and the chat window.
Use Cases and Notes¶
Who it is for: Law students and bar exam candidates who are already using the Minglü preset in DSH and are willing to maintain materials in local directories (including Obsidian mounts).
Ecosystem Note: The DSH community plugin directory (such as the plugin page on SkillHub) is an independent site and has no official affiliation with DeepSeek or High-Flyer (Huanfang); please review the source code and MIT license yourself before installation.
Security & Permissions: The plugin runs with the permissions of the current DSH process and can read and write files under your configured dataRoot. Before installation, you should read the source code of the GitHub repository to confirm that the paths and behavior meet your expectations. The README states there are no external dependencies and no uploading of learning archives, but it does not replace your management of local data and backups.
Conclusion¶
lawagent-ui presents Minglü’s learning archives through a three-column workbench and supplements it with memorization scheduling, Obsidian notes, and one-click instruction sending to the session. It is suitable for workflows that anchor legal training locally and share a single set of data with the preset.
- Directory Page: https://www.skillhub.cn/plugins/Iambatman1928/dsh-lawagent-ui
- Source Code & Docs: https://github.com/Iambatman1928/dsh-lawagent-ui