You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m also seeing extremely high input token usage on a relatively small SvelteKit project, even after adding an AGENTS.md file that excludes node_modules, .svelte-kit/, and build/ folders.
Since last night, I’ve already burned through $15 in usage, which is far beyond what is expected for a project of this size.
Here’s the exact error I’m now encountering on each prompt:
[!ERROR]
{
"data": { "message": "AI_APICallError: input length and max_tokens exceed context limit: 172775 + 32000 > 200000, decrease input length or max_tokens and try again"},
"name": "UnknownError"}
I also pulled my Claude usage logs and saw input token counts regularly in the 160k–172k range, all within minutes:
I’ve tried compacting the session and deleting recent messages, but I’m now completely blocked due to the context limit being exceeded on every request.
I don't have access to our conversation from 18 minutes ago due to the context limit error you're seeing. Each conversation session starts > fresh for me.
As a result, I am unable to do anything.
I’d be happy to share my session log privately if that helps with debugging.
I use claude-sonnet-4-20250514 for build mode. I'm on latest, and my project has no type errors. I as able to overcome the issue by switching to Gemini Pro 2.5 but It started doing things contrary to what was planned in the planning stage at the start of the initial conversation, so it looks like there was some context loss when I switched models.
This might be a longshot, but do you have any MCP servers setup? If yes, how many?
The input tools array counts against your input token usage. If you have a massive number of unique tools, it could cause input token overages, and wouldn't be addressable with the /compact feature since tools are sent on every request.
This might be a longshot, but do you have any MCP servers setup? If yes, how many?
The input tools array counts against your input token usage. If you have a massive number of unique tools, it could cause input token overages, and wouldn't be addressable with the /compact feature since tools are sent on every request.
Activity
thdxr commentedon Jul 20, 2025
what model are you using?
thdxr commentedon Jul 20, 2025
also are you on latest? and does your project have a lot of type errors?
jakubdonovan commentedon Jul 21, 2025
I use
claude-sonnet-4-20250514for build mode. I'm on latest, and my project has no type errors. I as able to overcome the issue by switching to Gemini Pro 2.5 but It started doing things contrary to what was planned in the planning stage at the start of the initial conversation, so it looks like there was some context loss when I switched models.jaredbarranco commentedon Jul 22, 2025
This might be a longshot, but do you have any MCP servers setup? If yes, how many?
The input
toolsarray counts against your input token usage. If you have a massive number of unique tools, it could cause input token overages, and wouldn't be addressable with the/compactfeature since tools are sent on every request.jakubdonovan commentedon Jul 22, 2025
Just these two:

rekram1-node commentedon Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Add Den organizations, org permissions, and template sharing surfaces (…