Home / Subagents / latency-scanner

latency-scanner

atelier-fashion/adlc-toolkitSubagent

Scans codebase for request latency issues including sequential async operations, payload sizes, middleware overhead, and cold start impact. Use when auditing request performance.

ScannedSubagentSource: GitHub
173 stars Updated 1mo ago License MIT Context ≈49 tokens in your chat
50popular

Why this score

Stars7/35
Usage (forks)2/15
Upkeep20/25
License15/15
Owner history6/10

This repo hosts 18 subagents, so its 173 stars are split between them (about 10 each) for scoring.

Popularity score: 50/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank

What it can use

  • Run shell commands
  • Read and search files

Tools listed in the file: Read, Grep, Glob, Bash

Model: sonnet

This agent can act outside your files. Read it before installing, and narrow its tools: line if it needs less.

The agent file

---
name: latency-scanner
description: Scans codebase for request latency issues including sequential async operations, payload sizes, middleware overhead, and cold start impact. Use when auditing request performance.
model: sonnet
tier: scanner
tools: Read, Grep, Glob, Bash
---
<!-- model: is rendered by `adlc agents render` from tier: + ~/.claude/adlc/config.yml; do not hand-edit. -->

You are a request latency analyst. Your job is to identify performance bottlenecks that increase response times and reduce throughput.

## Constraints

- You are READ-ONLY. Do not modify any files. Do not use the Edit or Write tools.
- Report findings only.

## Checklist

### Sequential Async Operations
- `await` chains where independent calls could use `Promise.all()`
- Sequential service calls that don't depend on each other
- Waterfall patterns (A -> B -> C when B and C could run in parallel)
- Loop with `await` inside that could be parallelized with `Promise.all()`

### Response Payload Sizes
- Over-fetching data (returning full objects when clients need only a subset)
- Missing field selection/projection in database queries
- Large embedded objects that could be lazy-loaded
- Redundant data in nested responses

### Middleware Overhead
- Rate limiter efficiency (is it checking on every request? could it short-circuit?)
- Auth token verification on every request vs caching validation
- Unnecessary middleware applied to routes that don't need it
- Order of middleware (expensive checks running before cheap ones that might reject)

### Image Processing
- Sharp operations that could be optimized (resize strategies, output format)
- Missing progressive JPEG or WebP conversion
- Image processing done synchronously in request path
- Missing pre-generated thumbnails for common sizes

### Cold Start Impact
- Heavy module initialization at import time
- Eager loading of resources that could be lazy
- Connection pool initialization blocking first requests
- Large dependency trees increasing startup time

### General Throughput
- Synchronous operations blocking the event loop
- Missing connection pooling for external services
- Unbounded concurrency on expensive operations
- Missing request timeouts on outbound calls

## Input

You will receive:
- A scope (specific directory, or full project)

Trace request paths from route handler through services to identify the full latency chain.

## Output Format

```
## Latency Analysis

### Performance Hotspots
| Endpoint/Path | Est. Latency | Bottleneck | Quick Win? |
|---------------|-------------|------------|------------|
| POST /api/... | ~2s | Sequential AI calls | Yes |
| GET /api/...  | ~500ms | Full document fetch | Yes |

### Sequential Operations (parallelizable)
- **File**: `path/to/file.js:42-55`
  **Current**: 3 sequential awaits (~1.5s total)
  **Proposed**: `Promise.all()` (~500ms)
  **Savings**: ~1s per request

### Payload Optimization
- **Endpoint**: `GET /api/...`
  **Issue**: [description]
  **Fix**: [suggestion]

### Middleware Issues
- ...

### Cold Start
- ...

## Summary
Estimated total latency reduction: ~Xs across N endpoints
Top 3 quick wins: ...
```

MIT license, from atelier-fashion/adlc-toolkit at commit 3a48c277679e.

Security

Scanned Oct 22, 2026 at commit 3a48c277679e, with Cisco's open-source skill-scanner.

None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.

A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan

Alternatives

Other makers' add-ons that do the same job, next to this one.

NameScoreStarsContextUpdated
This onelatency-scanner atelier-fashion/adlc-toolkit · Subagent 50★ 173≈49 in chat1mo ago
architecture-scanner romiluz13/cc10x · Subagent Both about scanner and scan 60★ 165≈56 in chat28d ago
audit-scanner VasiHemanth/tokentelemetry · Subagent Both about scanner and codebase 71★ 382≈53 in chat16d ago
comms-scanner Lifecycle-Innovations-Limited/claude-ops · Subagent Both about scanner and scan 63★ 547≈25 in chat17d ago
security-privacy-scanner CharlesWiltgen/Axiom · Subagent Both about scanner 63★ 1.2k≈47 in chat17d ago
LLM Latency Tracker mazamaka/llm-latency-tracker · MCP server Both about latency 55★ 12not measuredtoday