<?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: zeeshan khan</title>
    <description>The latest articles on DEV Community by zeeshan khan (@zeeshan9958).</description>
    <link>https://dev.to/zeeshan9958</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%2F4207378%2Fbc37824c-1dc1-4b8e-bea1-591c2bbb1da2.jpg</url>
      <title>DEV Community: zeeshan khan</title>
      <link>https://dev.to/zeeshan9958</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zeeshan9958"/>
    <language>en</language>
    <item>
      <title>Building AI Agents That Ask Before They Act</title>
      <dc:creator>zeeshan khan</dc:creator>
      <pubDate>Mon, 26 Oct 2026 23:47:11 +0000</pubDate>
      <link>https://dev.to/zeeshan9958/building-ai-agents-that-ask-before-they-act-3b22</link>
      <guid>https://dev.to/zeeshan9958/building-ai-agents-that-ask-before-they-act-3b22</guid>
      <description>&lt;p&gt;I am tired of seeing "autonomous" AI agents that are anything but.&lt;/p&gt;

&lt;p&gt;If you have spent much time building with LLMs lately, you have seen the same pattern. A developer gives an agent a tool, a goal, and a loop. The agent starts executing. Then, it hallucinates. It tries to call an API it wasn't supposed to touch, or it executes a sequence of actions that fundamentally breaks the user's workflow. &lt;/p&gt;

&lt;p&gt;In the rush to build "agentic" workflows, we are creating systems that act with too much confidence and not enough supervision. We are building digital employees that act before they check if they have permission to touch the steering wheel.&lt;/p&gt;

&lt;p&gt;At GodEngine.ai and AskShiva.ai, we decided to take a different path. Our philosophy is simple: AI agents must ask before they act.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem with Total Autonomy
&lt;/h2&gt;

&lt;p&gt;The industry is currently obsessed with the "loop." We want the agent to loop until the task is done. &lt;/p&gt;

&lt;p&gt;But in a real-world production environment, a "loop" can quickly become a "financial drain" or a "data nightmare." If an agent is tasked with managing a database or executing marketing workflows, the cost of an error isn't just a bad chat response. It is an incorrect entry in a production database or a botched email campaign sent to a client list.&lt;/p&gt;

&lt;p&gt;When I sit down to architect a system for a startup or a developer, I look at the "action boundary." Every time an agent hits a point where it moves from &lt;em&gt;thinking&lt;/em&gt; to &lt;em&gt;doing&lt;/em&gt;, there must be a checkpoint.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Human-in-the-Loop Framework
&lt;/h2&gt;

&lt;p&gt;We aren't building assistants that just talk; we are building agents that work. But "working" requires accountability.&lt;/p&gt;

&lt;p&gt;To achieve what we are building at GodEngine, we focus on three specific layers of verification:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Intent Verification:&lt;/strong&gt; Before an agent triggers a complex sequence, it must present the "Plan" to the user. Not just a vague summary, but a concrete list of steps: "I will do A, then B, then C. Do you agree?"&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Parameter Validation:&lt;/strong&gt; If the agent is about to execute a function, it should present the arguments it intends to use. If it is about to send an email, it should show the recipient and the body.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Post-Action Review:&lt;/strong&gt; The agent reports back on what it did and asks if the result matches the user's expectation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We call this "Permission-Driven Agency." It is the difference between a chaotic intern and a professional colleague.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Matters for Indian Founders
&lt;/h2&gt;

&lt;p&gt;The AI landscape in India is moving fast. We have the talent, we have the scale, and we are building for a global market. But to win globally, our products must be reliable.&lt;/p&gt;

&lt;p&gt;Founders building with AI shouldn't be afraid of the "Agent" label. You shouldn't have to build "guardrails" that are actually just massive, expensive prompt-engineering walls that fail 20% of the time. Instead, you build systems where the agent is designed to realize its own limitations.&lt;/p&gt;

&lt;p&gt;When we build at AskShiva.ai, we prioritize this transparency. Users shouldn't have to wonder, "What is the AI doing in the background?" They should feel in control because the agent is constantly checking in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Engineering for Control
&lt;/h2&gt;

&lt;p&gt;Building this isn't just about changing a prompt. It is about how you structure the integration between the LLM and the tool-calling mechanism.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The "Pause" State:&lt;/strong&gt; You have to architect your backend to handle a "pending approval" state. The agent isn't just running a script; it is waiting for an external signal to resume.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Contextual Confirmation:&lt;/strong&gt; You don't want to ask for permission for every single irrelevant step. That is annoying. You want the agent to be smart enough to know &lt;em&gt;when&lt;/em&gt; an action is high-stakes. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Granular Tool Access:&lt;/strong&gt; We treat tools as precious resources. An agent shouldn't have "Write" access by default. It should have "Draft" access, and only through human intervention does it gain "Commit" access.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Real Progress Over Hype
&lt;/h2&gt;

&lt;p&gt;I am not interested in discussing what AI might do in 2030. I care about what we are shipping today in Greater Noida and beyond.&lt;/p&gt;

&lt;p&gt;We are building agents that people can actually trust with real tasks. Real workflows. Real consequences. It is much harder to build an agent that asks for permission than one that just runs wild. It requires more logic, more structured state management, and a better understanding of user psychology.&lt;/p&gt;

&lt;p&gt;But the "wild" agents? They will fail the moment they encounter a professional environment with high stakes. The agents that survive—the ones that become part of the daily stack for developers and marketers—will be the ones that know when to stop and ask, "Is this what you wanted?"&lt;/p&gt;

&lt;p&gt;We are building the engines of the future, but we are building them with a hand on the brake.&lt;/p&gt;

&lt;p&gt;Are you building agents that act, or agents that ask? Let me know what you are working on in the replies.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>architecture</category>
      <category>llm</category>
    </item>
  </channel>
</rss>
