CommandCodeAI / CommandCodeAI/command-code

Context Window Visual Reference.

Open
#348 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

p2
Dominant language
No language data
Stars
4k
Forks
350
PR merge metrics
No merged PRs in 30d

Description

Feature Description

A small indicator of available/used context window instead of the current implementation which uses Percentage of context used rather than raw numbers. Also the current context is hidden if usage is below 80%.

Use Case

Reason for asking such a feature:

  1. Sometimes adding and downloading skills can bloat the context window by a magnitude and degrade code quality and debugs. Being able to visually see the context windows is a blessing in disguise that can help tackle such issues.
  2. Prompting long contexts on a models can be heavy based on the task and its complexity, giving a model longer task even at smaller context left can degrade its code quality if it is already in the middle of a code. Having a reference of context window helps in planning the prompts a little bit better and in patches.

I’ve added some visual references to the minified code to get it working for me. I’d appreciate it if they could be used as a reference.

Scenario 1: < 80% token context usage

Image

Scenario 2: > 80% token context usage

Image
Additional Context

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue provides visual references but names no files, tests, or entry points. First locate the existing context-usage percentage display and confirm how token usage is calculated; done means showing raw used and available context numbers in both described usage scenarios.

Written by the indexing model from the issue text.

Assessment

Domain
ai, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.