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

statusline

mod로 제공되는 상태 줄입니다. 설치할 때마다 같은 모습이며, 컴퓨터마다 `statusLine` 스크립트를 설정할 필요가 없습니다.

newtonmunene99@newtonmunene99

newtonmunene99/claudekit/tree/main/plugins/statusline

번역 완료

이 mod 소개

프롬프트 위와 아래에 상태 줄을 그리는 Claude Code mod입니다. 위쪽에는 5시간 및 주간 한도를 나타내는 알약형 표시(바, 사용률, 재설정 시간), 컨텍스트 창 사용량, 현재 세션의 입력/출력/캐시 읽기 token, API 가격 기준 세션 비용을 표시합니다. 바는 70%에서 노란색, 90%에서 빨간색으로 바뀝니다. 아래쪽에는 터미널에서만 폴더, dirty 표식이 있는 브랜치, 모델, 세션 이름과 짧은 session id를 표시합니다. mod를 지원하는 Claude Code 빌드가 필요하며, 작동한 뒤 ~/.claude/settings.json에서 statusLine을 삭제하세요.

설치

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

claude plugin marketplace add newtonmunene99/claudekit
claude plugin install statusline
원문 / README

statusline

A status line as a mod, the same on every install: no statusLine script to set up per machine.

Needs a Claude Code build with mod support (function hooks).

Above the prompt

A row of pills, wrapping when the window is narrow:

| Pill | Shows | | :--- | :---- | | 5h | 5-hour limit: bar, % used, reset time (↻ 19:20) | | 7d | weekly limit: bar, % used, reset day and time (↻ Thu 19:00) | | ctx | context window fill | | ↑ ↓ ≋ | this session's input, output and cache-read tokens | | $ | this session's cost at API prices (what /cost shows) |

Bars turn yellow at 70% and red at 90%. A figure with no reading yet is left out. Token totals count every model request of this session's turns and start at 0 when a session is resumed, so they can run below what the cost covers. Another plugin's band (Conductor's track band) stays, under the pills.

Under the prompt

At the end of the hint line (terminal only): folder (branch✗) · model · name · id. ✗ means git has uncommitted changes; a detached HEAD shows the short commit. The session's name shows when it has one (a /rename shows from the next prompt), then the first 8 characters of the session id.

Once it works for you, remove statusLine from ~/.claude/settings.json.

Writing a mod in claudekit

One mod per plugin, in plugins/<name>/: .claude-plugin/plugin.json (with "types": "./types/index.d.ts" when it keeps $.state), hooks/hooks.json naming ./register.tsx, the module and its pure helpers in hooks/, tests in tests/. Run claude plugin validate plugins/<name> and claude plugin test plugins/<name> before a version bump. A mod that serves one plugin lives inside that plugin (the Conductor HUD lives in conductor).

Two engine rules shape this:

  • A plugin hooks each event once without a matcher, so two mods that both react to turn.complete or a prompt cannot share a plugin cleanly.
  • $ is never passed into a function imported from another file; helpers that take $ are top-level function declarations in the module itself.

비슷한 프로젝트