<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sami Alotaibi</title>
    <description>The latest articles on DEV Community by Sami Alotaibi (@sami_alotaibi_0b881f3cfbc).</description>
    <link>https://dev.to/sami_alotaibi_0b881f3cfbc</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3808922%2F915e3c7d-f61d-431a-a07f-48eec37f5b9c.png</url>
      <title>DEV Community: Sami Alotaibi</title>
      <link>https://dev.to/sami_alotaibi_0b881f3cfbc</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sami_alotaibi_0b881f3cfbc"/>
    <language>en</language>
    <item>
      <title>I built a Multi-Model AI Router to end "Claude-Loyalty" (and I need you to break it)</title>
      <dc:creator>Sami Alotaibi</dc:creator>
      <pubDate>Fri, 06 Mar 2026 02:48:41 +0000</pubDate>
      <link>https://dev.to/sami_alotaibi_0b881f3cfbc/i-built-a-multi-model-ai-router-to-end-claude-loyalty-and-i-need-you-to-break-it-33b</link>
      <guid>https://dev.to/sami_alotaibi_0b881f3cfbc/i-built-a-multi-model-ai-router-to-end-claude-loyalty-and-i-need-you-to-break-it-33b</guid>
      <description>&lt;p&gt;I've noticed a pattern in my workflow: I spend way too much time switching between Claude for code, Gemini for long-context research, and GPT for quick logic.&lt;/p&gt;

&lt;p&gt;In 2026, "Model Loyalty" feels like a tax on productivity. So, I built Alotaibi AI—a lightweight, intent-based router that picks the best API for your prompt so you don't have to.&lt;/p&gt;

&lt;p&gt;The Tech Stack&lt;br&gt;
Frontend: Ultra-lightweight "Thin-client" HTML/JS, hosted on Vercel for global edge delivery.&lt;/p&gt;

&lt;p&gt;Backend: A decoupled, private orchestration layer. I opted for a dedicated backend instead of serverless functions to avoid execution timeouts and to handle more complex intent-classification logic.&lt;/p&gt;

&lt;p&gt;Intelligence: I'm using a zero-shot classification layer to weigh prompts across four axes: Logic, Creativity, Speed, and Retrieval.&lt;/p&gt;

&lt;p&gt;The "Secret Sauce" (and why I need your help)&lt;br&gt;
The core logic evaluates your prompt in real-time. Depending on the "intent" detected, it routes the request to the specific model currently performing best for that niche (Claude 4.6, GPT-5, or Gemini 3 Pro).&lt;/p&gt;

&lt;p&gt;The Problem: Tuning these "routing thresholds" is a nightmare. Sometimes the system favors a faster model when I actually need deep reasoning.&lt;/p&gt;

&lt;p&gt;I need a Roast&lt;br&gt;
I'm looking for feedback on three things:&lt;/p&gt;

&lt;p&gt;Routing Accuracy: Try to "trick" the system. Send it a prompt that should go to a high-reasoning model but gets routed to a faster, "dumber" one.&lt;/p&gt;

&lt;p&gt;The UI: Is the "thin-client" approach too minimal, or is the speed of a raw HTML frontend worth it?&lt;/p&gt;

&lt;p&gt;Architecture: If you’ve built decoupled AI apps before, how are you handling the handshake latency between your frontend and private API?&lt;/p&gt;

&lt;p&gt;Check it out here: 

&lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://alotaibiai.vercel.app" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;alotaibiai.vercel.app&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;




</description>
      <category>ai</category>
      <category>llm</category>
      <category>productivity</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
