Relay
Audits AI agent and voice-agent codebases to identify, verify, and fix latency bottlenecks.
Agent latency often stems from structural issues like unstreamed responses, inefficient async calls, or repeated client construction, which are hard to spot with traditional profilers. Relay addresses this by providing an open-source MCP server and CLI that audits AI agent and voice-agent codebases using an AST engine. It precisely identifies these hidden latency bottlenecks, ranks them by impact, and employs a verification pass to eliminate false positives, ensuring developers can find and fix performance issues before they affect users, all without external dependencies or API keys, running entirely on your local machine.
主な機能
01AST-based detection for precise identification of latency patterns in Python code
02Verification pass to confirm real latency gaps and dismiss false positives with clear reasons
031 GitHub stars
04Impact ranking of findings to prioritize the most critical performance fixes
05Six specialized latency detectors for issues like streaming gaps, sequential tool calls, and blocking I/O
06Ability to apply fixes directly from Claude Code, with a dry-run option for review
ユースケース
01Integrate performance auditing into CI/CD pipelines to prevent high-impact latency regressions from shipping.
02Generate detailed reports for visual analysis of latency findings using the local Relay dashboard.
03Proactively identify and resolve latency bottlenecks in AI agent and voice-agent codebases during development.