<?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: Abdur Rafay</title>
    <description>The latest articles on DEV Community by Abdur Rafay (@abdur_rafay_ar).</description>
    <link>https://dev.to/abdur_rafay_ar</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%2F4059071%2F242eac07-5fc7-4ad2-81cc-6699d35f0c43.jpg</url>
      <title>DEV Community: Abdur Rafay</title>
      <link>https://dev.to/abdur_rafay_ar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abdur_rafay_ar"/>
    <language>en</language>
    <item>
      <title>How I built Relay: An AST-based latency auditor for Python AI agents</title>
      <dc:creator>Abdur Rafay</dc:creator>
      <pubDate>Sun, 02 Aug 2026 12:27:16 +0000</pubDate>
      <link>https://dev.to/abdur_rafay_ar/how-i-built-relay-an-ast-based-latency-auditor-for-python-ai-agents-2jaj</link>
      <guid>https://dev.to/abdur_rafay_ar/how-i-built-relay-an-ast-based-latency-auditor-for-python-ai-agents-2jaj</guid>
      <description>&lt;p&gt;I kept running into the same problem building AI agents. &lt;br&gt;
They were slow and I had no idea why.&lt;/p&gt;

&lt;p&gt;No obvious errors, logs looked fine, but requests were taking &lt;br&gt;
way longer than they should. Turns out the codebase was full &lt;br&gt;
of async anti-patterns. Missing awaits, sequential LLM calls &lt;br&gt;
that could've been parallel, blocking I/O hiding inside async &lt;br&gt;
functions.&lt;/p&gt;

&lt;p&gt;So I built Relay.&lt;/p&gt;

&lt;p&gt;It uses AST analysis to scan your agent codebase and find &lt;br&gt;
exactly these spots. Not just flagging them, it suggests &lt;br&gt;
fixes too. And since it runs as an MCP server, it works &lt;br&gt;
directly inside Claude Code. No log files, no context switching.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;scans your Python codebase statically&lt;/li&gt;
&lt;li&gt;finds async bottlenecks (missing awaits, unparallelized calls, etc)&lt;/li&gt;
&lt;li&gt;surfaces fixes inline in your editor&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  try it
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;pip install relay-arclat&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;or check it out &lt;a href="//relay.arclat.com"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;built by Arclat, a studio making developer tools for AI agent teams.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>mcp</category>
      <category>performance</category>
      <category>python</category>
    </item>
  </channel>
</rss>
