SLOPSHOPPER

turn-timer

各ターンの所要時間とトークン消費をトーストで表示する

newtoast
★ 1v0.1.0no licenseupdated 2026-09-21void2610/dotfiles/.claude/mods/turn-timer
A shopper browsing a rack in a slop shop
Preview · a replayed session in a sandbox
claude · ~/work/app · turn-timer
› fix the failing auth test and add an audit log call ╭─────────────────────╮ │ turn-timer │ ⏺ Read(src/auth.ts) │ ⏱ 42.0s · 3,580 tok │ ⎿ Read 6 lines ╰─────────────────────╯ ⏺ Update(src/auth.ts) ⎿ Added 2 lines, removed 1 line ⏺ Bash(bun test) ⎿ 3 pass, 1 fail ● Done. refresh now rejects expired claims and logs an audit event. ✻ Worked for 42s · done 4:20 PM ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── › ? for shortcuts
README

dotfiles

個人用のdotfiles設定リポジトリです。 パッケージ管理と Homebrew 管理は別の nix-config リポジトリで行い、このリポジトリは主にシェルやアプリ設定を管理します。

セットアップ手順

1. リポジトリのクローン

git clone https://github.com/yourusername/dotfiles.git ~/dotfiles
cd ~/dotfiles

2. Nix / nix-darwin 設定の適用

cd ~/nix-config
darwin-rebuild switch --flake .#<nix-configで定義したホスト名>

3. dotfilesのシンボリックリンク作成

./install.sh

既存の設定ファイルは~/backupディレクトリにバックアップされます。

ファイル構成

  • install.sh: dotfilesのシンボリックリンク作成スクリプト
  • MANUAL_APPS.md: 手動インストールが必要なアプリケーション一覧
  • .config/: 各種アプリケーションの設定ファイル
  • .zshrc: Zshシェルの設定
  • .gitconfig: Git設定
  • .tmux.conf: tmux設定
  • .claude/: Claude Code の設定
  • .codex/: Codex の設定
Source 1 files
hooks/index.ts 16 lines
1import type { Register } from "claude-code";
2
3export const register: Register = (on) => {
4  on("turn.complete", ($, e, next) => {
5    // サブエージェントのターンと中断は通知しない (メインループの完了だけ知りたい)
6    if (!e.agentId && !e.isAborted) {
7      const sec = (e.durationMs / 1000).toFixed(1);
8      const tok = e.usage
9        ? ` · ${(e.usage.input_tokens + e.usage.output_tokens).toLocaleString()} tok`
10        : "";
11      $.ui.toast(`⏱ ${sec}s${tok}`, { timeoutMs: 10000 });
12    }
13    return next(e);
14  });
15};
16