ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 szarkans

gamble-with-claude-code

在終端玩吃角子老虎、歐洲輪盤和二十一點。押上 Claude Code 今天燒掉的 token。沒有真錢,只有可疑的決定。

已翻譯

關於這個 mod

<h1 align="center">gamble with claude code</h1> <p align="center"><a href="README.ru.md">[🇷🇺 →]</a> · <a href="README.zh.md">[🇨🇳 →]</a> </p> <p align="center"><img src="docs/demo.gif" alt="slots, roulette and blackjack inside Claude Code" width="720"></p>

Claude Code 裡就有一間賭場。吃角子老虎、輪盤和二十一點——押上的是 Claude Code 今天實際燒掉的 token。

<h2 align="center">這是在做什麼?</h2>

反正你每天都會燒掉幾百萬 token,不如拿來賭。

  • 從午夜起 Claude Code 燒掉的每個 token,都是錢包裡的一個 token。
  • 全輸了?回去工作。每個 prompt 都會補回錢包。
  • 錢包在午夜清空。像 context window,只是每天一次。

[!IMPORTANT] 沒有真錢,也不是真實 token:你不會花掉它們,也不可能贏得它們。你的「賭博 token」只是 Claude 今天工作時燒掉的 token。

<h2 align="center">安裝</h2>
/plugin marketplace add szarkans/gamble-with-claude-code
/plugin install gamble-with-claude-code@gamble-with-claude-code

或從 shell 執行:

claude plugin marketplace add szarkans/gamble-with-claude-code
claude plugin install gamble-with-claude-code@gamble-with-claude-code

接著執行 /reload-plugins(或重新啟動 Claude Code),再執行:

/casino

需求:Claude Code 2.1.287+(含 mods 的版本)與 python3。讓終端約 50 列高,或用 PageDown 捲動面板。

想不動手就取得新遊戲?依序選擇 /plugin → Marketplaces → gamble-with-claude-code → Enable auto-update。

<h2 align="center">遊戲</h2>

吃角子老虎——三條轉軸,777 賠付 ×20,rm -rf ×3 賠付 ×50。

輪盤——歐洲輪盤,0–36。紅黑、單雙、兩半、十二打、數打,或單一數字。

二十一點——莊家 17 點停牌,blackjack 賠付 3:2,可加倍下注;還不能分牌。

<h2 align="center">操作</h2>

z x c——吃角子老虎、輪盤、二十一點
1–4——下注 10%、25%、50%,或 all in
s——轉輪 / 發牌 / 停牌
h——要牌,d——加倍
esc 或 q——回去工作

只要終端回報支援,滑鼠點擊也能使用。

<h2 align="center">token 怎麼計算?</h2>

資料來自你電腦上 Claude Code 自己的工作階段記錄(~/.claude/projects 或 $CLAUDE_CONFIG_DIR):今天的輸入、cache writes 和輸出。cache reads 不算——重新讀取相同上下文不是工作。

任何內容都不會離開你的電腦。這個 mod 完全不發出網路請求。

<h2 align="center">另外</h2>

不是 Claude Code 使用者,或不喜歡終端檢視?看看 gamble-your-tokens——同一間賭場,但在瀏覽器裡玩!

gamble-your-tokens


與 Anthropic 無關,只是一個有 token 問題的粉絲。

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add szarkans/gamble-with-claude-code
claude plugin install gamble-with-claude-code
原文 / README
<h1 align="center">gamble with claude code</h1> <p align="center"><a href="README.ru.md">[🇷🇺 →]</a> · <a href="README.zh.md">[🇨🇳 →]</a> </p> <p align="center"><img src="docs/demo.gif" alt="slots, roulette and blackjack inside Claude Code" width="720"></p>

a casino right inside Claude Code. slots, roulette and blackjack — and you bet the tokens Claude Code actually burned today.

<h2 align="center">what's this about?</h2>

you burn millions of tokens a day anyway. might as well gamble them.

  • every token Claude Code burned since midnight is a token in your wallet.
  • lost it all? go back to work. the wallet refills with every prompt.
  • the wallet burns at midnight. like your context window, but daily.

[!IMPORTANT] no real money. not real tokens either: you don't spend them and you can't win them. your "gambling tokens" are just the tokens Claude burned working today.

<h2 align="center">install</h2>
/plugin marketplace add szarkans/gamble-with-claude-code
/plugin install gamble-with-claude-code@gamble-with-claude-code

or

claude plugin marketplace add szarkans/gamble-with-claude-code
claude plugin install gamble-with-claude-code@gamble-with-claude-code

then /reload-plugins (or restart Claude Code) and

/casino

requirements: Claude Code 2.1.287+ (the one with mods) and python3. make the terminal ~50 rows tall, or scroll the panel with PageDown.

want new games without lifting a finger? /plugin → Marketplaces → gamble-with-claude-code → Enable auto-update.

<h2 align="center">games</h2>

slots — three reels, 777 pays ×20, rm -rf ×3 pays ×50.

roulette — european, 0–36. red/black, even/odd, halves, dozens, or a single number

blackjack — dealer stands on 17, blackjack pays 3:2, double down. no split. yet.

<h2 align="center">controls</h2>

z x c — slots, roulette, blackjack
1–4 — bet 10%, 25%, 50%, all in
s — spin / deal / stand
h — hit, d — double
esc or q — back to work

mouse clicks work too, where your terminal reports them.

<h2 align="center">how are tokens counted?</h2>

from Claude Code's own session logs on your machine (~/.claude/projects, or $CLAUDE_CONFIG_DIR). today's input + cache writes + output. cache reads don't count — re-reading the same context isn't work.

nothing leaves your machine. the mod makes zero network calls.

<h2 align="center">also</h2>

not claude code's user or don't like in-terminal view? check out gamble-your-tokens - same casino but in browser!

gamble-your-tokens


not affiliated with Anthropic. just a fan with a token problem.

更多類似作品