jmclark-lab gives Mike a live line to the open web

Mike can now pull current web results at answer time instead of leaning on whatever was baked into the model's training data.

searchintegration

The motivation is grounding. Regulatory questions, LATAM filing timelines, and current legal-pathway queries all turn on facts that go stale fast, and a model answering from memory quietly gets them wrong. jmclark-lab hooked Mike into SerpApi, a service that returns live search results, so before Mike answers it fetches current hits and folds them into the prompt.

The build is cautious in the right places. Search runs on a short timeout and never blocks the conversation, so a slow or missing response just degrades gracefully. And with no key configured, Mike behaves exactly as before, which keeps the feature opt-in per deployment. The notable turn came at the end: jmclark-lab first limited live search to messages that looked like regulatory queries, then scrapped that gate and turned it on for every question. That widens fact-checking coverage across the board, at the cost of a search call, plus its latency and spend, on essentially all traffic.

So what Anyone weighing Mike for regulatory or cross-border work should look here, and weigh the per-query cost against fresher, better-grounded answers.

View this fork on GitHub →

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

Commits in this thread

4 commits from jmclark-lab/mike, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
181702db feat: add SerpApi real-time web search for regulatory queries Julio G. Martinez-Clark 2026-06-30 ↗ GitHub
commit body
This file integrates SerpApi for web search functionality, enabling real-time context for regulatory pathway validation and device classification. It includes methods for checking API key availability, performing searches, and formatting results.
84399b45 Integrate real-time web search context in chat completions Julio G. Martinez-Clark 2026-06-30 ↗ GitHub
Enhanced streamChatWithTools to include real-time regulatory search context when SERPAPI_KEY is set. This allows Fugu to access current regulatory information during chat completions.
be665b77 Update .env.example with SerpApi instructions Julio G. Martinez-Clark 2026-06-30 ↗ GitHub
Added comments for SerpApi configuration and usage.
b2630dc0 refactor: enable web search for all queries, not only regulatory keywords Julio G. Martinez-Clark 2026-06-30 ↗ 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-693.md from inside the repo you want the changes in.

⬇ Download capture-thread-693.md