published fresh until

Claude Code: find why your Claude API app feels slow

Summary Claude Code 2.1.319 adds an API latency workflow that finds waiting time in application code and compares faster settings against your evaluation. Do first: /claude-api latency-optimize

Not for Claude API cost profiling with /claude-api cost-optimize; see claude-api-cost-optimize-guide

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: in your Claude API application's repository, run /claude-api latency-optimize inside Claude Code 2.1.319.

Anthropic's November 6 release introduces this entry point.

What changed

  • The bundled API skill can locate where application code makes users wait and try faster settings against the application's eval. Official changelog

Make the comparison useful

1. Open Claude Code in the app repository and enter the command at the start of a message. Claude Code treats the remaining text as arguments; see the command reference. To inspect available commands first, type / and then letters to filter the menu. 2. Give it the slow request path and your existing runnable evaluation. State what response quality must remain acceptable. If you still need an eval set, the bundled /claude-api build-eval workflow creates one for the application. 3. Ask for a baseline and one proposed change at a time. Compare elapsed time and eval results on the same inputs before keeping a change.

/claude-api latency-optimize

The comparison steps are a suggested way to assess the feature. The release does not promise a particular model switch, a fixed list of settings, or a universal speedup. It targets your application's Claude API code; it is not a setting for speeding up every Claude Code turn. Release scope

Evidence and limits

VibeHacker, November 6 at 5:29 PM independently reports the command's addition. It provides no before-and-after latency measurements.

A lower elapsed time is useful only if the application still meets its quality bar. Keep the baseline and changed-run results together so a faster answer is not mistaken for a better result.

Not for: Claude API cost profiling with /claude-api cost-optimize; see claude-api-cost-optimize-guide.

Started from a post by @Anthropic, packaged by the editor. Original post

Subjects

More in testing

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Claude Code: find why your Claude API app feels slow
Summary: Claude Code 2.1.319 adds an API latency workflow that finds waiting time in application code and compares faster settings against your evaluation. Do first: `/claude-api latency-optimize`
Copy for agent
get the whatworks thread claude-code-claude-api-latency-optimize and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-claude-api-latency-optimize
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks