dotfiles
macOS setup for AI coding assistants: [Claude Code] and [Codex].
One local operating layer for:
- shared assistant policy
- shared safety hooks and permission policy
- token-pressure measurement with explicit limits
- repeatable setup verification
Start points:
Evidence summary (~2026-07-06)
These are separate counters, not one additive savings total.
| Surface | Current evidence | Safe interpretation |
|---|
| [RTK] ingress reduction | rtk gain records command-output reduction estimates. The hook keeps search rewrites and bypasses cat/head/tail, whose default RTK read path returns full content. | Directional tool-output estimate only. Do not report it as realized token or billing savings. |
| Public usage ledger | [Tokscale]: 93.711B tokens and 95.8% cache-read through 2026-07-05. | Public token-mix snapshot. Not causality proof for one repo change. |
| Headroom proxy health (retired 2026-08) | 22,337 routed requests. 18,469 cached (82.7%). 54 failed (0.24%). 0 rate-limited. 1 cache-bust. | Measured while the Headroom proxy was in use. It is proxy telemetry, never a token-savings figure — output-token savings were never claimed, because no baseline or holdout run existed. Kept as a record of what was measured; the layer has since been removed. |
Cross-machine totals are omitted until each machine is refreshed with the same capture window.
Install
Fresh macOS install:
curl -fsSL https://raw.githubusercontent.com/voidmatcha/dotfiles/main/bootstrap.sh | bash
Preview without changing the machine:
curl -fsSL https://raw.githubusercontent.com/voidmatcha/dotfiles/main/bootstrap.sh | bash -s -- --dry-run
Run from an existing clone:
cd ~/dotfiles
./install.sh
Update an existing machine:
./update.sh --check # preview: git pull + install.sh --dry-run --upgrade
./update.sh # git pull --ff-only + install.sh --upgrade
./update.sh --no-pull
The default update rerun converges installed package-manager tools and direct
release binaries to the latest release on each configured update channel.
Intentional skill commit pins and the 1.5 GB whisper model are preserved; use
--setup-only to skip explicit refreshes of already-installed tools.
Health/status snapshot:
./scripts/doctor.sh
bootstrap.sh installs Xcode Command Line Tools when git is missing, clones this repo into ~/dotfiles, and hands off to ./install.sh. The company/ overlay runs only when the submodule exists locally.
What gets installed
| Area | Installs/configures | Source |
|---|
| macOS defaults | Dock, Finder, keyboard, screenshots, firewall. | scripts/macos.sh |
| CLI packages | [Homebrew] tools, [Bats], [gitleaks], [uv], [gettext], [git-filter-repo], [Docker CLI] on [colima] (compose, buildx, and the credential helper from Homebrew; no Docker Desktop). | Brewfile, scripts/brew.sh |
| Language runtimes | [nvm], [Node.js] LTS, [Corepack], [pyenv], latest [Python] 3, [SDKMAN!], [OpenJDK] LTS, [Maven]. | scripts/dev.sh |
| Shell and Git | [Zsh] plugins, [direnv], ~/.local/bin first on PATH in every zsh and login bash (marked blocks in ~/.zshenv, ~/.zprofile, and ~/.bash_profile, or ~/.profile when there is no ~/.bash_profile), personal/work Git identities, SSH signing via [OpenSSH]. | scripts/shell.sh, scripts/git.sh |
| Agent CLIs | [Claude Code], [Codex]. | scripts/claude.sh, scripts/codex.sh, scripts/dev.sh |
| Private remote access | [Tailscale], [Tailscale SSH], [OpenSSH], [code-server], [Orca] (orca serve). [Tailscale Serve] is on by default (tailnet only; opt out with ENABLE_TAILSCALE_SERVE=0). | scripts/tailscale.sh, scripts/services.sh |
Run a focused installer when full setup is not needed:
./scripts/brew.sh
./scripts/retire.sh
./scripts/macos.sh
./scripts/dev.sh
./scripts/shell.sh
./scripts/git.sh
./scripts/codex.sh
./scripts/claude.sh
./scripts/tailscale.sh
./scripts/services.sh