<?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: Farid Chowdhury </title>
    <description>The latest articles on DEV Community by Farid Chowdhury  (@faridlu).</description>
    <link>https://dev.to/faridlu</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%2F743894%2Ff8cae9f1-3654-4978-bb80-b74e9af79e81.png</url>
      <title>DEV Community: Farid Chowdhury </title>
      <link>https://dev.to/faridlu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/faridlu"/>
    <language>en</language>
    <item>
      <title>🔀 I built an AI agent router that picks the right model for the job — and it changed how I code 🦞</title>
      <dc:creator>Farid Chowdhury </dc:creator>
      <pubDate>Sun, 24 May 2026 07:59:25 +0000</pubDate>
      <link>https://dev.to/faridlu/i-built-an-ai-agent-router-that-picks-the-right-model-for-the-job-and-it-changed-how-i-code-56n2</link>
      <guid>https://dev.to/faridlu/i-built-an-ai-agent-router-that-picks-the-right-model-for-the-job-and-it-changed-how-i-code-56n2</guid>
      <description>&lt;p&gt;I got tired of one model doing everything badly.&lt;/p&gt;

&lt;p&gt;💸 Expensive reasoning on simple searches.&lt;br&gt;
🏃 Fast models hallucinating on architecture.&lt;br&gt;
🚫 Rate limits with no fallback.&lt;/p&gt;

&lt;p&gt;So I built a task router. One prompt, zero config hell.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;⚡ What it does:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🧠 Smart routing — says "plan this", "debug that", "review this PR" and sends it to the specialist that handles it best&lt;/li&gt;
&lt;li&gt;⚡ Instant response — you never wait at a blank screen. Agents work async, results appear when done&lt;/li&gt;
&lt;li&gt;📊 Live status — every 2 minutes, a heartbeat tree shows exactly which agent is running, blocked, or done&lt;/li&gt;
&lt;li&gt;🔄 Auto fallback — rate limit hit? Switches to the next best model. You never notice&lt;/li&gt;
&lt;li&gt;🛡️ No hallucination — hard constraints: never invent files, never guess imports, always search first&lt;/li&gt;
&lt;li&gt;💰Cost smart — simple tasks get cheap fast models, complex ones get deep reasoning. No waste&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;👀 What a session looks like:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;🔀 Router&lt;/p&gt;

&lt;p&gt;├── 🏗️ plan (Microservices arch) → [RUNNING]&lt;/p&gt;

&lt;p&gt;├── ⚡ fast (Find auth module) → [FINISHED: src/auth/]&lt;/p&gt;

&lt;p&gt;└── 📋 Summary: Architecture in progress, auth found&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🛠️ Setup:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Drop 2 files in your OpenClaw workspace. That's it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;AGENTS.md → the router prompt&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;openclaw.json → the agent definitions with fallback chains&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Works with OpenCode models out of the box, or swap in any provider you want.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🔗 Full config + docs:&lt;/strong&gt; &lt;a href="https://github.com/FaridLU/openclaw-task-router" rel="noopener noreferrer"&gt;https://github.com/FaridLU/openclaw-task-router&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;MIT licensed. Questions and suggestions are welcome 👇&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
