lucianschw-dev wires Mike into Europe's official legal record

A new EU-law chat mode that pulls real documents from an authoritative source and checks citations before they reach the user.

chat-uiintegration

lucianschw-dev has added a separate chat experience built specifically for EU law. Instead of answering from the model's general training, it reaches out to a dedicated EU legal data service and looks documents up by their official European identifiers - the standardised codes the EU uses for legislation and case law. It can fetch a named regulation or judgment directly, and, crucially, verify a citation rather than trusting the model to have remembered it correctly.

The practical effect is grounding: answers about EU law point back to real, identifiable sources, and a fabricated or garbled reference can be caught instead of passed along. It runs alongside the existing general chat rather than replacing it, so the EU behaviour is opt-in.

So what Anyone advising on EU matters should care - citation verification is the difference between a confident answer and a checkable one.

View this fork on GitHub →

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

Commits in this thread

2 commits from lucianschw-dev/eumike, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
3f39cef1 Add /eu-law-chat endpoint and MCP dispatcher hook Lucian.schw 2026-05-17 ↗ GitHub
commit body
- chatTools.ts: optional mcpTools parameter on runLLMStream (intercepts
  named tool calls and routes them to an external dispatcher before they
  fall through to runToolCalls)
- euLawMcp.ts: thin HTTP client for the eu-law MCP server, plus
  dispatchEuLawCalls wired into chatTools.ts's mcpTools.dispatch slot
- euLawChat.ts: copy of /chat with EU_LAW_SYSTEM_PROMPT_EXTRA, 4
  hand-written tool schemas, and the MCP dispatcher
- index.ts: register /eu-law-chat router and apply chat rate limiters
30efd52d Backend npm install: lockfile refresh Lucian.schw 2026-05-17 ↗ GitHub

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-465.md from inside the repo you want the changes in.

⬇ Download capture-thread-465.md