ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
GitHub 저장소 · 작성자 arthur-fontaine

cache-timer

프롬프트 푸터에서 prompt cache의 수명을 카운트다운해 다음 메시지가 저렴한 캐시 읽기가 될지 전체 재전송이 될지 알 수 있게 합니다.

arthur-fontaine@arthur-fontaine

arthur-fontaine/nixconfig/tree/main/modules/home/programs/claude/mods/cache-timer

번역 완료

이 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:

  1. ask you for the machine-specific values it cannot guess safely
  2. install Apple Command Line Tools if needed
  3. install Nix
  4. install Homebrew
  5. clone this repo locally
  6. create hosts/local.nix for your machine
  7. 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:

  1. install Apple Command Line Tools
  2. install Nix
  3. install Homebrew
  4. clone the repo
  5. create hosts/local.nix from hosts/local.nix.example
  6. 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 repo
  • hosts/local.nix: local machine config created by the bootstrap script
  • hosts/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:

동명의 다른 작품

비슷한 프로젝트