pkkid/claude-mods/tree/main/plugins/aitools
關於這個 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 | 上下文視窗填充量:百分比,以及已用 token 數/視窗大小 |
| cache 42m | 提示快取應保持熱狀態的時間:Claude Code 會以 1 小時 TTL 寫入主要對話的快取,每次請求都會重新計時。低於 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 小時用量、每週用量、重設倒數、上下文百分比、上下文 token、快取熱度、工作階段成本、上一輪成本、每月成本、消耗速率預測、閾值顏色、閾值提醒、Tools 選單。變更會立即顯示在列中,並跨工作階段儲存。再次按 ⁝ 關閉;開啟它會關閉 🛠 選單,反過來也一樣。
當 5 小時或每週視窗超過 90%,以及上下文超過 80% 時,閾值提醒會各顯示一次 toast。
交接
/handoff 會要求目前的對話產生一份簡要說明(目標、目前狀態、決定、未完成工作、關鍵檔案、下一步),以格式化文字印在聊天中,並將原始 Markdown 複製到剪貼簿。把它貼到新的工作階段即可繼續。簡要說明是命令輸出列,因此目前工作階段的模型也會讀到它。
🛠 按鈕會在列上方開啟一列靠右對齊的選項:Handoff、Workflows、Task View、Clean View 和 Agent Dock;再次按下會關閉這一列而不選取任何項目。Handoff 會把同一份簡要說明寫入 Handoff brief 面板,以格式化文字繪製,並提供 Copy 按鈕;在你按下它之前不會複製任何內容,而且簡要說明不會出現在聊天中(所以目前工作階段的模型不會讀到它)。Workflows 會在引擎所在的位置(終端機)直接執行 Claude Code 內建的 /workflows;在桌面版 Code 分頁中,輸入 /workflows 後由介面自行回應,因此它會把 /workflows 放進提示框,等你按 Enter 傳送。
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 更新檢查清單時,進度都會移動(提示會要求大約每完成四分之一步更新一次)。
- Task View 顯示檢查清單,讓聊天維持原樣(只隱藏檢查清單工具自己的輸出列)。
- Clean View 顯示檢查清單,並隱藏工作期間的每個工具呼叫以及 Claude 寫出的所有內容;每個已完成請求只保留最後的回應。它也會隱藏聊天中已經存在的工具呼叫和進行中的回應。
檢視開啟時,你傳送的每個提示都會帶上一則隱藏說明,要求 Claude 用一般語言規劃步驟,並透過外掛的 checklist 工具(mcp__aitools__checklist)回報步驟,且在每一步開始和完成時更新。外掛會在 Claude Code 的權限檢查前自行回應這個工具,所以不應要求權限。每個新提示都會開始一份新的檢查清單;所有步驟完成且 Claude 停止後,清單會摺疊成一列:✓ Done: <title> (<n> steps)。不需要進行任何工作的快速問題不會顯示檢查清單。
Clean View 會把最終回應辨識為你下一個提示前 Claude 寫出的最後一項內容。外掛載入時會從對話中讀取這些回應(因此重新載入或重新啟動前的回應仍會顯示),每當請求完成就加入新的回應。
Agent Dock
/agentdock,或 🛠 選單中的 Agent Dock(面板開啟時顯示 ●),會開啟 Agent Dock 面板,讓你把大型工作交給一組輔助代理(多份平行工作的 Claude);再次執行,或按面板自己的關閉標記,就會關閉它。它會保持開啟,外掛重新載入後也會恢復。面板關閉,或面板不在畫面上(此時狀態列會顯示 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 使用聊天所用的模型和推理等級。
- 面板開啟時,你傳送的每個提示都會帶上一則隱藏說明,要求 Claude 把工作拆成互相獨立的部分,平行啟動這些部分。每個輔助代理的提示都會要求它透過外掛的
agent_progress工具(mcp__aitools__agent_progress)回報正在做什麼以及進度,之後這些內容會填入它的卡片。 - 團隊已滿時會拒絕繼續啟動,並提示你等輔助代理完成後再試(hook 可能無法長時間攔住啟動);這些部分在真正啟動前會計入排隊。
- 卡片會顯示任務、輔助代理正在做什麼、它自己的百分比估算、進度列和執行時間;執行中的輔助代理文字為中灰色,完成的會顯示綠色 ✓,失敗的會顯示紅色 ✕。所有輔助代理完成且 Claude 已回應後,卡片下方會顯示它們花了多久(
All 3 helpers finished in 6 to 10 seconds each.)。卡片和這一行文字會一直保留到下一個提示。 - 團隊和輔助代理選項會儲存;新的工作階段中面板預設關閉。
每月成本如何計算
外掛會讀取 Claude Code 自己的紀錄(~/.claude/projects/**/*.jsonl,或 CLAUDE_CONFIG_DIR 指定的目錄),按照 message id 每個 assistant 回應只計算一次;如果回應的時間戳落在目前月份,就把它計入。它會使用 src/pricing.ts 中的表格,按 token 用量(輸入、輸出、5 分鐘或 1 小時費率的快取寫入、快取讀取)計算價格(API 定價截至 2026-09-25)。只讀取上次掃描後新增的位元組;快取保存在外掛的儲存區中,並在每月重設。數字前的 ~ 表示其中一部分使用了估算費率(按模型家族為未知模型定價),或某個檔案無法讀取。
限制
- 僅限 Claude Code:桌面版 Claude Desktop 的 Code 分頁和終端機。桌面版 Claude Desktop 的 chat 分頁中的對話對外掛不可見,也不會計入。
- 用量百分比來自 API 的速率限制標頭,因此會在每次回應後更新。
- 金額數字表示同樣的 token 按 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_progresstool (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.

