cd /news/developer-tools/how-i-built-relay-an-ast-based-laten… · home topics developer-tools article
[ARTICLE · art-83715] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

How I built Relay: An AST-based latency auditor for Python AI agents

Arclat, a studio focused on developer tools for AI agent teams, has released Relay, an AST-based latency auditor that scans Python AI agent codebases to identify async anti-patterns such as missing awaits, sequential LLM calls that could be parallelized, and blocking I/O inside async functions. The tool suggests fixes and runs as an MCP server, integrating directly with Claude Code to eliminate log files and context switching.

read1 min views1 publishedAug 2, 2026

I kept running into the same problem building AI agents.

They were slow and I had no idea why.

No obvious errors, logs looked fine, but requests were taking

way longer than they should. Turns out the codebase was full

of async anti-patterns. Missing awaits, sequential LLM calls

that could've been parallel, blocking I/O hiding inside async

functions.

So I built Relay.

It uses AST analysis to scan your agent codebase and find

exactly these spots. Not just flagging them, it suggests

fixes too. And since it runs as an MCP server, it works

directly inside Claude Code. No log files, no context switching.

pip install relay-arclat

or check it out here built by Arclat, a studio making developer tools for AI agent teams.

── more in #developer-tools 4 stories · sorted by recency
── more on @arclat 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/how-i-built-relay-an…] indexed:0 read:1min 2026-08-02 ·