ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
GitHub 저장소 · 작성자 Akash001uts

context-bar

Claude Code 플러그인으로 프롬프트 위에 실시간 컨텍스트 창 사용량 막대를 표시하고 /context 범주별로 나누며, 속도 제한·자동 압축 전 남은 토큰·세션 길이를 보여 줍니다.

Akash001uts@Akash001uts

Akash001uts/claude-mods/tree/main/plugins/context-bar

번역 완료

이 mod 소개

context-bar는 프롬프트 위에 쌓인 막대를 배치해 컨텍스트 창이 얼마나 찼는지 보여 주고, /context가 보고하는 것과 같은 범주(시스템 프롬프트, 도구, 메모리 파일, 메시지 등)로 나눕니다. 각 세션 시작에 활성화되고 매 턴 뒤 새로 고칩니다. 두 번째 줄에는 구독 계정의 5시간 및 7일 속도 제한, 자동 압축 전 남은 토큰, 세션 실행 시간을 표시하며 공간이 없으면 숨깁니다. /context-bar 명령은 세션별로 막대를 켜고 끄며, /context-bar details는 전체 내역 창을 엽니다. 각 범주의 창 점유율, 메모리 파일, MCP 서버와 로드된 도구, 가장 큰 skills, 사용자 지정 에이전트, 마지막 API 호출의 캐시 분할을 보여 줍니다. Claude Code에서 사용량 숫자만 읽고 파일이나 메시지는 읽지 않으며, 외부로 아무것도 보내지 않고 디스크에도 저장하지 않습니다.

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

claude plugin marketplace add Akash001uts/claude-mods
claude plugin install context-bar
원문 / README

context-bar

A bar above the prompt that shows how full your context window is, split into the same categories /context uses (system prompt, tools, memory files, messages and so on). I used to run /context every so often just to check how heavy a session was getting. Now it's always there, so I can wrap up before auto-compact kicks in, and I can spot what's eating my context, like MCP servers I forgot were still connected.

███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒ 30% 60.0k/200.0k
■ System prompt 4.0k  ■ Messages 56.0k
5h 42% (resets in 2h 14m)  ·  7d 18%  ·  100.0k to compact  ·  session 2h 5m

How it works

  • It turns on at the start of every session and updates after each turn.
  • The third line shows your 5-hour and 7-day rate limits (subscription accounts only), how many tokens are left before auto-compact, and how long the session has been running. It hides itself if there isn't room for it.
  • /context-bar hides or shows the bar for the current session.
  • /context-bar details opens a pane with the full breakdown: each category and its share of the window, every memory file, MCP servers (and how many of their tools are loaded), your biggest skills, custom agents, and the cache split of the last API call. Press r to refresh it.

What it runs and stores

  • It only reads the session's usage numbers from Claude Code, the same ones /context shows. It doesn't read your files or messages, and it doesn't send anything anywhere.
  • The details pane asks Claude Code for the full token count, which costs a few extra requests (same as running /context). So it only refreshes while the pane is open, after each turn or when you press r.
  • Whether the bar is on is kept for the current session only. Nothing is written to disk.

Licence

MIT

동명의 다른 작품

비슷한 프로젝트