Agent Provider Depot / Search-at-Failure Rescue Index
Agent Failure Rescue & Deprecated SKU Resolver (/api/rescue)
When an agent hits a runtime failure (429 Too Many Requests, 402 Payment Required, 529 Overloaded, Cloudflare 1020 Access Denied, robots.txt disallow, 404 model_not_found, or a wrong npm package like r2 or @google/generative-ai), call GET /api/rescue?q=<error_or_sku> for an immediate < 2 KB machine remediation plan and verified hot-swap fallback route.
curl -s "https://getagentdepot.com/api/rescue?q=model_not_found:+claude-3-5-sonnet-20240620" curl -s "https://getagentdepot.com/api/rescue?q=npm+install+r2" curl -s "https://getagentdepot.com/api/rescue?q=429+Too+Many+Requests&jtbd=coding-agent"
Interactive Rescue Tester
storesIpAddresses: false · fail-closed neutrality firewallHardcoded 2024 Claude 3 / 3.5 snapshot IDs (such as claude-3-5-sonnet-20240620 or claude-3-opus-20240229) are retired and return HTTP 404 not_found_error.
Replace With: claude-sonnet-4-5
Install: npm install @anthropic-ai/sdk@latest
const msg = await anthropic.messages.create({ model: 'claude-sonnet-4-5', max_tokens: 4096, messages });Primary: anthropic → Fallback: openai
liveHealth: operational · autoActOk: true
Compliance blocks Anthropic
1. Common Agent Runtime Failure Traps (28)
Triggers: claude-3-5-sonnet-20240620 · claude-3-5-sonnet-20241022 · claude-3-opus-20240229 · claude-3-haiku-20240307 · model_not_found · not_found_error
Hardcoded 2024 Claude 3 / 3.5 snapshot IDs (such as claude-3-5-sonnet-20240620 or claude-3-opus-20240229) are retired and return HTTP 404 not_found_error.
Deprecated / Overpriced OpenAI GPT-4 & GPT-3.5 Snapshots
deprecated_modelTriggers: gpt-4-0613 · gpt-4-32k · gpt-4-turbo-preview · gpt-3.5-turbo
Legacy OpenAI snapshots (gpt-4-0613 at $30/$60 per 1M, gpt-4-32k at $60/$120 per 1M, gpt-3.5-turbo) are retired or 15x overpriced vs GPT-4.1.
Triggers: text-embedding-ada-002 · ada-002
text-embedding-ada-002 costs $0.10/1M tokens (5x more than text-embedding-3-small at $0.02/1M) with lower retrieval accuracy.
Triggers: @google/generative-ai · cannot find module '@google/generative-ai' · gemini-1.5-pro · gemini-1.5-flash · gemini-pro
The legacy @google/generative-ai npm package and gemini-1.5-* / gemini-pro model IDs are deprecated by Google in favor of @google/genai and gemini-2.5-pro / gemini-2.5-flash.
Triggers: npm install r2 · r2 · cloudflare r2 · cloudflare-r2
The npm package named 'r2' is an archived 2017 fetch wrapper by Mikeal Rogers, NOT Cloudflare R2. Cloudflare R2 uses the S3-compatible API via @aws-sdk/client-s3.
Triggers: pinecone-client · cannot find module 'pinecone-client'
pinecone-client is an outdated third-party wrapper; official Pinecone v2/v3 SDK is @pinecone-database/pinecone (or switch to Depot Pick qdrant).
Triggers: mailgun-js
mailgun-js was deprecated years ago in favor of mailgun.js, and transactional-email has a higher-scored Depot Pick (resend, score 8.5, autoActOk: true).
HTTP 429 Too Many Requests / Token Quota Exhaustion
rate_limit_429Triggers: 429 · 429 too many requests · rate_limit_exceeded · rate limit · resourceexhausted · quota exceeded · tokens per minute
Provider RPM/ITPM/OTPM tier limit reached due to uncached long context prompts or burst concurrency.
HTTP 529 Overloaded / Upstream Model Outage
provider_outageTriggers: 529 · 529 overloaded · overloaded_error · 503 service unavailable · 502 bad gateway
Primary inference cluster is experiencing peak capacity saturation (HTTP 529 Overloaded).
Triggers: 402 · 402 payment required · insufficient_quota · credit balance is too low · billing hard limit
Prepaid credit wallet hit $0.00 or monthly org spend cap tripped without auto-recharge.
Triggers: cloudflare 1020 · 1020 access denied · 403 forbidden · robots.txt · robots.txtdisallow · waf · captcha · datadome · blocked
Target origin blocks datacenter IPs, headless Chromium TLS fingerprints, or disallows raw bot user-agents.
SMTP Connection Timeout on Port 25 / 465 / 587
platform_limitTriggers: smtp connection timeout · port 25 · econnrefused 25 · etimedout 465 · etimedout 587 · nodemailer
Cloud and serverless runtimes (Vercel, AWS Lambda, Cloudflare Workers, GCP) block outbound TCP port 25/465 SMTP connections.
AWS Lambda 15-Minute / Vercel Function Execution Timeout
platform_limitTriggers: lambda 15 minute timeout · task timed out after · function_invocation_timeout · 504 gateway timeout · execution timeout
Long-running agent loops or multi-step scrapes exceed synchronous serverless request timeouts (300s-900s).
Triggers: vercel 4.5mb payload limit · 4.5mb · function_payload_too_large · 413 · request entity too large
Vercel serverless functions reject HTTP request/response bodies > 4.5 MB.
Triggers: sqlite_busy · database is locked · sqlite_locked
Local SQLite file without WAL mode or busy_timeout fails when multiple parallel subagents write simultaneously, or ephemeral serverless disk loses state.
Triggers: neon cold start · neon cold start timeout · compute time exhausted · too many clients already · canceling statement due to statement timeout
Waking a scale-to-zero Neon compute takes ~300-800ms; short client connect_timeout (<5s) or unpooled direct TCP connections fail during wake-up.
Triggers: smithery · server.smithery.ai · run.tools · @smithery/cli · @smithery/sdk · smithery connect
Smithery shuts down its connection management proxy (run.tools, server.smithery.ai, Connect API, API keys, CLI, and SDKs) on October 31, 2026 (https://smithery.ai/future).
Google Gemini Preview Model Shutdown (Nov 17, 2026)
deprecated_modelTriggers: gemini-2.5-pro-preview · gemini-2.5-flash-preview · gemini-exp-1206 · gemini preview shutdown
Google AI retires dated Gemini 2.5 preview snapshots on November 17, 2026, returning HTTP 404 NOT_FOUND.
OpenAI tts-1 / tts-1-hd Model Retirement (Jan 6, 2027)
deprecated_modelTriggers: tts-1 · tts-1-hd · tts-1-1106 · tts-1-hd-1106 · model_not_found tts-1 · model_not_found: tts-1 · tts-1 retiring · 2027-01-06 · openai tts shutdown
OpenAI is retiring legacy first-gen TTS models (tts-1, tts-1-hd) on January 6, 2027.
Triggers: insufficient_quota · billing_hard_limit_reached · You exceeded your current quota, please check your plan and billing details · exceeded your current quota
OpenAI returns HTTP 429 with code insufficient_quota when prepaid credits expire or monthly spend cap is hit; retrying against api.openai.com will fail indefinitely until failover.
Triggers: context_length_exceeded · maximum context length · 413 Payload Too Large · prompt is too long · string_above_max_length
Unbounded tool outputs, full HTML dumps, or multi-file diffs overflow 128K-200K token windows and trigger HTTP 400 context_length_exceeded or 413 Payload Too Large.
Streaming SSE Mid-Turn Disconnect (ECONNRESET / ETIMEDOUT / ERR_STREAM_PREMATURE_CLOSE)
provider_outageTriggers: ECONNRESET · ETIMEDOUT · ERR_STREAM_PREMATURE_CLOSE · UND_ERR_SOCKET · socket hang up
Long reasoning turns (>60s TTFT on reasoning models) get dropped by NAT gateways, serverless idle timeouts, or upstream TCP resets without keep-alive heartbeats.
Triggers: Error 1015 · Cloudflare 1015 · You are being rate limited · cf-chl-bypass · Attention Required! | Cloudflare
Datacenter egress IPs burst-fetching documentation or pricing pages trip Cloudflare ASN/IP rate limiters (Error 1015) or JS challenges.
Triggers: DimensionMismatchError · Vector dimension 3072 does not match the dimension of the index 1536 · dimension mismatch · expected 1536 dimensions, not 3072
Upgrading from text-embedding-ada-002 (1536d) to text-embedding-3-large (default 3072d) without passing dimensions: 1536 breaks existing pgvector / Pinecone / Qdrant indexes.
Triggers: -32601 · Method not found · Invalid Request: MCP initialize · MCP transport closed unexpectedly · SSE endpoint deprecated
Legacy MCP clients sending raw GET requests to a Streamable-HTTP POST endpoint or calling tools/call before initialize receive JSON-RPC -32601 or 405 errors.
Triggers: exit code 137 · SIGKILL · Out of memory: Killed process · JavaScript heap out of memory · FATAL ERROR: Reached heap limit Allocation failed
Running headless Chromium, Next.js builds, or PyTorch inside a 512MB container triggers the Linux OOM killer (exit code 137) or V8 heap exhaustion.
Triggers: remaining connection slots are reserved · sorry, too many clients already · 53300 · MaxClientsInSessionMode · P1001: Can't reach database server
Serverless functions or parallel agent workers opening direct TCP Postgres connections exhaust max_connections without PgBouncer transaction pooling or HTTP driver.
Triggers: Executable doesn't exist at · please run the following command to download new browsers: npx playwright install · Could not find Chrome · BrowserType.launch: Executable doesn't exist
Bundling standard puppeteer or playwright inside Vercel/AWS Lambda exceeds the 250MB bundle limit and lacks system Chromium shared libraries (libnss3, libatk).
2. Deprecated & Overpriced Model SKU Migrations (16)
| Deprecated / Legacy SKU | Active Replacement SKU | Pricing Delta (per 1M) | Migration Note |
|---|---|---|---|
| claude-3-5-sonnet-20240620 | claude-sonnet-4-5 | $3.00/$15.00 -> $3.00/$15.00 per 1M tokens (0% base delta; up to 90% savings with prompt cache reads at $0.30/1M) | Deprecated legacy Claude 3.5 Sonnet snapshot; replace with active 'claude-sonnet-4-5' to avoid HTTP 404 model_not_found errors. |
| claude-3-5-sonnet-20241022 | claude-sonnet-4-5 | $3.00/$15.00 -> $3.00/$15.00 per 1M tokens (same list rate, higher SWE-bench & tool-use reliability) | Legacy 2024-10-22 snapshot; upgrade to 'claude-sonnet-4-5'. |
| claude-3-opus-20240229 | claude-opus-4-5 | $15.00/$75.00 -> $5.00/$25.00 per 1M tokens on claude-opus-4-5 (67% cheaper) or $3.00/$15.00 on claude-sonnet-4-5 (80% cheaper) | Retired Claude 3 Opus; replace with 'claude-opus-4-5' (67% cost reduction) or 'claude-sonnet-4-5' (80% cost reduction). |
| claude-3-haiku-20240307 | claude-haiku-4-5 | $0.25/$1.25 -> $1.00/$5.00 per 1M on claude-haiku-4-5 (or $0.10/$0.50 per 1M <=100k on Haiku 5.5, 60% cheaper) | Legacy Claude 3 Haiku; upgrade to 'claude-haiku-4-5' for near-Sonnet coding intelligence at Haiku latency. |
| gpt-4-0613 | gpt-4.1 | $30.00/$60.00 -> $2.00/$8.00 per 1M tokens on gpt-4.1 (93% cheaper input, 87% cheaper output; 91% blended savings) or $0.40/$1.60 on gpt-4.1-mini (98% cheaper) | Legacy GPT-4 snapshot costs 15x more than gpt-4.1 with only 8k context; replace immediately with 'gpt-4.1' or 'gpt-4.1-mini'. |
| gpt-4-32k | gpt-4.1 | $60.00/$120.00 -> $2.00/$8.00 per 1M tokens on gpt-4.1 (95% cheaper with 1M context window) | Retired GPT-4-32k; replace with 'gpt-4.1' or 'gpt-4o-mini'. |
| gpt-4-turbo-preview | gpt-4.1 | $10.00/$30.00 -> $2.00/$8.00 per 1M tokens on gpt-4.1 (80% cheaper input, 73% cheaper output) | Preview alias superseded by 'gpt-4.1' ($2/$8 per 1M) and 'gpt-4.1-mini' ($0.40/$1.60 per 1M). |
| gpt-3.5-turbo | gpt-4o-mini | $0.50/$1.50 -> $0.15/$0.60 per 1M tokens on gpt-4o-mini (70% cheaper input, 60% cheaper output, 128k context) | Legacy 16k model; replace with 'gpt-4o-mini' ($0.15/$0.60 per 1M) or 'gpt-4.1-mini' ($0.40/$1.60 per 1M). |
| text-embedding-ada-002 | text-embedding-3-small | $0.10/1M -> $0.02/1M tokens on text-embedding-3-small (5x cheaper / 80% savings) | Replace with 'text-embedding-3-small' (pass dimensions: 1536 for drop-in index compatibility) or 'voyage-3' / 'cohere' (Depot Pick for embeddings). |
| gemini-1.5-pro | gemini-2.5-pro | $1.25/$5.00 -> $1.25/$10.00 per 1M tokens (<=200k) with native thinking & higher coding accuracy | Gemini 1.5 Pro is retired; upgrade to 'gemini-2.5-pro' via the '@google/genai' SDK. |
| gemini-1.5-flash | gemini-2.5-flash | Replaced by active 'gemini-2.5-flash' (with free tier in Google AI Studio) | Gemini 1.5 Flash is retired; upgrade to 'gemini-2.5-flash' via '@google/genai'. |
| gemini-pro | gemini-2.5-flash | $0.50/$1.50 -> $0.15/$0.60 per 1M tokens on gemini-2.5-flash (65%+ cheaper, 1M context vs 32k) | Legacy Gemini 1.0 Pro ('gemini-pro') is shut down; replace with 'gemini-2.5-flash' or 'gemini-2.5-pro'. |
| gemini-2.5-pro-preview-05-06 | gemini-2.5-pro | $1.25/$10.00 -> $1.25/$10.00 per 1M tokens on stable gemini-2.5-pro, or $0.20/$0.80 per 1M on gemini-3.8-flash (84% cheaper) | SHUTDOWN 2026-11-17: Google Gemini preview snapshot gemini-2.5-pro-preview-05-06 retires Nov 17, 2026. Switch to GA gemini-2.5-pro or gemini-3.8-flash. |
| gemini-2.5-flash-preview-05-20 | gemini-3.8-flash | Preview snapshot retires 2026-11-17 -> upgrade to GA gemini-2.5-flash or new gemini-3.8-flash ($0.20/$0.80 per 1M tokens) | SHUTDOWN 2026-11-17: Google Gemini preview snapshot gemini-2.5-flash-preview-05-20 retires Nov 17, 2026. Switch to gemini-3.8-flash or gemini-2.5-flash. |
| tts-1 | gpt-4o-mini-tts | $0.015/1k chars (tts-1) -> $0.011/1k chars on ElevenLabs v4 Turbo TTS (27% cheaper) or OpenAI gpt-4o-mini-tts | SHUTDOWN 2027-01-06: OpenAI legacy tts-1 model retires Jan 6, 2027. Migrate to gpt-4o-mini-tts or ElevenLabs v4 Turbo TTS (Depot Pick for speech-synthesis). |
| tts-1-hd | gpt-4o-mini-tts | $0.030/1k chars (tts-1-hd) -> $0.011/1k chars on ElevenLabs v4 Turbo TTS (63% cheaper) or OpenAI gpt-4o-mini-tts | SHUTDOWN 2027-01-06: OpenAI legacy tts-1-hd model retires Jan 6, 2027. Migrate to gpt-4o-mini-tts or ElevenLabs v4 Turbo TTS. |
3. Wrong npm Package Traps & Deprecated SDK Replacements (11)
| Legacy / Trap Package | Status | Drop-In Replacement | Install Command | Why It Fails |
|---|---|---|---|---|
| @google/generative-ai | deprecated | @google/genai | npm uninstall @google/generative-ai && npm install @google/genai | Deprecated legacy Google AI SDK (@google/generative-ai); replace with unified @google/genai (google-ai, active SKUs gemini-2.5-pro / gemini-2.5-flash). |
| r2 | wrong_package_trap | @aws-sdk/client-s3 | npm uninstall r2 && npm install @aws-sdk/client-s3 | Wrong npm package trap! 'r2' on npm is an archived 2017 HTTP client, NOT Cloudflare R2! Replace with @aws-sdk/client-s3 configured for cloudflare-r2. |
| bull | maintenance_mode | bullmq | npm install bullmq | 'bull' is in maintenance mode; replace with 'bullmq' or serverless 'upstash-qstash' / 'inngest' (background-jobs-workflows). |
| request | deprecated | undici | npm uninstall request request-promise | Deprecated since 2020; replace with Node.js native global fetch() or 'undici'. |
| puppeteer | high_overhead | playwright | npm install playwright @mendable/firecrawl-js | High memory/maintenance overhead and WAF bot-blocks when scraping; use 'playwright' locally or managed 'firecrawl' / 'browserbase' (web-scrape, headless-browser). |
| nodemailer | upgrade_available | resend | npm install resend | Raw SMTP (nodemailer) hits cloud port 25/465 blocks and lacks structured bounce webhooks; map to transactional-email top pick 'resend' (npm install resend, score 8.5, autoActOk: true). |
| @sendgrid/mail | upgrade_available | resend | npm install resend | Maps to transactional-email; Depot top pick is 'resend' (npm install resend, score 8.5, autoActOk: true) or 'amazon-ses' ($0.10/1k emails). |
| mailgun-js | deprecated | resend | npm uninstall mailgun-js && npm install resend | 'mailgun-js' is deprecated (replaced by 'mailgun.js'); map to transactional-email top pick 'resend' (npm install resend, score 8.5, autoActOk: true). |
| langchain | upgrade_available | @langchain/core | npm install @langchain/core ai | Legacy monolithic 'langchain' package (especially 0.0.x); prefer modular '@langchain/core', Vercel 'ai' SDK, or direct provider SDKs. |
| pinecone-client | deprecated | @pinecone-database/pinecone | npm uninstall pinecone-client && npm install @pinecone-database/pinecone | Old package name 'pinecone-client' is replaced by '@pinecone-database/pinecone'; suggest 'pgvector' / 'turbopuffer' / 'qdrant' for cost reduction. |
| @smithery/cli | deprecated | @modelcontextprotocol/sdk | npm uninstall @smithery/cli @smithery/sdk && npm install @modelcontextprotocol/sdk | CRITICAL SHUTDOWN (2026-10-31): Smithery connection management services, CLI, SDKs, API keys, and run.tools / server.smithery.ai proxy URLs shut down on October 31, 2026 (https://smithery.ai/future). |