<?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: Hussein Loubani</title>
    <description>The latest articles on DEV Community by Hussein Loubani (@hussein_loubani).</description>
    <link>https://dev.to/hussein_loubani</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3876962%2Fa453b2cb-8c24-403a-85e5-816b5f4080b9.jpg</url>
      <title>DEV Community: Hussein Loubani</title>
      <link>https://dev.to/hussein_loubani</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hussein_loubani"/>
    <language>en</language>
    <item>
      <title>Your AI agent should treat bad output like a noisy sensor</title>
      <dc:creator>Hussein Loubani</dc:creator>
      <pubDate>Mon, 30 Nov 2026 23:14:05 +0000</pubDate>
      <link>https://dev.to/hussein_loubani/what-an-ai-agent-needs-from-your-api-error-2nhp</link>
      <guid>https://dev.to/hussein_loubani/what-an-ai-agent-needs-from-your-api-error-2nhp</guid>
      <description>&lt;p&gt;On a self-driving car, a sensor reading is never trusted just because it arrived. A tracker following a car on the road expects it to move a little between two frames. If a detection suddenly jumps three lanes in 100 milliseconds, the tracker does not steer around a ghost. It flags the reading as noise and keeps the last state it trusted.&lt;/p&gt;

&lt;p&gt;I work on perception for autonomous vehicles, and this rule is so basic in robotics that nobody writes blog posts about it. In AI agents, it is often missing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where agents trust too much
&lt;/h2&gt;

&lt;p&gt;An agent chains steps. A tool returns something, the model reads it, and the next step acts on it. When the tool returns an empty list, a half-parsed JSON or an error page with status 200, many agents read it as real data and keep going. The bad value travels three steps down the chain and turns into a confident, wrong answer.&lt;/p&gt;

&lt;p&gt;The model did nothing wrong. It received noise and nobody filtered it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three checks before the next step reads anything
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Shape.&lt;/strong&gt; Validate every tool result and every structured model output against a schema. Missing fields, wrong types or truncated JSON fail here.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Range.&lt;/strong&gt; Check values against what is physically or logically possible. A price below zero, a date in 1970, a delivery time of four years: all of these pass a schema and all of them are wrong.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Consistency.&lt;/strong&gt; Compare the new value with what the agent already knows. If the customer had three orders one step ago and has 3,000 now, treat it like the jumping car: suspicious until proven otherwise.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  "No data" is a valid answer
&lt;/h2&gt;

&lt;p&gt;The most important rule from the tracker: a rejected reading becomes "no data", never "use it anyway". For an agent, "no data" triggers the fallback path: retry the tool, use a cached value, or tell the user what is missing.&lt;/p&gt;

&lt;p&gt;An agent that says "I could not get a reliable price from the supplier" is more useful than one that quotes a negative price with full confidence.&lt;/p&gt;

&lt;h2&gt;
  
  
  See the full set in Vilnius
&lt;/h2&gt;

&lt;p&gt;Output validation is one of five habits from self-driving cars I apply to AI agents, and I present all five at Build Stuff 2026 in Vilnius on Thursday 3 December at 17:15 in Zeta 1.&lt;/p&gt;

&lt;p&gt;Tickets are at &lt;a href="https://buildstuff.events" rel="noopener noreferrer"&gt;https://buildstuff.events&lt;/a&gt;, and the code 2026SPEAKER_20 gives 20% off.&lt;/p&gt;

&lt;h1&gt;
  
  
  BuildStuff15 @buildstuffconf
&lt;/h1&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>robotics</category>
      <category>testing</category>
    </item>
    <item>
      <title>What self-driving cars taught me about reliable AI agents</title>
      <dc:creator>Hussein Loubani</dc:creator>
      <pubDate>Sun, 29 Nov 2026 17:09:31 +0000</pubDate>
      <link>https://dev.to/hussein_loubani/what-self-driving-cars-taught-me-about-reliable-ai-agents-42m8</link>
      <guid>https://dev.to/hussein_loubani/what-self-driving-cars-taught-me-about-reliable-ai-agents-42m8</guid>
      <description>&lt;p&gt;Before I built AI agents, I built perception for autonomous vehicles. I work with LiDAR, on-board cameras and semantic segmentation, and the first thing a vehicle teaches you is that time is part of correctness.&lt;/p&gt;

&lt;p&gt;A typical automotive LiDAR spins at 10 Hz. That gives the whole pipeline about 100 ms per frame: capture, preprocessing, inference, planning. If one stage runs late, the car does not wait for it. The next frame arrives, and the vehicle has already moved.&lt;/p&gt;

&lt;p&gt;When I started connecting AI agents to real tools, I kept running into failures I had seen before on the robot. A tool call hangs and the whole run freezes. An API goes down and the agent keeps calling it. A model returns garbage and the next step acts on it anyway. Nobody can say what happened, because nothing was recorded.&lt;/p&gt;

&lt;p&gt;Robotics solved these problems years ago, because a failure on a vehicle costs more than a bad demo. On Thursday 3 December, I present five of those habits at Build Stuff 2026 in Vilnius. Here is the short version.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Give every run a deadline budget
&lt;/h2&gt;

&lt;p&gt;On a robot, every stage owns a share of the cycle, and a stage that runs over its share gets cut so the loop can move on.&lt;/p&gt;

&lt;p&gt;In an agent, the same idea becomes three nested limits: a timeout on every tool call, a budget for each step, and a total budget for the run, plus a cap on steps and cost. The part people forget is the last one: decide in advance what the agent does when the timer fires. Cancel, fall back, and say what was skipped.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Add health checks and fallbacks
&lt;/h2&gt;

&lt;p&gt;Every sensor on a vehicle sends a heartbeat. When it goes quiet, a watchdog switches the system into a named mode: degraded, minimal, or safe stop. Nobody writes that logic during the incident.&lt;/p&gt;

&lt;p&gt;Agents need the same ladder. One retry with backoff, then a backup tool or a cached answer, then a human. Add a circuit breaker, so the agent stops calling a dead service after a few failures.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Reject noise before you act on it
&lt;/h2&gt;

&lt;p&gt;A tracker that sees a car jump across the road between two frames treats it as a detection error and keeps the last trusted state.&lt;/p&gt;

&lt;p&gt;In an agent, every tool result and every model output should pass a schema and range check before the next step reads it. Empty, malformed or out of range means "no data", never "use it anyway".&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Trace every step
&lt;/h2&gt;

&lt;p&gt;Robotics teams record whole drives and replay the minute around a failure on their desk until they understand it.&lt;/p&gt;

&lt;p&gt;The agent version is a trace for each step: the input, the prompt version, the tool and its arguments, the raw output, the latency and cost, and the decision taken next. With it, "the agent was slow and weird" turns into a bug you can reproduce.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Put humans where errors cost the most
&lt;/h2&gt;

&lt;p&gt;Test vehicles drive with a safety driver, an emergency stop, and clear operating limits.&lt;/p&gt;

&lt;p&gt;For agents, sort actions by two questions: how much does a mistake cost, and how hard is it to undo? Reading and drafting run alone. Payments, deletions and production deploys wait for a person.&lt;/p&gt;

&lt;h2&gt;
  
  
  The failure that convinced me
&lt;/h2&gt;

&lt;p&gt;At Apidays Munich, I ran a live demo of an agent calling a badly designed API. It made six calls and got six bare 500 errors, with nothing it could recover from. The model was fine. The system around it gave it no deadline, no fallback and no useful error.&lt;/p&gt;

&lt;p&gt;That is the core of my talk: the model is rarely the problem. The reliability lives in the system around it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Come say hi
&lt;/h2&gt;

&lt;p&gt;I speak on Thursday 3 December at 17:15 in room Zeta 1 at Build Stuff 2026, the 15th edition of the conference, at the Radisson Blu Hotel Lietuva in Vilnius. The theme this year is The Age of Agency, which fits this topic well: building software that acts, and deciding where it should stop.&lt;/p&gt;

&lt;p&gt;Tickets are at &lt;a href="https://buildstuff.events" rel="noopener noreferrer"&gt;https://buildstuff.events&lt;/a&gt;, and the code 2026SPEAKER_20 gives 20% off.&lt;/p&gt;

&lt;h1&gt;
  
  
  BuildStuff15 @buildstuffconf
&lt;/h1&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>robotics</category>
      <category>reliability</category>
    </item>
    <item>
      <title>How 25 Students Went from Idea to Deployed App in 2 Hours with Google Antigravity</title>
      <dc:creator>Hussein Loubani</dc:creator>
      <pubDate>Mon, 13 Apr 2026 16:00:22 +0000</pubDate>
      <link>https://dev.to/hussein_loubani/how-25-students-went-from-idea-to-deployed-app-in-2-hours-with-google-antigravity-ohm</link>
      <guid>https://dev.to/hussein_loubani/how-25-students-went-from-idea-to-deployed-app-in-2-hours-with-google-antigravity-ohm</guid>
      <description>&lt;p&gt;On April 9, we ran a Build with AI Code Lab at UTBM's Crunch Lab in Belfort-Montbéliard, France. I co-organized it with GDG on Campus UTBM. &lt;a href="https://dev.to/jphi_baconnais"&gt;Jean-Philippe Baconnais&lt;/a&gt;, a Google Developer Expert in Cloud from [Zenika](&lt;a href="https://zenika.com" rel="noopener noreferrer"&gt;https://zenika.com&lt;/a&gt; Nantes, came in to lead the live coding. About 25 students and developers showed up with laptops. The deal: start with an app idea, walk out with something deployed on Google Cloud Platform. Two hours. No manual coding (or close to it).&lt;/p&gt;

&lt;p&gt;Most of them had a working app live before the networking break.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three tools
&lt;/h2&gt;

&lt;p&gt;The session covered three Google tools in sequence.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Google AI Studio&lt;/strong&gt; came first. Participants tested prompts and poked at Gemini models to see how they respond. No setup required. You type, you get a response. It is the fastest way to get your hands on a Gemini model if you have never used one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Firebase Studio&lt;/strong&gt; was next. Database, hosting, auth. Jean-Philippe showed how to wire Firebase services into an app without spending an hour on boilerplate config. This part went faster than I expected.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Google Antigravity&lt;/strong&gt; was the core of the session. Antigravity is an agentic development platform. You describe what you want, and autonomous agents on Gemini models generate code, connect components, and wire things together. You review the output through Artifacts. You keep what works, fix what does not. You can plug in custom Tools like skills and MCP servers to steer the agents.&lt;/p&gt;

&lt;p&gt;The pipeline: brainstorm in AI Studio, backend on Firebase, app assembly and deployment through Antigravity on GCP. Google provided credits, so nobody paid a cent.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it looked like in practice
&lt;/h2&gt;

&lt;p&gt;Nobody was typing code line by line. People described features, reviewed agent output, accepted or rejected, and moved to the next piece. The speed caught me off guard. Students who had never deployed anything before had live URLs within the session.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/jphi_baconnais"&gt;Jean-Philippe&lt;/a&gt; did not lecture.&lt;br&gt;
He built in front of everyone, hit errors on screen, debugged them live, and talked through his reasoning. That is hard to pull off well, and he made it look easy.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linkedin.com/in/rasatavohary/" rel="noopener noreferrer"&gt;Zo R.&lt;/a&gt; from our sponsor &lt;a href="https://careers.aquantic.io/Aquantic" rel="noopener noreferrer"&gt;Aquantic&lt;/a&gt; (Zonova Sarl) posted about it and mentioned the concentration in the room. That is accurate. People were focused.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this changed for me
&lt;/h2&gt;

&lt;p&gt;I write C++ and Python every day for my PhD in computer vision and robotics. I control every line. Every function call. Every parameter.&lt;/p&gt;

&lt;p&gt;During this Code Lab, the students were not doing that. They were describing what they wanted. Reviewing what came back. Catching mistakes. Deploying. The role was closer to supervision than implementation.&lt;/p&gt;

&lt;p&gt;I am still processing what that means for how I work. I do not think it replaces writing code for research (my problems are too specific). But for building apps, prototyping, shipping things fast? The workflow is different. And I watched 25 people learn it in 2 hours.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two things I did not expect
&lt;/h2&gt;

&lt;p&gt;The deployment step. I assumed it would be the bottleneck. It was not. Antigravity handled GCP deployment cleanly, and most apps were live well before the end.&lt;/p&gt;

&lt;p&gt;Non-CS attendees shipping apps. Some people in the room were not computer science students. They still produced working prototypes because the interface asks for intent, not syntax. If you know what you want to build, you can get surprisingly far.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you want to try this
&lt;/h2&gt;

&lt;p&gt;Pick a small project. Something you would normally spend a weekend on. Start in AI Studio to test your prompts. Use Firebase for the backend. Let Antigravity assemble the rest. See what happens.&lt;/p&gt;

&lt;p&gt;Fair warning: reviewing agent output instead of writing code yourself feels strange at first. You keep wanting to take over. Resist that for the first hour and see how far the agents get you.&lt;/p&gt;

&lt;p&gt;And if you run a developer community, this Code Lab format works. Hands-on, 2 hours, clear goal, everyone walks out with something deployed. Way more effective than a talk.&lt;/p&gt;

&lt;h2&gt;
  
  
  Thanks
&lt;/h2&gt;

&lt;p&gt;To &lt;a href="https://dev.to/jphi_baconnais"&gt;Jean-Philippe Baconnais&lt;/a&gt; for the live coding. You made Antigravity make sense for a room full of people who had never seen it.&lt;/p&gt;

&lt;p&gt;To &lt;a href="https://zenika.com" rel="noopener noreferrer"&gt;Zenika&lt;/a&gt; for backing community events.&lt;/p&gt;

&lt;p&gt;To &lt;a href="https://careers.aquantic.io/Aquantic" rel="noopener noreferrer"&gt;Aquantic&lt;/a&gt; (Zonova Sarl) and &lt;a href="https://www.linkedin.com/in/rasatavohary/" rel="noopener noreferrer"&gt;Zo R.&lt;/a&gt; for sponsoring and being there.&lt;/p&gt;

&lt;p&gt;To &lt;a href="https://openlab.utbm.fr/" rel="noopener noreferrer"&gt;UTBM Innovation Crunch Lab&lt;/a&gt;, &lt;a href="https://www.linkedin.com/in/olivier-lamotte-89a87549/" rel="noopener noreferrer"&gt;Olivier Lamotte&lt;/a&gt;, and Eva Hazebroucq for the space.&lt;/p&gt;

&lt;p&gt;To &lt;a href="https://www.linkedin.com/in/pauline-bonnin-parsons-3312b838/" rel="noopener noreferrer"&gt;Pauline Bonnin Parsons&lt;/a&gt; and &lt;a href="https://www.linkedin.com/in/angelikazaucha/" rel="noopener noreferrer"&gt;Angelika Zaucha&lt;/a&gt; for connecting us with Jean-Philippe.&lt;/p&gt;

&lt;p&gt;To &lt;a href="https://www.linkedin.com/in/fay%C3%A7al-bijji-413333205/" rel="noopener noreferrer"&gt;Fayçal Bijji&lt;/a&gt; and the &lt;a href="https://www.linkedin.com/company/gdg-utbm/" rel="noopener noreferrer"&gt;GDG UTBM&lt;/a&gt; team for co-organizing.&lt;/p&gt;

&lt;p&gt;To every student and dev who stayed, built, and deployed something. That is what made it worth running.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>gemini</category>
      <category>antigravity</category>
      <category>google</category>
    </item>
  </channel>
</rss>
