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

aitools

구독 사용량, API 환산 비용, 프롬프트 위의 컨텍스트 막대를 표시

번역 완료

이 mod 소개

aitools

프롬프트 위의 한 줄 막대에서 Claude 구독의 한도까지 얼마나 남았는지와, Anthropic API 정가로 계산한 현재 작업의 비용을 보여 줍니다.

AI Tools    5h 42% ·1h12m    wk 18% ·Thu    ctx 31% 62k/200k    cache 42m    thread $3.12 (+$0.41)    month $184.20    limit ~3:40pm   [🛠] [⁝]

| Segment | Meaning | |---|---| | AI Tools | 막대 이름을 나타내는 흐린 라벨 | | 5h 42% ·1h12m | 5시간 사용 창: 사용한 비율과 재설정까지 남은 시간 | | wk 18% ·Thu | 주간 창: 사용한 비율과 재설정되는 요일(하루 미만이면 시간) | | ctx 31% 62k/200k | 컨텍스트 창 사용량: 비율과 사용한 토큰 수/창 크기 | | cache 42m | 프롬프트 캐시를 따뜻하게 유지해야 하는 시간: Claude Code는 기본 대화 캐시에 TTL 1시간으로 기록하고 요청마다 타이머를 다시 시작합니다. 10분 미만이면 황색으로 표시되고 만료되면 cache cold가 됩니다. 요청 시간으로 계산한 추정치이며 API는 캐시 상태를 보고하지 않고 Anthropic이 더 일찍 제거할 수도 있습니다 | | thread $3.12 | 이 세션의 API 가격 기준 비용 | | (+$0.41) | 직전 턴의 비용(스레드 비용을 숨길 때는 last $0.41) | | month $184.20 | 이번 달 이 컴퓨터의 모든 Claude Code 세션에서 API 가격 기준으로 사용한 금액 | | limit ~3:40pm | 지난 한 시간의 속도로 계산한 5시간 창 소진 예상 시각. 재설정 전에만 표시 |

사용량과 컨텍스트는 70%에서 노란색, 90%에서 빨간색으로 바뀝니다. 아직 알 수 없는 값은 —로 표시됩니다. 세션의 첫 응답 전에는 이전 세션의 수치를 보여 줍니다.

막대 표시 또는 숨기기

/aitools는 버튼을 포함한 전체 막대를 전환하고, /aitools on과 /aitools off는 상태를 지정합니다. 이 선택은 세션 사이에도 유지됩니다. /handoff는 어느 상태에서든 작동합니다.

설정

**⁝**를 누르면 막대 위에 옵션이 열리고 한 줄에 다섯 개씩 배치됩니다. AI Tools 라벨, 5시간 사용량, 주간 사용량, 재설정 카운트다운, 컨텍스트 비율, 컨텍스트 토큰, 캐시 온기, 스레드 비용, 직전 턴 비용, 월간 비용, 소모 속도 예상, 임계값 색상, 임계값 알림, Tools 메뉴를 각각 전환할 수 있습니다. 변경 사항은 즉시 막대에 표시되고 세션 사이에도 저장됩니다. 다시 **⁝**를 누르면 닫힙니다. 열면 🛠 메뉴가 닫히고, 반대도 같습니다.

5시간 또는 주간 창이 90%를 넘거나 컨텍스트가 80%를 넘을 때 임계값 알림이 한 번씩만 토스트로 표시됩니다.

인계

/handoff는 현재 대화에 간단한 요약(목표, 현재 상태, 결정 사항, 열린 작업, 핵심 파일, 다음 단계)을 요청하고, 서식 있는 텍스트로 채팅에 출력한 뒤 원본 Markdown을 클립보드에 복사합니다. 새 세션에 붙여 넣으면 그곳에서 계속할 수 있습니다. 이 요약은 명령 출력 행이므로 현재 세션의 모델도 읽습니다.

🛠 버튼은 막대 위에 Handoff, Workflows, Task View, Clean View, Agent Dock를 오른쪽 정렬로 엽니다. 다시 누르면 아무것도 선택하지 않고 닫힙니다. Handoff는 같은 요약을 Handoff brief 패널에 서식 있는 텍스트로 쓰고 Copy 버튼을 제공합니다. 버튼을 누르기 전에는 아무것도 복사되지 않으며, 요약은 채팅 밖에 남으므로 현재 세션의 모델이 읽지 못합니다. Workflows는 엔진이 있는 곳(터미널)에서 Claude Code의 내장 /workflows를 직접 실행합니다. 데스크톱 Code 탭에서 입력한 /workflows에 탭이 직접 응답하는 경우에는, Enter로 보낼 수 있도록 /workflows를 프롬프트 상자에 넣습니다.

Task View 및 Clean View

🛠 메뉴의 두 보기는 Claude의 작업을 막대 아래 체크리스트로 바꿉니다(열린 메뉴는 그 위에 계속 표시됩니다). 완료한 단계는 녹색 ✓, 진행 중인 단계는 파란색 ●, 시작하지 않은 단계는 흐린 ○로 표시됩니다. 메뉴에서 ●는 켜진 보기, ○는 꺼진 보기를 뜻합니다. 켜진 보기를 고르면 끄고, 다른 보기를 고르면 전환합니다. 이 선택은 세션 사이에도 유지됩니다.

한 보기가 켜져 있으면 그 이름이 프롬프트 아래 상태 줄에 표시됩니다(도크가 열려 있는 동안에는 쉼표 뒤에 Agent Dock가 붙습니다). 프롬프트에서 /taskview와 /cleanview를 사용해도 메뉴와 같은 동작을 합니다. 인수 없이 사용하면 전환하고(켜면 다른 보기는 꺼짐), on은 켜고 off는 끕니다.

Adding dark mode                                                    3 of 5
✓ Read the theme code                                   100% ▰▰▰▰▰▰▰▰▰▰
✓ Add the color tokens                                  100% ▰▰▰▰▰▰▰▰▰▰
● Wire up the toggle                                     40% ▰▰▰▰▱▱▱▱▱▱
○ Update tests                                            0% ▱▱▱▱▱▱▱▱▱▱
○ Run checks                                              0% ▱▱▱▱▱▱▱▱▱▱

각 단계에는 막대가 있습니다. 완료하면 가득 차고, 시작 전에는 비어 있으며, 진행 중인 단계에는 Claude가 자체적으로 추정한 진행률이 표시됩니다. Claude가 체크리스트를 업데이트할 때마다 움직이며, 메모는 단계의 약 4분의 1마다 업데이트하도록 요청합니다.

  • Task View는 체크리스트를 표시하고 채팅은 그대로 둡니다(숨기는 것은 체크리스트 도구 자체의 행뿐입니다).
  • Clean View는 체크리스트를 표시하면서 작업 중의 모든 도구 호출과 Claude가 작성하는 모든 내용을 숨깁니다. 완료된 요청마다 마지막 응답만 남고, 채팅에 이미 있는 도구 호출과 진행 중인 응답도 숨깁니다.

보기가 켜져 있는 동안 보내는 각 프롬프트에는 작업을 평이한 언어의 단계로 계획하고 mod의 checklist 도구(mcp__aitools__checklist)를 통해 보고하며 각 단계의 시작과 완료 때 업데이트하라는 숨은 메모가 들어갑니다. mod는 Claude Code의 권한 확인 전에 해당 도구에 직접 응답하므로 권한을 요청하지 않아야 합니다. 새 프롬프트마다 새 체크리스트가 시작됩니다. 모든 단계가 끝나 Claude가 멈추면 ✓ Done: <title> (<n> steps) 한 줄로 접힙니다. 작업이 필요 없는 짧은 질문에는 체크리스트가 표시되지 않습니다.

Clean View는 다음 프롬프트 전까지 Claude가 작성한 마지막 내용을 최종 응답으로 인식합니다. mod가 로드될 때 대화에서 이를 읽으므로 다시 로드하거나 재시작하기 전의 응답도 표시되며, 요청이 끝날 때마다 새 응답을 추가합니다.

Agent Dock

/agentdock 또는 🛠 메뉴의 Agent Dock(열려 있을 때 ●)를 사용하면 Agent Dock 패널이 열리고, 큰 작업을 도우미 에이전트 팀(병렬로 작업하는 Claude의 추가 복사본)에 맡길 수 있습니다. 다시 실행하거나 패널 자체의 닫기 표시를 누르면 닫힙니다. 닫을 때까지 열려 있고 mod를 다시 로드한 뒤에도 돌아옵니다. 도크가 닫혀 있거나 패널이 화면에 표시되지 않을 때(상태 줄에는 Agent Dock (not shown)가 표시됨)는 아래 내용이 적용되지 않습니다.

Team size: ○ 1 ○ 3 ● 5 ○ 10 ○ 20 ○ 30   Helpers: ● Fast & cheap ○ Same as chat

5 agents · 3 working · 2 idle · 1 queued · 1 done
● Research business licenses · Reading the city site               40% ▰▰▰▰▱▱▱▱▱▱  1:20
✓ Draft the floor plan                                             100% ▰▰▰▰▰▰▰▰▰▰  0:56
  • Team: 동시에 실행할 수 있는 도우미 수(1, 3, 5, 10, 20 또는 30)입니다. 10을 넘으면 큰 팀이 Claude 사용량을 훨씬 빠르게 쓴다는 경고가 노란색으로 표시됩니다.
  • Helpers: Fast & cheap는 모든 도우미 요청을 Sonnet 5.5의 낮은 추론 수준으로 실행하고, Same as chat은 채팅과 같은 모델과 추론 수준을 사용합니다.
  • 도크가 열려 있는 동안 각 프롬프트에는 작업을 서로 독립된 부분으로 나누고 병렬로 시작하라는 숨은 메모가 들어갑니다. 각 도우미의 프롬프트는 mod의 agent_progress 도구(mcp__aitools__agent_progress)를 통해 무엇을 하고 있는지와 진행률을 보고하도록 요청하며, 그 내용이 카드에 채워집니다.
  • 팀이 가득 차면 더 시작하지 않고 도우미가 끝난 뒤 다시 시도하라는 메모를 표시합니다(hook이 시작을 오래 막아 두지 못할 수 있음). 해당 작업은 시작될 때까지 대기 중으로 집계됩니다.
  • 카드에는 작업, 도우미가 하는 일, 자체 추정 비율, 막대, 실행 시간이 표시됩니다. 실행 중인 도우미의 글은 중간 회색, 완료된 것은 녹색 ✓, 실패한 것은 빨간색 ✕입니다. 모든 도우미가 끝나고 Claude가 응답하면 카드 아래에 걸린 시간이 표시됩니다(All 3 helpers finished in 6 to 10 seconds each.)。카드와 이 문장은 다음 프롬프트까지 유지됩니다.
  • 팀과 도우미 선택은 저장되며 새 세션에서는 도크가 닫힌 상태로 시작합니다.

월간 비용 계산 방법

mod는 Claude Code의 자체 트랜스크립트(~/.claude/projects/**/*.jsonl 또는 CLAUDE_CONFIG_DIR 아래)를 읽고, 타임스탬프가 이번 달에 해당하는 각 assistant 응답을 메시지 id별로 한 번만 셉니다. src/pricing.ts의 표(2026-09-25 현재 API 정가)를 사용해 입력, 출력, 5분 또는 1시간 요율의 캐시 쓰기, 캐시 읽기의 토큰 사용량을 가격으로 계산합니다. 마지막 스캔 이후 추가된 바이트만 읽으며 캐시는 mod 저장소에 보관되고 매달 재설정됩니다. 수치 앞의 ~는 일부가 추정 요율(모델 계열로 알 수 없는 모델의 가격을 계산)을 사용했거나 파일을 읽지 못했음을 뜻합니다.

제한

  • Claude Code만 지원합니다. Claude Desktop의 Code 탭과 터미널이 대상이며, Claude Desktop의 chat 탭 대화는 mod에서 볼 수 없고 집계되지도 않습니다.
  • 사용량 비율은 API의 속도 제한 헤더에서 오므로 응답마다 업데이트됩니다.
  • 달러 금액은 같은 토큰을 API에서 사용했을 때의 비용이며 구독 요금이 아닙니다.

설치

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

claude plugin marketplace add pkkid/claude-mods
claude plugin install aitools
원문 / README

aitools

A one-row bar above the prompt showing how close your Claude subscription is to its limits, and what the work would cost at Anthropic API list prices.

AI Tools    5h 42% ·1h12m    wk 18% ·Thu    ctx 31% 62k/200k    cache 42m    thread $3.12 (+$0.41)    month $184.20    limit ~3:40pm   [🛠] [⁝]

| Segment | Meaning | |---|---| | AI Tools | A dim label naming the bar | | 5h 42% ·1h12m | 5-hour usage window: percent used, time until it resets | | wk 18% ·Thu | Weekly window: percent used, the day it resets (hours when under a day) | | ctx 31% 62k/200k | Context window fill: percent and tokens used / window size | | cache 42m | How long the prompt cache should stay warm: Claude Code writes the main conversation's cache with a 1-hour TTL, restarted by every request. Amber under 10 minutes, cache cold once expired. An estimate from request times; the API does not report cache state, and Anthropic may evict early | | thread $3.12 | This session's cost at API prices | | (+$0.41) | What the last turn cost (last $0.41 when thread cost is hidden) | | month $184.20 | This calendar month's Claude Code usage at API prices, across all sessions on this machine | | limit ~3:40pm | At your pace over the last hour, when the 5-hour window would run out; shown only if before it resets |

Usage and context turn yellow at 70% and red at 90%. A value not known yet shows —; until the first response of a session the bar shows the figures from your previous session.

Show or hide the bar

/aitools toggles the whole bar (buttons included); /aitools on and /aitools off set it. The choice holds across sessions. /handoff works either way.

Settings

Press ⁝ to open the options above the bar, five to a row, and toggle any of: the AI Tools label, 5-hour usage, weekly usage, reset countdowns, context %, context tokens, cache warmth, thread cost, last-turn cost, monthly cost, burn-rate projection, threshold colors, threshold alerts, Tools menu. Changes show in the bar right away and are saved across sessions. Press ⁝ again to close it; opening it closes the 🛠 menu, and the other way round.

Threshold alerts are one-time toasts when the 5-hour or weekly window passes 90%, and when context passes 80%.

Handoff

/handoff asks the current conversation for a brief (goal, current state, decisions, open tasks, key files, next step), prints it in the chat as formatted text, and copies the raw markdown to the clipboard. Paste it into a new session to continue there. The brief is a command output row, so the current session's model reads it too.

The 🛠 button opens a row above the bar with Handoff, Workflows, Task View, Clean View and Agent Dock, right-aligned; press it again to close the row without picking. Handoff writes the same brief into a Handoff brief pane, drawn as formatted text with a Copy button; nothing is copied until you press it, and the brief stays out of the chat (so the current session's model does not read it). Workflows runs Claude Code's built-in /workflows directly where the engine has it (the terminal); in the desktop Code tab, which answers a typed /workflows itself, it puts /workflows in the prompt box for you to send with Enter.

Task View and Clean View

Two views from the 🛠 menu that turn Claude's work into a checklist under the bar (an open menu still shows above it): done steps marked with a green ✓, the step in progress with a blue ●, steps not started with a dim ○. In the menu a ● marks the view that is on and a ○ the one that is off; picking the one that is on turns it off, and picking the other switches. The choice holds across sessions.

While one is on, its name shows in the status line under the prompt (with Agent Dock after a comma while the dock is open). /taskview and /cleanview do the same as the menu from the prompt: no argument toggles that view (turning it on switches off the other), on turns it on and off turns it off.

Adding dark mode                                                    3 of 5
✓ Read the theme code                                   100% ▰▰▰▰▰▰▰▰▰▰
✓ Add the color tokens                                  100% ▰▰▰▰▰▰▰▰▰▰
● Wire up the toggle                                     40% ▰▰▰▰▱▱▱▱▱▱
○ Update tests                                            0% ▱▱▱▱▱▱▱▱▱▱
○ Run checks                                              0% ▱▱▱▱▱▱▱▱▱▱

Each step has a bar: full once done, empty until it starts, and for the step in progress Claude's own estimate of how far along it is, which moves each time Claude updates the checklist (the note asks for about every quarter of a step).

  • Task View shows the checklist and leaves the chat as it is (only the checklist tool's own rows are hidden).
  • Clean View shows the checklist and hides every tool call and everything Claude writes while it works; only the final reply of each finished request stays. It hides tool calls and in-progress replies already in the chat too.

While a view is on, each prompt you send carries a hidden note asking Claude to plan the work as plain-language steps and report them through the mod's checklist tool (mcp__aitools__checklist), updating it as each step starts and finishes. The mod answers that tool itself, before Claude Code's permission check, so it should not ask for permission. Each new prompt starts a fresh checklist; once every step is done and Claude stops, it folds to one line, ✓ Done: <title> (<n> steps). A quick question that needs no work gets no checklist.

Clean View recognizes a final reply as the last thing Claude wrote before your next prompt. It reads them from the conversation when the mod loads (so replies from before a reload or restart still show) and adds each new one as a request finishes.

Agent Dock

/agentdock, or Agent Dock in the 🛠 menu (● while open), opens the Agent Dock pane for handing a big job to a team of helper agents (extra copies of Claude working in parallel); either again, or the pane's own close mark, closes it. It stays open until you close it, and comes back after the mod reloads. While the dock is closed, or its pane is not on screen (the status line then reads Agent Dock (not shown)), nothing below applies.

Team size: ○ 1 ○ 3 ● 5 ○ 10 ○ 20 ○ 30   Helpers: ● Fast & cheap ○ Same as chat

5 agents · 3 working · 2 idle · 1 queued · 1 done
● Research business licenses · Reading the city site               40% ▰▰▰▰▱▱▱▱▱▱  1:20
✓ Draft the floor plan                                             100% ▰▰▰▰▰▰▰▰▰▰  0:56
  • Team: how many helpers may run at once (1, 3, 5, 10, 20 or 30). Past 10 the dock warns in yellow that a big team uses your Claude usage much faster.
  • Helpers: Fast & cheap runs every helper request on Sonnet 5.5 at low reasoning; Same as chat uses the chat's model and reasoning level.
  • While the dock is open, each prompt carries a hidden note asking Claude to split a job with separate parts across the team, starting the pieces in parallel. Each helper's prompt asks it to report what it is doing and how far along it is through the mod's agent_progress tool (mcp__aitools__agent_progress), which fills its card.
  • A full team refuses further starts with a note to try again when a helper finishes (a hook may not hold a start for long); those pieces count as queued until they start.
  • Cards show the task, what the helper is doing, its percent (its own estimate), a bar and its running time; a running helper's text is a mid grey, finished ones get a green ✓ and failed ones a red ✕. When every helper is done and Claude has replied, a line under the cards says how long they took (All 3 helpers finished in 6 to 10 seconds each.). The cards and that line stay until your next prompt.
  • The team and helper picks are saved; the dock itself starts closed in a new session.

How monthly cost is computed

The mod reads Claude Code's own transcripts (~/.claude/projects/**/*.jsonl, or under CLAUDE_CONFIG_DIR), counts each assistant response once (by message id) when its timestamp falls in the current month, and prices its token usage (input, output, cache writes at the 5-minute or 1-hour rate, cache reads) with the table in src/pricing.ts (API list prices as of 2026-09-25). Only bytes added since the last scan are read; the cache lives in the mod's store and resets each month. A ~ before a figure means part of it used an estimated rate (an unknown model priced by its family) or a file could not be read.

Limits

  • Claude Code only: the Code tab in Claude Desktop and the terminal. Conversations in Claude Desktop's chat tab are not visible to mods and are not counted.
  • Usage percentages come from the API's rate-limit headers, so they update after each response.
  • Dollar figures are what the same tokens would cost on the API, not what the subscription costs.

비슷한 프로젝트