Excessive token consumption since ~Jan 12, 2026 - apparently sending entire project context on every request #5355

Closed
opened 2026-02-16 17:51:45 -05:00 by yindo · 0 comments
Owner

Originally created by @Kevinnz36 on GitHub (Jan 13, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Since around January 12, 2026, OpenCode is consuming a ridiculous amount of tokens for simple questions. I'm talking 13,000+ tokens for asking "what's the tech stack?" on a fresh project.

What I Tested
Created a brand new Astro project (default template, minimal files) and asked basic questions in a fresh session:

"What is the tech stack in this project?" → 13,088 tokens
"How do I install packages/dependencies?" → 13,840 tokens
"Why pnpm and not npm?" → 14,161 tokens

Using opencode -c (continuing sessions) is even worse - easily 50k+ tokens per query.

What I've Tried

Started completely fresh sessions with opencode (not -c)
Downgraded between versions
Tested on a minimal project with no history

Nothing helps. It seems like OpenCode is sending the entire project as context every single time, no matter what.

My Setup

OpenCode installed via: npm i -g opencode-ai
Version: 1.1.17 (also tested versions from 1.1.0 to 1.1.16)
Using GitHub Copilot Pro subscription provider
Models: Claude Sonnet 4.5

This is burning through my monthly quota in a single day. Screenshots attached showing the exact consumption.
Is there a way to limit how much context OpenCode sends? Or is this a bug?

Plugins

No response

OpenCode version

1.1.17

Steps to reproduce

No response

Screenshot and/or share link

Image Image Image

Operating System

Windows 10

Terminal

Cmder, windows terminal

Originally created by @Kevinnz36 on GitHub (Jan 13, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Since around January 12, 2026, OpenCode is consuming a ridiculous amount of tokens for simple questions. I'm talking 13,000+ tokens for asking "what's the tech stack?" on a fresh project. What I Tested Created a brand new Astro project (default template, minimal files) and asked basic questions in a fresh session: "What is the tech stack in this project?" → 13,088 tokens "How do I install packages/dependencies?" → 13,840 tokens "Why pnpm and not npm?" → 14,161 tokens Using opencode -c (continuing sessions) is even worse - easily 50k+ tokens per query. What I've Tried Started completely fresh sessions with opencode (not -c) Downgraded between versions Tested on a minimal project with no history Nothing helps. It seems like OpenCode is sending the entire project as context every single time, no matter what. My Setup OpenCode installed via: npm i -g opencode-ai Version: 1.1.17 (also tested versions from 1.1.0 to 1.1.16) Using GitHub Copilot Pro subscription provider Models: Claude Sonnet 4.5 This is burning through my monthly quota in a single day. Screenshots attached showing the exact consumption. Is there a way to limit how much context OpenCode sends? Or is this a bug? ### Plugins _No response_ ### OpenCode version 1.1.17 ### Steps to reproduce _No response_ ### Screenshot and/or share link <img width="2560" height="1440" alt="Image" src="https://github.com/user-attachments/assets/fb8cf9b7-7b6f-453f-b600-91632a4b3d4f" /> <img width="2560" height="1440" alt="Image" src="https://github.com/user-attachments/assets/992fa298-4985-488a-af4e-f186fe3b79c7" /> <img width="2560" height="1440" alt="Image" src="https://github.com/user-attachments/assets/9e80fb79-cede-4dc1-af05-8424497cadd2" /> ### Operating System Windows 10 ### Terminal Cmder, windows terminal
yindo added the windowsbug labels 2026-02-16 17:51:45 -05:00
yindo closed this issue 2026-02-16 17:51:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5355