beniauer grounds Mike in actual Swiss case law

This fork stops the AI from guessing at Swiss legal authority and makes it cite the real thing instead.

searchknowledge-management

beniauer's fork wires Mike into OpenCaseLaw, a public Swiss legal database covering court decisions, federal and cantonal statutes, and published legal commentaries. Instead of relying on whatever the AI model happens to remember, the assistant now looks up primary sources directly and answers from them.

The payoff is citation discipline: the assistant is instructed to quote real case and statute references verbatim and is explicitly told never to invent docket or statute numbers - the failure mode that makes lawyers rightly distrust AI research. There's also a dedicated search page for looking up Swiss decisions, laws, and commentaries on their own, with results returned in German, French, or Italian. One caveat worth knowing before you import it: it leans on a single public database with no fallback if that source is down.

So what Anyone doing Swiss legal work should look; anyone elsewhere can see a clean, copyable pattern for forcing an AI to cite real authority rather than hallucinate it.

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 beniauer/michi, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
24ed7ade feat: Swiss case law lookup via OpenCaseLaw Benjamin Auer 2026-05-22 ↗ GitHub
commit body
Ground legal answers in primary sources instead of model recall.

- swissCaselaw.ts: REST client for the OpenCaseLaw API (decisions, statutes,
  commentaries; no auth required).
- chatTools.ts: register search/read tools so the assistant cites real
  decisions with canonical URLs instead of inventing case numbers.
- Dedicated /caselaw search page + sidebar nav for direct lookups, with
  results linking to the official source.

Co-Authored-By: Claude Opus 4.7 (1M context) <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-552.md from inside the repo you want the changes in.

⬇ Download capture-thread-552.md