Context Window Visual Reference.

未關閉
#348 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
45/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
冷清
領域
ai, cli

研究方向

該 issue 提供了視覺參考,但沒有指出檔案、測試或進入點。首先找到現有的內容使用百分比顯示,並確認 token 使用量的計算方式;完成的標準是在所描述的兩種使用情境中顯示已使用內容和可用內容的原始數值。

由索引模型根據 Issue 內容生成。

描述

p2
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

主要語言
沒有語言資料
星號
4k
分支
350
PR 合併指標
30 天內沒有已合併 PR

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

CommandCodeAI/command-code 的其他 Issue

查看 CommandCodeAI/command-code 的全部 Issue

相似的 Issue

更多 AI Infra & Agents Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。