<?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: Sitanshu Kumar</title>
    <description>The latest articles on DEV Community by Sitanshu Kumar (@sitanshukr08).</description>
    <link>https://dev.to/sitanshukr08</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%2F3946455%2F36129820-3d9f-4d44-ad9c-039fe6f0b2b5.png</url>
      <title>DEV Community: Sitanshu Kumar</title>
      <link>https://dev.to/sitanshukr08</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sitanshukr08"/>
    <language>en</language>
    <item>
      <title>How I Built AegisDesk: A Zero-Token Semantic IT Agent with &lt;5ms Latency</title>
      <dc:creator>Sitanshu Kumar</dc:creator>
      <pubDate>Fri, 22 May 2026 16:34:00 +0000</pubDate>
      <link>https://dev.to/sitanshukr08/how-i-built-aegisdesk-a-zero-token-semantic-it-agent-with-5ms-latency-3p6p</link>
      <guid>https://dev.to/sitanshukr08/how-i-built-aegisdesk-a-zero-token-semantic-it-agent-with-5ms-latency-3p6p</guid>
      <description>&lt;p&gt;If you’ve built AI agents recently, you know the standard playbook: you take a user's prompt, feed it into GPT-4 or Claude alongside a massive JSON schema of available tools, and ask the LLM to figure out which tool to use.&lt;/p&gt;

&lt;p&gt;This works for prototypes. But in an Enterprise IT environment, it’s a disaster.&lt;/p&gt;

&lt;p&gt;Using an LLM for Intent Routing takes anywhere from 800ms to 2,000ms. It burns API tokens on every single "hello" or "my laptop is broken" message. Worse, LLMs hallucinate—if a user asks to "Provision an Azure SQL database," an overly helpful LLM might hallucinate a non-existent tool call and crash your pipeline.&lt;/p&gt;

&lt;p&gt;I wanted to build an autonomous IT Helpdesk agent that was deterministic, instant, and practically free to run. That led me to build AegisDesk, an open-source, multi-agent IT platform powered by LangGraph, SQLite, and Zero-Token Semantic Routing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Architecture: Zero-Token Routing&lt;/strong&gt;&lt;br&gt;
Instead of relying on a monolithic prompt, AegisDesk abandons LLM-based routing entirely.&lt;/p&gt;

&lt;p&gt;When a query enters AegisDesk, it never hits the cloud. Instead, the local pipeline intercepts the query and embeds it using the BAAI/bge-small-en-v1.5 sentence-transformer model via ONNX (fastembed).&lt;/p&gt;

&lt;p&gt;This local vector is then mathematically compared (via Cosine Similarity) against an offline vocabulary of IT intents:&lt;/p&gt;

&lt;p&gt;network_diagnostics: (ping, traceroute, nmap, tcp, udp)&lt;br&gt;
cloud_integrations: (okta, jira, aws, azure, cyberark)&lt;br&gt;
web_scraping: (wiki, internal docs, cve lookup)&lt;br&gt;
The result? The query is mathematically routed to the correct highly-specialized LangGraph sub-agent in ~4.5 milliseconds for $0.00.&lt;/p&gt;

&lt;p&gt;TIP&lt;/p&gt;

&lt;p&gt;Enterprise Safety Net: If the semantic match confidence falls below 0.55, AegisDesk refuses to guess. It safely falls back to a generalized, read-only RAG (Retrieval-Augmented Generation) agent, guaranteeing no destructive commands are executed by mistake.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dynamic Few-Shot Learning via SQLite&lt;/strong&gt;&lt;br&gt;
Static keywords are great, but IT environments evolve. What happens when a user types an obscure proprietary software name that isn't in our offline vocabulary?&lt;/p&gt;

&lt;p&gt;To solve this, I integrated Dynamic Few-Shot Learning directly into the routing layer using SQLite Graph Memory.&lt;/p&gt;

&lt;p&gt;When AegisDesk initializes, it queries a routing_examples table inside an ACID-compliant SQLite database. It extracts historical, successfully resolved IT tickets and embeds them dynamically into the routing corpus.&lt;/p&gt;

&lt;p&gt;If an Administrator notices the agent struggling with a query like "Run a traceroute to internal-git.corp", they can manually inject the learning directly via the CLI:&lt;/p&gt;

&lt;p&gt;bash&lt;/p&gt;

&lt;p&gt;aegisdesk teach-router "Run a traceroute to internal-git.corp" it_support network_diagnostics&lt;br&gt;
The next time the router boots, it embeds that exact phrase. The system effectively "fine-tunes" its routing logic in real-time, achieving &amp;gt;90% strict-match routing accuracy without a single line of Python code being altered.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Zero-Trust Security Boundaries&lt;/strong&gt;&lt;br&gt;
Building an autonomous agent that can execute ipconfig, ping, or scrape internal HR wikis is inherently dangerous. AegisDesk implements two critical security mitigations at the tool execution layer:&lt;/p&gt;

&lt;p&gt;RCE Defense (Remote Code Execution): Subprocess execution explicitly enforces shell=False. Before any command touches the OS, inputs are scrubbed using strict Regex [^a-zA-Z0-9.-_] to eliminate bash metacharacters (&amp;amp;, |, ;, $).&lt;br&gt;
SSRF Defense (Server-Side Request Forgery): The Web Scraping agent is hardened against TOCTOU (Time-Of-Check to Time-Of-Use) attacks. Outbound HTTP requests undergo pre-flight DNS checks. Any resolution attempting to hit loopback (127.0.0.1) or private cloud metadata subnets (169.254.169.254) is aborted at the socket level.&lt;br&gt;
Even with these defenses, AegisDesk utilizes LangGraph's interrupt_before functionality to trigger Human-in-the-Loop (HITL) confirmations before executing any terminal command.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Try It Out&lt;/strong&gt;&lt;br&gt;
AegisDesk proves that you don't need massive, bloated monolithic LLMs to build intelligent enterprise agents. By pairing lightning-fast deterministic routing with specialized LangGraph swarms, you can build systems that are safer, cheaper, and exponentially faster.&lt;/p&gt;

&lt;p&gt;You can install the CLI directly from PyPI today:&lt;/p&gt;

&lt;p&gt;bash&lt;/p&gt;

&lt;p&gt;pip install aegisdesk&lt;br&gt;
Check out the full source code and documentation on GitHub: github.com/sitanshukr08/Aegisdesk&lt;/p&gt;

&lt;p&gt;If you’re building multi-agent swarms or semantic routers, I’d love to hear your thoughts in the comments!&lt;/p&gt;

</description>
      <category>python</category>
      <category>ai</category>
      <category>langgraph</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
