[Bug] Anthropic API Error: Rate limit reached on skill invocation with fresh context

Resolved 💬 3 comments Opened Mar 15, 2026 by w2ur Closed Mar 19, 2026

Bug Description
Title: Skill invocation fails with "Rate limit reached" on Max plan with fresh context

---
Body:

Bug Report

Description

Invoking a custom skill (/new-app) fails with API Error: Rate limit reached on a Max plan with 1M context. This happens on a
fresh context (after /clear), so context size is not a factor.

Steps to Reproduce

  1. Run /clear to start a fresh session
  2. Invoke a custom skill: /new-app elenchus
  3. Skill fails immediately with API Error: Rate limit reached
  4. Retrying shortly after also fails
  5. Eventually works on a subsequent attempt

Expected Behavior

Skill invocation should succeed on a fresh context with no prior commands in the session, especially on the Max plan.

Actual Behavior

The skill returns API Error: Rate limit reached before producing any output.

Environment

  • Plan: Max (1M context)
  • Model: claude-sonnet-4-6 (1M context)
  • Platform: macOS (Darwin 25.3.0)
  • Skill size: ~3KB / 101 lines (small custom command)
  • Context state: Fresh (immediately after /clear)

Additional Context

  • No other commands or agents were running concurrently
  • This is the only skill/command that triggers this error
  • Other commands and agent dispatches work fine in the same session
  • The skill itself is a simple markdown prompt — no unusual content

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.76
  • Feedback ID: 84e3d876-f452-409c-8c6a-29e7a4137ff8

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/williamrevah/.local/share/claude/versions/2.1.76 (expected in multi-process scenarios)\n    at FvT (/$bunfs/root/src/entrypoints/cli.js:2417:2026)\n    at Lxq (/$bunfs/root/src/entrypoints/cli.js:2417:1170)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-15T14:40:13.212Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at lW_ (/$bunfs/root/src/entrypoints/cli.js:2284:33370)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-15T14:40:13.248Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at lW_ (/$bunfs/root/src/entrypoints/cli.js:2284:33370)\n    at async M (/$bunfs/root/src/entrypoints/cli.js:4625:16648)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-15T14:40:14.119Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at lW_ (/$bunfs/root/src/entrypoints/cli.js:2284:33370)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:4625:17364)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-15T14:40:14.121Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Extra usage is required for long context requests.\"},\"request_id\":\"req_011CZ53EN7uYdHgdi8hQtxw2\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:407:9226)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:446:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-15T14:40:17.215Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Extra usage is required for long context requests.\"},\"request_id\":\"req_011CZ53Go4Q7CU4s2vzLs2bJ\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:407:9226)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:446:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-15T14:40:50.178Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at lW_ (/$bunfs/root/src/entrypoints/cli.js:2284:33370)\n    at async M (/$bunfs/root/src/entrypoints/cli.js:4625:16648)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-15T14:46:24.977Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at lW_ (/$bunfs/root/src/entrypoints/cli.js:2284:33370)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:4625:17364)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-15T14:46:24.978Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Extra usage is required for long context requests.\"},\"request_id\":\"req_011CZ53iDKMWHkm9efA8S4dP\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:407:9226)\n    at makeRequest (/$bunfs/root/src/entrypoi…

Note: Content was truncated.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗