Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By BoxPistolsv0.1.0MIT
Claude Code のセッション状態を Touch Bar に表示し、そこから許可応答・スラッシュコマンドを送る (macOS + BetterTouchTool)
Run automatically on Claude Code events. Claude doesn't decide.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code CLI のセッション状態を Touch Bar に表示し、そこから許可応答と スラッシュコマンドを送るための道具一式。
Fable5 xhigh · S85 W80 ← 平常(グレー): 使っているモデルとプラン残量
🔐 許可待ち [1 許可][2 常に許可][esc 拒否] ← 許可プロンプトが出たときだけ
AskUserQuestion の N 択にも対応)| ハード | Touch Bar 搭載 Mac(2016〜2020 の MacBook Pro) |
| OS | macOS(26.6 で検証) |
| 必須 | BetterTouchTool(有料・ライセンス要) |
| 推奨 | iTerm2(セッション直接送信に使う。無くても表示は動く) |
Touch Bar が無い Mac では何も起きません。
git clone https://github.com/BoxPistols/claude-touchbar.git
cd claude-touchbar
./install.sh
インストーラがやること: スクリプトを ~/.claude/btt/ へ配置 → 設定ファイルを
(無ければ)置く → Touch Bar を appWithControlStrip に設定 → hooks を
~/.claude/settings.json へマージ(既存設定は壊しません)→ BTT にウィジェット投入。
BTT の再起動が要ります。 Shell Script Widget は投入しただけでは実行が始まりません (インストーラが最後に聞きます)。
hooks だけをプラグイン経由で有効にできます(settings.json を編集しません)。
/plugin marketplace add BoxPistols/claude-touchbar
/plugin install claude-touchbar
この場合は CLAUDE_TOUCHBAR_SKIP_HOOKS=1 ./install.sh で BTT 側だけ入れてください。
ボタンを増やす/減らす — BTT の UI は触りません。JSON を保存すると 1〜2 秒で反映されます。
$EDITOR ~/.claude/btt/commands.json
{
"buttons": [
{ "label": "review", "command": "/review", "color": "38,102,168,255" },
{ "label": "model", "command": "/model", "enter": true,
"menu": ["Def", "Opus", "Fable", "Sonn", "Haiku"] } // 番号ボタンが出る
]
}
enter の既定は false(入力するだけ)です。Touch Bar は画面を見ずに触る場所なので、
/clear のような取り消せないものが即実行されないようにしています。
他の設定ファイル
| ファイル | 用途 |
|---|---|
commands.json | コマンドボタンの定義 |
permissions.json | 許可応答ボタンのラベル |
web-shortcuts.json | ブラウザ Web アプリ向けボタン(match で開いているページまで絞れる) |
native-apps.json | BTT を出さずアプリ自身の Touch Bar を通すアプリ |
docs/DESIGN.md に、BTT の非公開仕様を潰していった実測記録がそのまま入っています。
本体のコードより再利用価値があるかもしれません。抜粋:
BTTShellScriptWidgetGestureConfig はトリガーのトップレベルに置く。
BTTTriggerConfig の中だとスクリプトが一切実行されず、エラーも出ず再起動でも直らないBTTTouchBarMode、値 3。
UI 名の TouchBarBehavior で書くと import 時に黙って破棄される(§17)execute_assigned_actions_for_trigger で
再現できる(trigger_action では再現できない。しかも両方 missing value を返す)(§13.6)python3 tools/install-hooks.py --uninstall # hooks を外す(他ツールの設定は残す)
rm -rf ~/.claude/btt # スクリプトと状態ファイル
BTT のウィジェットは BTT の UI から削除してください(印 cc-touchbar-* が付いています)。
MIT
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (boxpistols/claude-touchbar) — no native marketplace selected
npx claudepluginhub p/boxpistols-claude-touchbarPlugins from other owners that cover similar ground