GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — high input token usage on a small project · Issue #1172 · anomalyco/opencode

high input token usage on a small project #1172

New issue
Copy link
New issue
Copy link
Closed
Closed
high input token usage on a small project#1172
Copy link
Assignees
thdxr

Description

@jakubdonovan
jakubdonovan
opened on Jul 20, 2025
Issue body actions

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:

2025-07-20 14:29:30 — 172,448 tokens
2025-07-20 14:29:25 — 172,242 tokens
2025-07-20 14:29:15 — 171,931 tokens
...

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.

Activity

  1. thdxr
    self-assigned this
    on Jul 20, 2025
  2. thdxr commented on Jul 20, 2025

    @thdxr
    thdxr
    on Jul 20, 2025 – with Linear
    Member
    More actions

    what model are you using?

  3. thdxr commented on Jul 20, 2025

    @thdxr
    thdxr
    on Jul 20, 2025 – with Linear
    Member
    More actions

    also are you on latest? and does your project have a lot of type errors?

  4. jakubdonovan commented on Jul 21, 2025

    @jakubdonovan
    jakubdonovan
    on Jul 21, 2025
    Author
    More actions

    what model are you using?

    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.

  5. jaredbarranco commented on Jul 22, 2025

    @jaredbarranco
    jaredbarranco
    on Jul 22, 2025
    More actions

    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.

  6. jakubdonovan commented on Jul 22, 2025

    @jakubdonovan
    jakubdonovan
    on Jul 22, 2025
    Author
    More actions

    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.

    Just these two:
    Image

  7. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    rekram1-node
    on Dec 28, 2025
    Member
    More actions

    [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

  8. rekram1-node
    closed this as completedon Dec 28, 2025
  9. bussard76
    added a commit that references this issue on May 12, 2026

    Add Den organizations, org permissions, and template sharing surfaces (…

    21d3b44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @thdxr
    thdxr

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.