alexgreensh/token-optimizer/tree/main/desktop/token-optimizer-desktop
token-optimizer
Claude 데스크톱 앱용 상태 표시줄입니다. 프롬프트 위에 나타나 세션 품질, 컨텍스트 사용량, 캐시 카운트다운, 5시간 및 주간 한도를 보여 주고 Clawd가 세션의 동작을 연출합니다.
이 mod 소개
Token Optimizer Desktop
Claude 데스크톱 앱용 상태 표시줄입니다. 프롬프트 위에 나타나 세션 품질, 컨텍스트 사용량, 캐시 카운트다운, 5시간 및 주간 한도를 보여 주고 Clawd가 세션의 동작을 연출합니다.
Install
Token Optimizer plugin에 포함되어 있으므로(hooks/hooks.json이 modules 아래에서 이 폴더의 hooks/register.tsx를 지정함) 따로 설치할 것이 없습니다. 이 폴더에 자체 manifest가 있는 것은 claude plugin test로 테스트를 따로 실행하기 위해서입니다.
Claude Code 2.1.287 이상과 Anthropic의 mods 기능이 필요합니다. Anthropic은 원격으로 mods를 끌 수 있습니다. 꺼져도 아무것도 고장 나지 않고 표시줄만 나타나지 않습니다. 터미널에는 기존 상태 줄이 유지됩니다. VS Code는 지원하지 않습니다.
What you get
- 가장 급한 일을 한 문장으로 보여 주며 버튼은 최대 하나입니다.
- 마우스를 올리면 카드가 열리는 다섯 가지 표시: 품질 등급, 컨텍스트 사용량, 캐시 카운트다운, 5시간 한도, 주간 한도.
- Clawd 옆의 화살표를 펼치면 한 줄이 더 나타납니다. 브랜치, 세션 시간, 도구 호출, 압축 횟수(있을 때), 마지막 체크포인트를 저장한 시각(종류와 관계없이 또는 이전 세션의 관련 체크포인트), 그리고 최근 30일 동안 Token Optimizer가 절약한 token 수를 보여 줍니다. 대시보드에 표시되는 합계와 같습니다.
- 버튼: Clean up(Token Optimizer의 안내에 따라 압축), Start fresh(두 번째 클릭으로 체크포인트를 저장하고 지운 뒤 첫 메시지에 넘김), Keep warm(캐시가 warm일 때만 쓰는 수동 한 번 클릭 새로 고침. 자동으로 실행되지 않으며 사용량을 조금 소비함).
캐시 카운트다운은 추정치입니다. Claude 플랜에서는 1시간, API에서는 5분이며, 가능하면 세션 자체를 기준으로 측정합니다.
Settings
~/.claude/settings.json의 env 블록에서 TOKEN_OPTIMIZER_STATUS_BAR=0을 설정하면 표시줄을 숨기고, TOKEN_OPTIMIZER_STATUS_BAR_ANIMATE=0을 설정하면 Clawd를 움직이지 않게 합니다.
Full docs
Token Optimizer README와 문서 사이트의 「Claude desktop app」 페이지를 참조하세요.
설치
먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.
claude plugin marketplace add alexgreensh/token-optimizer claude plugin install token-optimizer
원문 / README
Token Optimizer Desktop
A status bar for the Claude desktop app. It draws above your prompt and shows session quality, context fill, cache countdown, and your 5-hour and weekly limits, with Clawd acting out what the session is doing.
Install
It ships inside the Token Optimizer plugin (hooks/hooks.json names this folder's hooks/register.tsx under modules), so there is nothing extra to install. This folder keeps its own manifest only so its tests run on their own with claude plugin test.
Needs Claude Code 2.1.287 or newer and Anthropic's mods feature. Anthropic can switch mods off remotely; when off, nothing breaks and the bar just does not appear. The terminal keeps its existing status line. VS Code is not supported.
What you get
- One sentence about the most urgent thing, with at most one button.
- Five marks with hover cards: quality grade, context fill, cache countdown, 5-hour limit, weekly limit.
- The arrow beside Clawd unfolds one more line: branch, session time, tool calls, compactions (when any), when the last checkpoint was saved (any kind, or a relevant one from an earlier session), and the tokens Token Optimizer saved you in the last 30 days, the same total the dashboard shows.
- Buttons: Clean up (compacts with Token Optimizer's guidance), Start fresh (second click saves a checkpoint, clears, and hands it to your first message), Keep warm (manual one-click cache refresh, only while the cache is warm, never automatic, uses a small amount of usage).
The cache countdown is an estimate: 1 hour on Claude plans, 5 minutes on the API, measured from the session itself when possible.
Settings
TOKEN_OPTIMIZER_STATUS_BAR=0 hides the bar and TOKEN_OPTIMIZER_STATUS_BAR_ANIMATE=0 keeps Clawd still, set in the env block of ~/.claude/settings.json.
Full docs
See the Token Optimizer README and the docs site page "Claude desktop app".
동명의 다른 작품
- token-optimizeralexgreensh · ★ 2495

