[Bug] Explore agent fails silently with context window overflow from multiple plugins/skills
Bug Description
When claude code tries to explore my codebase it often starts a explore agent. This runs for a bit and then seems to silently fail. Sometimes it tries again but eventually reverts to doing the search directly without using subagents.
I have asked Opus 4.6 to explain me what the problem is and it told me the following (altough i cannot really confirm or denie this, except that i indeed have a bunch of skills installed):
Explore/Agent subagents fail with "Prompt is too long" when many plugins (Vercel, Sentry, PostHog MCP, etc.) inject large amounts of context into the session. The injected context (skill descriptions, MCP tool definitions, knowledge graphs) consumes so much of the context window that subagents can't fit their own prompt.
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.1.83
- Feedback ID: 82b1c159-f895-4312-bb5f-577e8b185ba8
Errors
[{"error":"AxiosError: timeout of 5000ms exceeded\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:79:13356)\n at emit (node:events:92:22)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:78:3321)\n at request (/$bunfs/root/src/entrypoints/cli.js:81:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-25T17:09:10.925Z"},{"error":"Error: 1P event logging: 102 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:397:2687)\n at async doExport (/$bunfs/root/src/entrypoints/cli.js:397:1559)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-25T17:09:17.529Z"},{"error":"Error: {\"message\":\"Failed to export 102 events (code=ECONNABORTED, timeout of 10000ms exceeded)\",\"originalLine\":\"397\",\"originalColumn\":\"1710\",\"line\":\"397\",\"column\":\"1710\",\"sourceURL\":\"/$bunfs/root/src/entrypoints/cli.js\",\"stack\":\"Error: Failed to export 102 events (code=ECONNABORTED, timeout of 10000ms exceeded)\\n at doExport (/$bunfs/root/src/entrypoints/cli.js:397:1710)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (/$bunfs/root/src/entrypoints/cli.js:2681:27375)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:138:85511)\n at mP4 (/$bunfs/root/src/entrypoints/cli.js:138:86055)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:139:17366)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-25T17:09:17.530Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:244:3940)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-25T17:10:56.714Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗