<?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: Dante Harker</title>
    <description>The latest articles on DEV Community by Dante Harker (@danteharker).</description>
    <link>https://dev.to/danteharker</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%2F3762341%2F59a0847d-c107-4676-bf81-b7cdfcf49a41.png</url>
      <title>DEV Community: Dante Harker</title>
      <link>https://dev.to/danteharker</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/danteharker"/>
    <language>en</language>
    <item>
      <title>Stop your AI Agent from Hallucinating with a "Red Telephone" ☎️</title>
      <dc:creator>Dante Harker</dc:creator>
      <pubDate>Mon, 09 Feb 2026 15:33:29 +0000</pubDate>
      <link>https://dev.to/danteharker/stop-your-ai-agent-from-hallucinating-with-a-red-telephone-2fa2</link>
      <guid>https://dev.to/danteharker/stop-your-ai-agent-from-hallucinating-with-a-red-telephone-2fa2</guid>
      <description>&lt;p&gt;Building autonomous agents with Claude or Python? You know the fear.&lt;/p&gt;

&lt;p&gt;It starts well. The agent is coding, fixing bugs, and feeling productive. Then, confidence drops. It gets stuck in a loop. Or worse, it decides to "fix" your database by deleting the production table.&lt;/p&gt;

&lt;p&gt;We need a way to stop the chaos without killing the process.&lt;/p&gt;

&lt;p&gt;I built a standardised &lt;strong&gt;Model Context Protocol (MCP) Server&lt;/strong&gt; called the &lt;strong&gt;Red Telephone&lt;/strong&gt;. It gives your AI an "Emergency Brake" that pings your Telegram for approval before executing sensitive actions.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;Instead of letting the Agent guess, we give it a tool to "call home."&lt;/p&gt;

&lt;p&gt;When the Agent hits a critical decision (e.g., executing SQL, sending a payment, deleting a file), it triggers the &lt;code&gt;human_relay&lt;/code&gt; tool.&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
python
# The Agent calls the tool automatically when confidence is low
result = await call_human_relay(
    question="I am about to delete the production database. Proceed?",
    options=["Approve", "Deny"]
)

if result == "Approve":
    delete_database() # Only happens if YOU clicked yes on Telegram.
else:
    print("Aborted by Human.")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
