dotfiles / dotfiles_tests
AGENTS.md16 starsChanged 48 days agoMITView on GitHub
run.sh takes a clean macOS VM, puts these dotfiles on it and runs what a new user would: make (twice), install/check.sh, brew doctor, a broken-symlink sweep, a shell start, the hotkeys, and up (twice). Green means the repository installs on an empty Mac, a second install changes nothing, the shell and the hotkeys work, and up keeps it updated. A full run takes ~30 min (the whole brewfile installs). Logs, one per stage: ~/.local/state/dotfiles/vm-test/<vm>/.
- Reads credentials
In this repository50 other files it gives its agents.
- ableton/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- aichat/AGENTS.mdAGENTS.md
- aider/AGENTS.mdAGENTS.md
- annepro2/AGENTS.mdAGENTS.md
- applesauce/AGENTS.mdAGENTS.md
- atuin/AGENTS.mdAGENTS.md
- btop/AGENTS.mdAGENTS.md
- chromium-vimium-extension/AGENTS.mdAGENTS.md
- claude-code/AGENTS.mdAGENTS.md
- codex/AGENTS.mdAGENTS.md
- constants/AGENTS.mdAGENTS.md
- contextMenu/AGENTS.mdAGENTS.md
- cron/AGENTS.mdAGENTS.md
- docker/AGENTS.mdAGENTS.md
- docker-logger/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- eza/AGENTS.mdAGENTS.md
- firefox-vimium-addon/AGENTS.mdAGENTS.md
- fork/AGENTS.mdAGENTS.md
- git/AGENTS.mdAGENTS.md
- hammerspoon/AGENTS.mdAGENTS.md
- heroic/AGENTS.mdAGENTS.md
- homebrew/AGENTS.mdAGENTS.md
- iina/AGENTS.mdAGENTS.md
- install/AGENTS.mdAGENTS.md
- iterm/AGENTS.mdAGENTS.md
- jetbrains rider/AGENTS.mdAGENTS.md
- karabiner/AGENTS.mdAGENTS.md
- lazydocker/AGENTS.mdAGENTS.md
- lazygit/AGENTS.mdAGENTS.md
- macos/AGENTS.mdAGENTS.md
- macos_cleanup/AGENTS.mdAGENTS.md
- macos_shortcuts/AGENTS.mdAGENTS.md
- macos_update/AGENTS.mdAGENTS.md
- marta/AGENTS.mdAGENTS.md
- noti/AGENTS.mdAGENTS.md
- npm/AGENTS.mdAGENTS.md
- opencode/AGENTS.mdAGENTS.md
- python/AGENTS.mdAGENTS.md
- qdrant/AGENTS.mdAGENTS.md
- rtk/AGENTS.mdAGENTS.md
- tmux/AGENTS.mdAGENTS.md
- uv/AGENTS.mdAGENTS.md
- voiceink/AGENTS.mdAGENTS.md
- vscode/AGENTS.mdAGENTS.md
- xcode/AGENTS.mdAGENTS.md
- zap/AGENTS.mdAGENTS.md
- zsh/AGENTS.mdAGENTS.md
- claude-code/CLAUDE.mdCLAUDE.md
The file
Files
dotfiles_tests — a new user's Mac, from scratch, in a VM
run.sh takes a clean macOS VM, puts these dotfiles on it and runs what a new
user would: make (twice), install/check.sh, brew doctor, a broken-symlink
sweep, a shell start, the hotkeys, and up (twice). Green means the repository
installs on an empty Mac, a second install changes nothing, the shell and the
hotkeys work, and up keeps it updated.
dotfiles_tests/run.sh # every stage, then the VM is deleted
dotfiles_tests/run.sh --keep # leave the VM up and print its ssh line
dotfiles_tests/run.sh make check # only some stagesA full run takes ~30 min (the whole brewfile installs). Logs, one per stage:
~/.local/state/dotfiles/vm-test/<vm>/.
Files
| File | What it is |
run.sh | The test: stages, their commands and time limits, the order of a run |
vm.sh | Tart plumbing: base image, throwaway clone, ssh, copying repositories in |
fresh_mac.sh | Runs inside the VM before make: makes the CI image look like a new user's Mac |
checks.sh | Runs inside the VM: the remake, links and shell stages |
hotkeys.sh | Runs inside the VM: the hotkeys and apps stages, through hs -c |
hotkeys_live.lua | hotkeys: every chord of the HotKeys layout tables is a bound hotkey |
hotkeys_apps.lua | apps: every app chord, pressed, brings its app to the front |
How a run goes
- On
$TART_HOST(m1pro), clonedotfiles-baseintodotfiles-test-<time>. The clone is an APFS copy and takes seconds. - Copy in the committed HEAD of dotfiles,
$DIR_SKILLSand$DIR_CRONas git bundles. Uncommitted edits are not tested; the VM cannot reach Gitea. fresh_mac.sh:constants.envfromconstants.example.envas on any new Mac (official Telegram included),DOCKER=no, a short skip list for the brewfile, the image's own extras removed, Accessibility for Hammerspoon.- The stages, each with a time limit. A failed
makestops the run.
Changing it
- A stage: one line in
commandand one inminutesinrun.sh. - What a new user's Mac looks like:
fresh_mac.sh. A brewfile entry goes on its skip list only with the reason next to it, and leaves as soon as the reason does. - A new macOS: change
IMAGEinvm.shand deletedotfiles-baseon the host (ssh m1pro tart delete dotfiles-base); the next run bakes a new one.
Why it is this way
- The host does the work. Tart's VM network is private to
$TART_HOST, so every ssh hop goes through it (-J). dotfiles-baseis baked once fromIMAGE: our ssh keys in (the image only knows admin/admin) and the disk grown to 100 GB (the image has ~7 GB free).- Shared download cache. Homebrew downloads (~11 GB) live on the host in
~/.cache/tart-homebrewand reach the VM throughtart run --dir, formakeonly:upbegins by deleting its cache. DOCKER=no: M1/M2 have no nested virtualization, so no Docker daemon runs in a VM. The stacks are checked byinstall/check.shon the real Macs.- Official Telegram: the example's
APP_TELEGRAM; the owner's Forkgram releases are private. - App Store apps are skipped: nobody can sign in to the App Store in the VM, and without a terminal
makeleaves them out. - Time limits: a dialog nobody sees blocks forever (Gatekeeper once held a run for 4.5 h).
- Hotkeys are tested after Karabiner. Karabiner reads the real keyboard through its driver and never sees a key a program posts, and its driver needs a person's approval anyway. So
appsposts what Karabiner would produce (F17for⇪T) and checks Hammerspoon's side; Karabiner itself is covered bydocs/keyboard/tools/lint.py. Chords with⇪in the table are skipped: right-hand modifiers cannot be posted apart from left ones. - Accessibility through TCC.db: SIP is off in the cirruslabs image, so
fresh_mac.shwrites the grant a person would click; Hammerspoon cannot press keys without it. - F-keys and fn: a real F13–F19 press carries the fn flag and the hotkey matches only with it; F20 matches only without it. Measured in the VM.
remakefails on any✓line of a secondmake: a step that reports a change every time either rewrites something it should leave alone or reports what it did not do (the keyboard layouts andsoftwareupdate --scheduleboth did).shellfails on any output to stderr from an interactive zsh, or a start slower than 1 s.- Two VMs at most: Apple's license lets a host run two macOS VMs at once; a third does not boot.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

