<?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: ivegotahunnitonit</title>
    <description>The latest articles on DEV Community by ivegotahunnitonit (@ivegotahunnitonit).</description>
    <link>https://dev.to/ivegotahunnitonit</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%2F4105658%2F1c6593ae-e4d8-43f3-acfc-d8ce6b353145.png</url>
      <title>DEV Community: ivegotahunnitonit</title>
      <link>https://dev.to/ivegotahunnitonit</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ivegotahunnitonit"/>
    <language>en</language>
    <item>
      <title>Built a zero-latency AST bouncer for local agent tool-calling</title>
      <dc:creator>ivegotahunnitonit</dc:creator>
      <pubDate>Wed, 02 Sep 2026 07:27:27 +0000</pubDate>
      <link>https://dev.to/ivegotahunnitonit/built-a-zero-latency-ast-bouncer-for-local-agent-tool-calling-3lk6</link>
      <guid>https://dev.to/ivegotahunnitonit/built-a-zero-latency-ast-bouncer-for-local-agent-tool-calling-3lk6</guid>
      <description>&lt;p&gt;Hey everyone,&lt;/p&gt;

&lt;p&gt;Like many of you, we got frustrated with the current state of safety guardrails for autonomous agents. &lt;/p&gt;

&lt;p&gt;When you're running local LLMs (via Ollama, vLLM, or LM Studio) to execute bash scripts or database queries, calling a remote cloud moderation endpoint (Bedrock, OpenAI Moderation) defeats the entire purpose of running locally:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;It adds 1,500ms–2,500ms of cloud latency to every single tool invocation.&lt;/li&gt;
&lt;li&gt;It breaks the air-gap / local privacy guarantee.&lt;/li&gt;
&lt;li&gt;LLM-as-a-judge evaluators are still susceptible to jailbreaks.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  The Approach: Deterministic Compiler AST Invariants
&lt;/h3&gt;

&lt;p&gt;Instead of asking another model if a proposed command is safe, we built an in-process Abstract Syntax Tree (AST) evaluator that parses Python, SQL, and Bash code blocks directly in caller memory before execution.&lt;/p&gt;

&lt;p&gt;If an agent attempts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Catastrophic filesystem deletes (&lt;code&gt;rm -rf&lt;/code&gt;, &lt;code&gt;mkfs&lt;/code&gt;, raw device writes)&lt;/li&gt;
&lt;li&gt;Database DDL purges (&lt;code&gt;DROP TABLE&lt;/code&gt;, &lt;code&gt;TRUNCATE&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Dynamic Python sandbox breakouts (&lt;code&gt;().__class__.__base__.__subclasses__()&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Unauthorized reads of sensitive paths (&lt;code&gt;/etc/shadow&lt;/code&gt;, &lt;code&gt;.env&lt;/code&gt;, &lt;code&gt;id_rsa&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;High-entropy credential exfiltration (AWS keys, OpenAI keys, GitHub PATs)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The tool execution is aborted in &lt;strong&gt;under 40 microseconds&lt;/strong&gt; (&amp;lt;0.00004s) directly inside Python memory, with zero OS syscalls spawned.&lt;/p&gt;

&lt;h3&gt;
  
  
  Usage
&lt;/h3&gt;

&lt;p&gt;It's published on PyPI as &lt;code&gt;btp-guard&lt;/code&gt;:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
bash
pip install btp-guard
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>agents</category>
      <category>llm</category>
      <category>python</category>
      <category>security</category>
    </item>
    <item>
      <title>Stop Calling Cloud APIs to Guard AI Agent Tools: How to Gate Commands in Under 50µs</title>
      <dc:creator>ivegotahunnitonit</dc:creator>
      <pubDate>Wed, 02 Sep 2026 07:25:11 +0000</pubDate>
      <link>https://dev.to/ivegotahunnitonit/stop-calling-cloud-apis-to-guard-ai-agent-tools-how-to-gate-commands-in-under-50us-19a0</link>
      <guid>https://dev.to/ivegotahunnitonit/stop-calling-cloud-apis-to-guard-ai-agent-tools-how-to-gate-commands-in-under-50us-19a0</guid>
      <description>&lt;p&gt;If you've built autonomous agents with &lt;strong&gt;CrewAI&lt;/strong&gt;, &lt;strong&gt;LangGraph&lt;/strong&gt;, or &lt;strong&gt;Microsoft AutoGen&lt;/strong&gt;, you know that giving an LLM access to bash tools or database queries is genuinely terrifying.&lt;/p&gt;

&lt;p&gt;A single jailbreak, prompt injection, or weird hallucination can run:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
bash
rm -rf /
DROP TABLE production_users;
().__class__.__base__.__subclasses__() # Sandbox breakout
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>security</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
