beniauer plugs Mike into Swiss case law

The assistant now answers Swiss-law questions from live public legal databases instead of guessing from memory.

searchchat-ui

beniauer connected this fork to OpenCaseLaw, a free Swiss legal database covering roughly 956,000 federal and cantonal court decisions, federal statutes plus all 26 cantonal law collections, and scholarly commentary from OnlineKommentar. When a user asks a Swiss-law question in chat, the assistant reaches into those sources rather than relying on whatever it absorbed during training.

The interesting part is the discipline. The assistant is instructed to quote citations and links exactly as they come back from the database, and to say plainly when a search turns up nothing instead of inventing a case number - the single most common way legal AI embarrasses its user. There's a dedicated case-law search page in the works too. One caveat worth knowing: it leans on one public source with no caching, so an outage would quietly return empty results rather than an error.

So what If any part of your practice touches Swiss law, this is the most concrete, citation-honest feature in the fork.

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