<?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: Deepak Nailwal</title>
    <description>The latest articles on DEV Community by Deepak Nailwal (@deepak_nailwal_6f2e152f37).</description>
    <link>https://dev.to/deepak_nailwal_6f2e152f37</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3808235%2F018ca95a-3c83-4806-9ba1-5d8fc6e91d2d.webp</url>
      <title>DEV Community: Deepak Nailwal</title>
      <link>https://dev.to/deepak_nailwal_6f2e152f37</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/deepak_nailwal_6f2e152f37"/>
    <language>en</language>
    <item>
      <title>Circuit: why AI agents need a circuit breaker before they touch production</title>
      <dc:creator>Deepak Nailwal</dc:creator>
      <pubDate>Sat, 15 Aug 2026 15:02:38 +0000</pubDate>
      <link>https://dev.to/deepak_nailwal_6f2e152f37/circuit-why-ai-agents-need-a-circuit-breaker-before-they-touch-production-4i6i</link>
      <guid>https://dev.to/deepak_nailwal_6f2e152f37/circuit-why-ai-agents-need-a-circuit-breaker-before-they-touch-production-4i6i</guid>
      <description>&lt;p&gt;Most AI-agent demos follow the same script: give the agent a plain-English instruction, watch it call an API, done. It's a satisfying demo. It's also not the hard part.&lt;/p&gt;

&lt;p&gt;The hard part is what happens next. What happens when the agent is wrong? What happens when it's asked — accidentally or on purpose — to do something dangerous, like issuing a refund or deleting a record? What happens when the network drops halfway through a payment and the same request gets retried?&lt;/p&gt;

&lt;p&gt;That's the gap I built Circuit to close.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What Circuit actually does&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Circuit is a safety layer that sits between an AI agent and the real-world actions it takes through Swytchcode, which handles the actual API execution — auth, retries, schema validation — across more than 2,000 supported services.&lt;/p&gt;

&lt;p&gt;Before any action runs, Circuit puts it through four checks:&lt;/p&gt;

&lt;p&gt;1) &lt;strong&gt;Risk classification.&lt;/strong&gt; Every action gets tagged LOW, MEDIUM, HIGH, or BLOCKED based on what it does. Reading a list of repos is LOW risk. Issuing a refund is HIGH risk. Deleting a production database is BLOCKED outright, no matter what.&lt;br&gt;
2) &lt;strong&gt;Human confirmation&lt;/strong&gt;. HIGH-risk actions stop and wait. The agent has to show me exactly what it's about to do — service, action, parameters — before I type "yes."&lt;br&gt;
3) &lt;strong&gt;Idempotency protection&lt;/strong&gt;. If the same action is requested twice (say, because a retry fired after a timeout), Circuit recognizes it and returns the cached result instead of executing it again. No double refunds.&lt;br&gt;
4) &lt;strong&gt;A permanent audit trail&lt;/strong&gt;. Every action, allowed or blocked, gets logged with a timestamp and reasoning — so there's always a record of what an agent actually did and why.&lt;/p&gt;

&lt;p&gt;The whole thing lives in a single Python file, with a free fallback parser so it can be tested without any API keys at all.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Proving it against a real API, not a simulation&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It's easy to build a safety layer that only ever talks to a mock. I wanted proof it worked against something real, so I connected it to the GitHub API through Swytchcode's CLI pipeline — swytchcode get to pull the integration, swytchcode auth connect for OAuth, then swytchcode exec to actually run the call.&lt;/p&gt;

&lt;p&gt;The result: a real GitHub issue, created live, with a 201 status code straight from GitHub's API. Not mocked, not simulated — a genuine HTTP round trip triggered by a natural-language instruction, filtered through Circuit's risk checks the whole way.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What actually broke along the way&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;None of this worked on the first try, and the failures were more instructive than the successes:&lt;/p&gt;

&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Sandbox vs. production mode. New Swytchcode projects default to a sandbox environment that points at localhost instead of the real API. Nothing fails loudly — it just quietly never leaves your machine — until you flip "mode": "sandbox" to "mode": "production" in tooling.json.&lt;br&gt;
Workspace mismatches. Authenticating a provider happens per-workspace. Create a new project directory and you can end up in a fresh, unauthenticated workspace even though the same account already has GitHub connected elsewhere. swytchcode auth workspace to list and switch fixed it.&lt;br&gt;
Windows encoding quirks. The Swytchcode CLI logs status with emoji (🔐) to stderr. Python's subprocess module on Windows defaults to cp1252, which can't decode them, and throws an unrelated-looking UnicodeDecodeError. Forcing UTF-8 decoding with errors="replace" on every subprocess call fixed it for good.&lt;br&gt;
PowerShell quoting. Inline JSON bodies with --body '{"key":"value"}' get mangled by PowerShell's quoting rules. Writing the body to a temp JSON file and passing --body payload.json instead is the reliable path on Windows.&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;
&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;/blockquote&gt;

&lt;p&gt;Every one of these was silent or confusing at first — the kind of thing that erodes trust in an agent fast if you don't build in visibility. That's part of why Circuit prints exactly what command it ran, the exit code, and the raw output whenever a real call fails, instead of swallowing the error.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why this matters more than another API demo&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Anyone can wire an agent to one API and call it a project. The interesting question is what happens when that agent is wrong, or asked to do something irreversible, or the network hiccups at the worst possible moment. Those are the conditions real production systems live in, and they're exactly what most agent demos skip.&lt;/p&gt;

&lt;p&gt;Circuit doesn't skip them. It's a small, reusable pattern — risk classification, confirmation, idempotency, audit — that works the same way whether the underlying action is a GitHub issue, a Slack message, or a Stripe refund, because it sits on top of Swytchcode's uniform execution layer rather than hand-rolling integration code per service.&lt;/p&gt;

&lt;p&gt;Code: &lt;a href="https://github.com/deepaknailwal/circuit-agent" rel="noopener noreferrer"&gt;https://github.com/deepaknailwal/circuit-agent&lt;/a&gt;&lt;/p&gt;

</description>
      <category>swytchcode</category>
      <category>agents</category>
      <category>opensource</category>
      <category>automation</category>
    </item>
    <item>
      <title>Gemini Intelligence Is Not Just an AI Feature — It's a Platform Shift (And Developers Should Be Worried)</title>
      <dc:creator>Deepak Nailwal</dc:creator>
      <pubDate>Tue, 19 May 2026 16:51:31 +0000</pubDate>
      <link>https://dev.to/deepak_nailwal_6f2e152f37/gemini-intelligence-is-not-just-an-ai-feature-its-a-platform-shift-and-developers-should-be-110m</link>
      <guid>https://dev.to/deepak_nailwal_6f2e152f37/gemini-intelligence-is-not-just-an-ai-feature-its-a-platform-shift-and-developers-should-be-110m</guid>
      <description>&lt;h1&gt;
  
  
  devchallenge,#googleiochallenge,#gemini,#android
&lt;/h1&gt;

&lt;h2&gt;
  
  
  The Announcement That Changed How I Think About Android Development
&lt;/h2&gt;

&lt;p&gt;I've been building Android apps for 4 years. I've survived the transition from Java to Kotlin, from imperative UI to Jetpack Compose, from REST to GraphQL. But what Google announced at I/O 2026 feels different — and not entirely in a good way.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gemini Intelligence&lt;/strong&gt; is not a chatbot update. It's not a new API endpoint you can optionally call. Google is embedding Gemini directly into Android 17 at the OS layer — not inside a single app, but across the entire system.&lt;/p&gt;

&lt;p&gt;The demo said it all: Gemini found a university syllabus in Gmail, identified required textbooks, and auto-added them to a shopping cart — across three different apps, with zero developer involvement.&lt;/p&gt;

&lt;p&gt;Let that sink in.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Actually Got Announced (The Technical Reality)
&lt;/h2&gt;

&lt;p&gt;Here's what's real and shipping:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Gemini Intelligence on Android 17&lt;/strong&gt; — On-device agentic AI that works proactively across apps&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Create My Widget&lt;/strong&gt; — Users describe a widget in plain language; Gemini builds it on the fly&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gemini in Chrome (Android)&lt;/strong&gt; — Summarization, cross-tab research, direct integration with Gmail + Calendar + Keep&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Firebase Agent-Native Pivot&lt;/strong&gt; — Firebase is repositioning as an agent-first backend platform&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Android Studio Gemini Tooling&lt;/strong&gt; — Deeper AI-assisted coding, not just autocomplete&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Android XR Glasses&lt;/strong&gt; — With Samsung, Warby Parker, Gentle Monster — live navigation, translation, in-lens display&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Googlebooks&lt;/strong&gt; — Chrome OS is dead. "Aluminum OS" (Android 17 desktop) is the future, launching via Acer, ASUS, Dell, HP, Lenovo this fall&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  My Honest Take: The Power — and the Problem
&lt;/h2&gt;

&lt;h3&gt;
  
  
  The Power
&lt;/h3&gt;

&lt;p&gt;For users, this is genuinely impressive. The grocery list demo, the background spin class booking, the Gboard Rambler — these are real-life problems being solved at the OS level.&lt;/p&gt;

&lt;p&gt;For developers, Firebase going "agent-native" is a big opportunity. If you're building apps that coordinate complex multi-step workflows, Firebase agents could eliminate a lot of boilerplate orchestration code you'd otherwise write yourself.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Problem No One Is Talking About
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;When AI works across your app without you doing anything — who is responsible when it goes wrong?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Right now, Gemini can read your app's content and act on it as part of a larger cross-app flow. Your app didn't call any API. You didn't write any agent code. But Gemini is using your UI, your data, and representing actions to the user as if your app is involved.&lt;/p&gt;

&lt;p&gt;As a developer, I have questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What are the data exposure boundaries?&lt;/li&gt;
&lt;li&gt;What happens when Gemini misreads context from my app?&lt;/li&gt;
&lt;li&gt;How do I opt out — or opt in — to being part of these agent flows?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Google's I/O sessions still don't have clear answers on &lt;strong&gt;Firebase agent pricing at scale&lt;/strong&gt; or &lt;strong&gt;data guarantees&lt;/strong&gt; for enterprise apps plugged into Gemini Intelligence. Until those answers arrive, shipping production apps that depend on this feels premature.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'm Actually Going to Try First
&lt;/h2&gt;

&lt;p&gt;The &lt;strong&gt;Create My Widget&lt;/strong&gt; API is my immediate next experiment. The idea of users describing their home screen widget in plain text and getting a working result is a UX paradigm shift — and if it exposes hooks for developers to define widget templates or constrain outputs, there's a real customization opportunity here.&lt;/p&gt;

&lt;p&gt;I'm also watching the &lt;strong&gt;Flutter + Gemini&lt;/strong&gt; session from May 20 closely, because the cross-platform implications of OS-layer AI on a Dart-compiled UI stack are... non-trivial.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Bottom Line
&lt;/h2&gt;

&lt;p&gt;Google I/O 2026 isn't saying "here's a cool AI tool for your app." It's saying &lt;strong&gt;"AI is now the OS, and your app lives inside it."&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That's either the most exciting thing you've heard all year, or it's keeping you up at night. For me, it's both.&lt;/p&gt;

&lt;p&gt;The platform is shifting beneath our feet — and as developers, the worst thing we can do is treat Gemini Intelligence as just another library to add to &lt;code&gt;build.gradle&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;What feature from I/O 2026 are you most excited — or most nervous — about? Drop it in the comments. 👇&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Tags: #googleiochallenge #devchallenge #gemini #android&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>googleiochallenge</category>
    </item>
    <item>
      <title>Business idea in this AI era ??</title>
      <dc:creator>Deepak Nailwal</dc:creator>
      <pubDate>Thu, 05 Mar 2026 15:54:49 +0000</pubDate>
      <link>https://dev.to/deepak_nailwal_6f2e152f37/business-idea-in-this-ai-era--3je7</link>
      <guid>https://dev.to/deepak_nailwal_6f2e152f37/business-idea-in-this-ai-era--3je7</guid>
      <description>&lt;p&gt;As we are living in this era of &lt;em&gt;artificial intelligence&lt;/em&gt; and we are viewing that how ai is rapidly taking away most of jobs.&lt;br&gt;
We had seen how Chat-gpt became a part of our daily life, we had seen how bots and agents became a part of profesionals life in the past years.&lt;/p&gt;

&lt;p&gt;but now this year and nexts are the era of &lt;strong&gt;agentic ai&lt;/strong&gt; which is more powerful than chatgpt ,claude ,gemini and many more chat bots.&lt;/p&gt;

&lt;p&gt;so if we want that ai would not replace we have to work on agentic ai......&lt;/p&gt;

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