arthur-fontaine/nixconfig/tree/main/modules/home/programs/claude/mods/cache-timer
cache-timer
プロンプトのフッターで prompt cache の有効期間をカウントダウンし、次のメッセージが安価なキャッシュ読み取りになるか完全再送になるかを判断できるようにします。
この mod について
プロンプトのフッターに prompt cache の残り有効期間をカウントダウン表示する Claude Code プラグインです。次のメッセージが安価なキャッシュ読み取りに当たるのか、完全な再送を引き起こすのかを判断できます。arthur-fontaine/nixconfig リポジトリの一部として、modules/home/programs/claude/mods/cache-timer に配置されています。検証済みの .claude-plugin/plugin.json マニフェストと hooks/register.js モジュールを含みます。
インストール
まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。
claude plugin marketplace add arthur-fontaine/nixconfig claude plugin install cache-timer
原文 / README
nixconfig
If you land on this repo and want to configure a Mac with it, start here.
What this gives you
This repo installs and manages:
- macOS defaults
- Homebrew formulae and casks
- shell setup
- Git, GitHub CLI, ssh, Zed, Neovim, Ghostty, Karabiner, Pi, Codex, Claude, Mise, and more
- app preferences for Droppy, Smallcast, Bartender, Keka, OpenLogi, and others
- local models for Llama.app, downloaded on
rebuild - development tooling such as Go tools and Cargo binaries
It is designed for Apple Silicon Macs but it might work on Intel Macs too (I have not tested it).
Quick start
Paste this into a fresh macOS terminal:
tmp="$(mktemp -t nixconfig-bootstrap.XXXXXX.sh)" &&
curl -fsSL https://raw.githubusercontent.com/arthur-fontaine/nixconfig/main/scripts/bootstrap-macos.sh -o "$tmp" &&
chmod +x "$tmp" &&
"$tmp"
The bootstrap script will:
- ask you for the machine-specific values it cannot guess safely
- install Apple Command Line Tools if needed
- install Nix
- install Homebrew
- clone this repo locally
- create
hosts/local.nixfor your machine - run
darwin-rebuild switch
What it asks you
The script prompts for:
- the local host/configuration name
- your macOS username
- your Git author name
- your Git author email
- an optional Git SSH signing key
Important note
If Apple Command Line Tools are not already installed, macOS may open a system dialog during bootstrap. Approve it, let it finish, then return to the terminal and continue.
After the install
Some app sign-ins and permissions are still intentionally manual. See:
Updating later
Once the machine is bootstrapped:
cd ~/nixconfig
sudo darwin-rebuild switch --flake "path:$PWD#<your-host-name>"
If you installed the repo somewhere else, replace ~/nixconfig with your chosen path.
Use the path: prefix as long as your machine definition lives in git-ignored hosts/local.nix.
Manual setup path
If you do not want to run the bootstrap script, the manual flow is:
- install Apple Command Line Tools
- install Nix
- install Homebrew
- clone the repo
- create
hosts/local.nixfromhosts/local.nix.example - run:
sudo nix --extra-experimental-features 'nix-command flakes' \
run github:LnL7/nix-darwin/master#darwin-rebuild -- switch --flake "path:$PWD#<your-host-name>"
Host configuration
Machine-specific values live in one of these files:
hosts/shared.nix: tracked hosts already in the repohosts/local.nix: local machine config created by the bootstrap scripthosts/local.nix.example: template for manual setup
hosts/local.nix is git-ignored on purpose, so you can bootstrap a new machine without editing tracked files first.
If you want to version your host definition, move it into hosts/shared.nix after the first successful install.
Use your fork instead of this repo
If you fork this repository, you can still use the same bootstrap script while pointing it at your fork:
tmp="$(mktemp -t nixconfig-bootstrap.XXXXXX.sh)" &&
curl -fsSL https://raw.githubusercontent.com/arthur-fontaine/nixconfig/main/scripts/bootstrap-macos.sh -o "$tmp" &&
chmod +x "$tmp" &&
NIXCONFIG_REPO_URL=https://github.com/<you>/nixconfig.git "$tmp"
Want the implementation details?
The technical structure was moved out of the main README. See:
docs/repository-layout.mddocs/syncing-config.md: how to copy a setting you changed in an app back into the repo
同名の他の作品
- cache-timermtmtian · ★ 0
- cache-timerildunari · ★ 0
- cache-timergrennis · ★ 0
