Gamified Claude Code statusline. XP = your honest claude-only lifetime token count (via ccusage); shows Lv./中二 title/XP bar. Adds 靈力 RPG buff events (a separate currency that never touches the honest token number) and a cosmetics shop.
[繁體中文] | English
把你在 Claude Code 的終生 token 消耗變成經驗值,顯示等級 Lv.、日式中二稱號、XP 進度條,
再加一層 靈力 RPG buff 事件 與 外觀商店。

ccusage 重算)。cleanupPeriodDays(預設 30 天)刪掉舊 .jsonl 後 ccusage 會縮水。cc-xp 自存 per-date ledger(~/.claude/statusline/xp-ledger.json),每天值取 max 凍結,等級/稱號不會因清檔倒退。已被刪的歷史不可回復,ledger 只保證「從首次記錄起」往後不退。python3
ccusage:三種裝法皆可,cc-xp 會自動偵測並逐一 fallback——
bun(推薦,bun x ccusage 免裝套件)npm i -g ccusagenpx 在 PATH(cc-xp 會用 npx --yes ccusage)偵測不到時 statusline 仍會顯示,但等級卡在 Lv.1;開新 session 會提示安裝。 想自查用哪個 / 是否取得到數字:
cc-xp doctor。
Nerd Font + 支援 emoji 的終端(icon 用)
建議使用下面的腳本安裝 它會記下你原本的
statusline、將新增的 cc-xp statusline 擴增在下方。 若是使用 Claude Code Plugin 進行安裝的話,也需要跑一次安裝腳本才能做到相同的顯示方式。
macOS / Linux
bash <(curl -fsSL https://raw.githubusercontent.com/papaChong1229/cc-xp/main/install.sh)
Windows(PowerShell)
irm https://raw.githubusercontent.com/papaChong1229/cc-xp/main/install.ps1 | iex
兩者都會自動完成以下三個動作:
~/.claude/cc-xp/~/.claude/settings.json 設好 statusLine 與 UserPromptSubmit hook
(會先備份成 settings.json.cc-xp.bak,保留你既有設定)cc-xp 指令 — mac/Linux 加 shell 別名;Windows 建 cc-xp.cmd + PowerShell $PROFILE 函式裝完:重開終端 + 重啟 Claude Code。 更新:重跑同一行即可(抓最新版等)。
/plugin marketplace add papaChong1229/cc-xp
/plugin install cc-xp@cc-xp
plugin 會提供 UserPromptSubmit hook。但 statusLine 無法由 plugin 代設,仍需執行一次安裝指令來寫 statusLine + 別名(hook 已由 plugin 提供,故用 --no-hook):
python3 "$(ls ~/.claude/plugins/cache/cc-xp*/plugins/cc-xp/scripts/xp-statusline.py | head -1)" install --no-hook
cc-xp help # 看所有指令 + 說明
cc-xp list # 看自己擁有 / 已裝備 / 未擁有的外觀
cc-xp shop # 靈力商店 + 餘額
cc-xp buy bar_purple # 花靈力解鎖外觀
cc-xp equip bar_purple # 裝備
cc-xp unequip bar_theme # 卸下
cc-xp events off # 關閉整套 RPG 事件(statusline 退回純資訊型)
UserPromptSubmit hook)按 token 增量累積;buff 生效時加速。~/.claude/statusline/.cc-xp.dat(base64 + HMAC 簽章;手改會被重置)。全部 local,不上傳。打開 ~/.claude/cc-xp/xp-statusline.py 最上方常數區即可調整:
TITLES — 各等級的稱號與異名(中二稱號池)。BUFFS — buff 事件池:每個事件的機率、倍率與持續時間。SHOP — 靈力商店的品項與售價。REI_RATE — 靈力累積速率(每 token 換多少靈力)。BAR_THEMES — XP 進度條的配色主題。C_* — statusline 各部位的顏色(ANSI / 256 色)。F / A / R — 升級曲線參數,決定每級所需 XP。歡迎開 issue 許願或送 PR(見 CONTRIBUTING)。
MIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub papachong1229/cc-xp --plugin cc-xpUltra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Memory compression system for Claude Code - persist context across sessions
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Curate auto-memory, promote learnings to CLAUDE.md and rules, extract proven patterns into reusable skills.
Unified status line for Claude Code with multi-CLI (Claude, Codex, Gemini, z.ai) usage monitoring, context, rate limits, and cost tracking