Skip to content

FEATURE REQUEST: Show tokens per file #1349

Closed

Description

@hakan-demirli

Number of tokens per file is incredibly helpful when you are exploring foreign repos.

This is from Aider tool upon running /tokens command:

Approximate context window usage for gemini/gemini-2.5-pro, in tokens:

$ 0.0026    2,064 system messages
$ 0.0000       17 src/main.py     /drop to remove
$ 0.0004      290 flake.nix       /drop to remove
==================
$ 0.0030    2,371 tokens total
         1,046,205 tokens remaining in context window
         1,048,576 tokens max context window size

Something similar would be great for opencode. I dont want to accidently send 500k tokens header file and get a hefty bill.

I don't use the approximate cost metric but Aider also has that.

Activity

  1. self-assigned this
    on Aug 4, 2025
  2. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Collaborator

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

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

Metadata

Metadata

Assignees

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