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

glance

Claude Code 프롬프트 아래의 HUD입니다. 모델, git, 비용, 컨텍스트와 속도 제한 막대, 도구, skill, MCP, 에이전트, todo를 한눈에 봅니다.

번역 완료

이 mod 소개

English | 简体中文

glance

Claude Code mod로 만든 HUD를 프롬프트 아래에 표시합니다. 모델, 브랜치, 세션 비용, 컨텍스트 사용량, 5시간과 7일 제한, Claude가 지금 실행하는 일을 한눈에 보여 줍니다.

❯ █
◆ Opus 5.5 · main ↑1 ●3   $2.63 · ⏱ 16m
ctx █░░░░░░░░░ 14% · 145k/1M   5h █░░░░░░░░░ 8% · 2h21m   7d ░░░░░░░░░░ 2% · 6d21h
◐ Bash npm test   ✓ Read×12 Edit×3 Bash×5
✦ plugin-authoring · simplify   ⧉ Notion×2 Gmail×1
⚙ Explore find the config   2 agents
▸ 3/7 Writing the README
? for shortcuts

Claude Code 2.1.289 이상이 필요합니다. Mods는 릴리스마다 바뀔 수 있는 early-access API입니다. 업데이트 후 glance가 그리지 않으면 issue를 열어 주세요.

Install

Claude Code에서:

/plugin marketplace add VibeMage/claude-mod-glance
/plugin install glance@claude-mod-glance

shell에서도 설치할 수 있습니다.

claude plugin marketplace add VibeMage/claude-mod-glance
claude plugin install glance@claude-mod-glance

새 세션을 시작하거나 /reload-plugins를 실행하면 prompt 아래에 나타납니다. claude-hud 같은 statusLine과 함께 쓸 수 있으며 전환할 때는 ~/.claude/settings.json에서 statusLine을 제거해 같은 수치를 두 번 보지 않게 합니다.

What it shows

Header는 모델(claude-opus-5-5와 Opus 5.5), git 브랜치, ahead/behind, 변경 파일, 세션 비용과 지속 시간을 보여 줍니다. Bars는 사용한 token이 포함된 컨텍스트와 5h, 7d 속도 제한을 보여 주고 경고 임계값에서 빨간색이 됩니다. Tools는 현재와 가장 많이 쓴 도구, Skills and MCP는 로드된 skill과 MCP 호출, Agents는 실행 중인 subagent와 시작 수, Todos는 TodoWrite 또는 Task 진행을 보여 줍니다.

glance가 로드될 때 트랜스크립트를 읽으므로 그 전에 사용한 도구, MCP server, skill, todo도 집계합니다. 비용은 /cost가 보고하는 API 목록 가격 추정치이며 Pro나 Max 청구액이 아닙니다.

What it runs and reads

glance는 mod sandbox에서 Claude Code가 실행하는 단일 TypeScript 모듈 hooks/register.tsx입니다. 의존성, 다운로드, 네트워크 연결이 없습니다.

  • Runs: 세션 시작, 각 턴 뒤, 30초마다 git status --porcelain=v2 --branch를 실행해 브랜치, ahead/behind, 변경 파일 수를 읽습니다.
  • Reads: mod API로 모델, 컨텍스트, 속도 제한, 비용, 도구 이름과 입력, theme 설정을 읽습니다.
  • Observes: tool.call과 skill.prompt를 관찰해 이름과 짧은 라벨만 기록하며 호출은 바꾸거나 막지 않습니다.
  • Keeps: 수치는 세션 mod 상태에만 보관하고 파일이나 세션 사이에 저장하지 않습니다.
  • Sends: 어디에도 보내지 않으며 git에도 고정된 인자 외의 입력을 주지 않습니다.

Privacy: PRIVACY.md를 참조하세요.

Configure

/plugin configure glance@claude-mod-glance 또는 /config에서 설정합니다. palette는 auto, catppuccin, mocha, macchiato, frappe, latte이며 barWidth 기본값은 10, warnAt은 85입니다. showGit, showCost, showDuration, showTools, showSkills, showAgents, showTodos, keepHint는 true입니다. keepHint는 ? for shortcuts와 esc to interrupt를 남깁니다.

Known limitations

hint line은 일반 흐린 텍스트로 다시 그려져 자체 색상을 잃습니다. keepHint: false로 끌 수 있습니다. /name으로 호출한 skill은 glance가 이미 로드된 경우에만 집계됩니다. 구독에서 첫 응답이 제한을 보고한 뒤에만 속도 제한 막대가 나타납니다.

Develop

git clone https://github.com/VibeMage/claude-mod-glance
cd claude-mod-glance
claude --plugin-dir .
claude plugin validate .
claude plugin test .

엔진이 처음 mod를 로드하면 API 타입을 .claude-plugin/types/에 쓰고 tsconfig.json을 만듭니다. tsc -p .로 타입을 검사하며 둘 다 빌드별 파일이고 git에서 무시됩니다.

License

MIT

설치

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

claude plugin marketplace add VibeMage/claude-mod-glance
claude plugin install glance
원문 / README

English | 简体中文

glance

A HUD under your Claude Code prompt, written as a Claude Code mod. One look tells you the model, the branch, what the session has cost, how full the context is, where your 5-hour and 7-day limits stand, and what Claude is running right now.

❯ █
◆ Opus 5.5 ·  main ↑1 ●3   $2.63 · ⏱ 16m
ctx █░░░░░░░░░ 14% · 145k/1M   5h █░░░░░░░░░ 8% · 2h21m   7d ░░░░░░░░░░ 2% · 6d21h
◐ Bash npm test   ✓ Read×12 Edit×3 Bash×5
✦ plugin-authoring · simplify   ⧉ Notion×2 Gmail×1
⚙ Explore find the config   2 agents
▸ 3/7 Writing the README
? for shortcuts

Requires Claude Code 2.1.289 or newer. Mods are an early-access API that may change between releases. If glance stops drawing after an update, please open an issue.

Install

In Claude Code:

/plugin marketplace add VibeMage/claude-mod-glance
/plugin install glance@claude-mod-glance

Or from a shell:

claude plugin marketplace add VibeMage/claude-mod-glance
claude plugin install glance@claude-mod-glance

Start a new session (or run /reload-plugins) and glance appears under the prompt.

glance runs alongside a statusLine such as claude-hud. If you are switching from one, remove statusLine from ~/.claude/settings.json so you do not see the same figures twice.

What it shows

| Row | Contents | Source | | --- | --- | --- | | Header | Model (claude-opus-5-5 → Opus 5.5), git branch, ahead ↑ / behind ↓, changed files ●, session cost, session duration | $.session.model(), git status --porcelain=v2, $.session.usage() | | Bars | Context fill with tokens used, then each rate-limit window (5h, 7d) with the time until it resets. Each bar has its own colour and turns red at the warning threshold | $.session.usage(), refreshed on session.measure | | Tools | Tools running now (◐) and the session's most-used tools | tool.call | | Skills and MCP | Skills loaded this session, latest first (✦); MCP calls running now (◐) and calls per server (⧉) | skill.prompt, tool.call | | Agents | Subagents running (⚙) and how many the session has started | tool.call on Agent | | Todos | Progress and the item in progress, from TodoWrite or the Task tools | tool.call |

When glance loads (a new session, --resume, or installing it mid-session), it reads the transcript, so the tools, MCP servers, skills and todos used before it loaded are counted too.

The cost is what /cost reports: an estimate at API list prices. On a Pro or Max subscription it is not what you are billed.

What glance runs and reads

glance is a single TypeScript module (hooks/register.tsx) that Claude Code runs in its mod sandbox. It has no dependencies, downloads nothing and opens no network connections. Everything it reads stays on your machine.

  • Runs one program, git, as git status --porcelain=v2 --branch in the session's working directory, when the session starts, after each turn and every 30 seconds, for the branch, ahead/behind and changed-file count.
  • Reads, through the mod API: the session's model, context fill, rate-limit windows and cost ($.session.usage()), the session's transcript ($.session.messages(), only the names and inputs of tool calls, to count tools, MCP servers, skills and todos), and your Claude Code theme setting ($.settings.read(), to pick light or dark colours).
  • Observes tool calls (tool.call) and skill loads (skill.prompt) as they happen, to note the tool's name and a short label and the skill's name. Every call and every skill prompt passes through unchanged; glance never blocks, rewrites or adds to them.
  • Keeps its figures in the session's mod state only. It writes no files and stores nothing across sessions.
  • Sends nothing anywhere: it makes no network calls and passes no data to git, whose only input is the fixed argument list above.

Privacy: PRIVACY.md.

Configure

Run /plugin configure glance@claude-mod-glance, or open /config and find the glance rows. Changes apply immediately.

| Option | Default | What it does | | --- | --- | --- | | palette | auto | auto: Cupertino (iOS system colours), light or dark following your Claude Code theme. catppuccin: Latte or Mocha, chosen the same way. mocha, macchiato, frappe, latte: always that Catppuccin flavor | | barWidth | 10 | Cells in each bar (4–30) | | warnAt | 85 | Percentage at which a bar and its figure turn red | | showGit | true | Branch, ahead/behind, changed files | | showCost | true | Session cost | | showDuration | true | Session duration | | showTools | true | Tools row | | showSkills | true | Skills and MCP row | | showAgents | true | Agents row | | showTodos | true | Todos row | | keepHint | true | Keep Claude Code's own hint line (? for shortcuts, esc to interrupt) under the HUD |

Known limitations

  • glance draws in place of the hint line under the prompt and redraws that hint as plain dim text, so the hint's own colours (for example the auto mode on pill) are lost. Turn the line off with keepHint: false.
  • A skill you invoke as /name is not in the transcript's tool calls, so it is only counted if glance was already loaded when you ran it.
  • Rate-limit bars appear only on a subscription, after the first response of the session reports them.

Develop

git clone https://github.com/VibeMage/claude-mod-glance
cd claude-mod-glance
claude --plugin-dir .          # load it for one session; saving a file reloads it
claude plugin validate .       # what the engine would refuse
claude plugin test .           # tests/*.test.ts against the engine

The engine writes the API's types to .claude-plugin/types/ the first time it loads the mod, along with a tsconfig.json, so tsc -p . type-checks it. Both are build-specific and git-ignored.

License

MIT

동명의 다른 작품

비슷한 프로젝트