feat: Swiss case law lookup via OpenCaseLaw

↗ view on GitHub · Benjamin Auer · 2026-05-22 · 24ed7ade

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>
Repository beniauer/michi
Author Benjamin Auer <benjaminauer@MacBook-Air-von-Benjamin.local>
Authored
Committed
Parents d39f5806
Stats 6 files changed , +572 , -5
Part of Swiss case law lookup via OpenCaseLaw

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-24ed7ade.md from inside the repo you want the change in.

⬇ Download capture-commit-24ed7ade.md