jmclark-lab drafts a full engine swap to Sakana's Fugu, then parks it

A complete, deployable blueprint for standardizing this fork on a single new AI model - opened for review, then closed without merging.

infrastructurecompliance

jmclark-lab laid out exactly what it would take to rip out this fork's current AI engine and run everything on Fugu, a model from the lab Sakana AI - no toggle, no fallback to the old provider. It's a clean, ready-to-ship package that bundles three things:

  • A new connector that routes both quick one-shot answers and live, streaming replies through Fugu.
  • An audit trail: every answer the assistant saves now carries a stamp of which provider and model produced it - even on cancelled or failed requests.
  • A startup check that refuses to boot the server without valid credentials, so a missing key fails loudly up front instead of surprising you in production.

The catch: jmclark-lab flagged it "do not merge" from the start and it was closed a few days later, so none of it reached the base repo.

So what Worth a look for anyone weighing a single-vendor AI backend - and a reminder that the model behind your answers is a decision to record, not a default to forget.

View this fork on GitHub →

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

Commits in this thread

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

SHA Subject Author Date
108d290d feat: types.ts - Provider=sakana, UserApiKeys.sakana Julio G. Martinez-Clark 2026-06-23 ↗ GitHub
f18e6ea6 Add Fugu models and update model provider function Julio G. Martinez-Clark 2026-06-23 ↗ GitHub
1ace046e Update index.ts Julio G. Martinez-Clark 2026-06-23 ↗ GitHub
303b65d0 Update index.ts Julio G. Martinez-Clark 2026-06-23 ↗ GitHub
89735836 Update .env.example Julio G. Martinez-Clark 2026-06-23 ↗ GitHub
3e3b6946 Create README.md Julio G. Martinez-Clark 2026-06-23 ↗ GitHub
fe2ca9ed Create sakana.ts Julio G. Martinez-Clark 2026-06-23 ↗ GitHub
f9ddb40a Add tests for streamSakana and completeSakanaText Julio G. Martinez-Clark 2026-06-23 ↗ GitHub
45e56f21 feat(chat): persist Sakana Fugu provider_metadata on assistant messages Julio G. Martinez-Clark 2026-06-23 ↗ GitHub
882fb97e feat(db): add provider_metadata column to chat_messages Julio G. Martinez-Clark 2026-06-23 ↗ GitHub
This migration adds a new column 'provider_metadata' to the 'chat_messages' table to store information about the LLM provider and model used for each assistant response.

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

⬇ Download capture-thread-733.md