amal66 turns Mike into a kit for jurisdiction-specific legal AI

A new plugin system lets you bolt local legal sources onto Mike without rewiring the core.

integrationworkflow

amal66 has added a registry that treats each jurisdiction's legal world as a snap-in module. Want to wire in Danish, EU, or Australian legal sources? You declare a small package - the instructions the AI should follow and the search tools it can call - and register it. The chat assistant folds it in automatically, no surgery on the shared code required. The fork ships a worked Danish-law example, complete with the citation conventions of Retsinformation.dk, the official Danish legal database.

This is the clearest read yet on where amal66 is headed: Mike not as a finished product but as a base for building legal-AI tools tailored to a particular country's law. Worth knowing the Danish example is a stub to copy, not a live integration - any real plugin would reach out to outside legal-search services, so each one needs its own data and trust review before you'd trust it with client matters.

So what If you're building a legal-AI product for a specific country or court system, this is the cleanest pattern in the fork for plugging local law in.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

1 commit from amal66/mike, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
c0dfd7ec feat(law-libraries): plugin registry for jurisdiction-specific law integrations Amal 2026-05-24 ↗ GitHub
commit body
Adds a self-contained plugin system so teams can wire in Danish law,
EU law, Australian law - or any jurisdiction - without touching chatTools.ts
or any route file. One file + one registerLawLibrary() call activates the
plugin; its system prompt fragment and tools are picked up automatically.

- lib/lawLibraries/registry.ts: LawLibraryPlugin interface, registerLawLibrary(),
  buildLawLibrarySystemPrompt(), getAllLawLibraryTools()
- lib/lawLibraries/index.ts: clean public re-export surface
- lib/lawLibraries/examples/danishLaw.ts: full working example (Retsinformation.dk
  citation conventions, danish_law_search tool schema)
- chatTools.ts: two-line integration - system prompt and tool list now include
  all registered law library plugins automatically

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-599.md from inside the repo you want the changes in.

⬇ Download capture-thread-599.md