agentleFS
servitolaservitola/dotfiles/macos/AGENTS.md

dotfiles / macos

AGENTS.md16 starsChanged 4 months agoMITView on GitHub

The file

We found no rules to list in this file: it reads as prose or reference rather than instructions.

Files
AGENTS.md

macos — one-shot macOS system configuration: defaults tweaks, per-extension default apps, Dock, hosts.

  • set_defaults.sh is the main entry: idempotent defaults write / PlistBuddy tweaks across Finder, keyboard, Safari, Transmission, Dock, Software Update, dark mode, etc. Run from repo root (sources zsh/functions.sh and helpers/ by relative path); needs sudo. Prints a changed/already-set summary.
  • set_default_apps.sh maps file extensions and UTIs to default apps via duti (VSCode for source/text, IINA for media, Shottr for images, Preview for PDF, etc.). One duti -s <bundle-id> <type> all line per type.
  • dock_setup.sh configures the Dock with defaults + dockutil (orientation, removes all icons, adds chosen apps), then killall Dock.
  • helpers/ holds sourced functions: set_macos_default_if_different.sh and set_plist_value_if_different.sh (only write when current value differs, drive the summary counters), colors.sh, spinner.sh, and try_to_clean_directory.sh / try_to_clean_by_pattern.sh (the latter two are shared with macos_cleanup/).
  • hosts is symlinked to /etc/hosts by the Makefile; it null-routes telemetry domains (Anthropic, VS Code, Microsoft, analytics).
  • Invoked by the root Makefile install target: set_defaults.sh, set_default_apps.sh, dock_setup.sh are sourced; hosts is linked. Not run automatically otherwise.
  • Standalone utilities (not part of make): git-repo-analyzer.sh (find/prune git repos), move-addictive-drums-to-external.sh (migrate AD2 samples to external drive + symlink), update_all_and_cleanup_all.sh (convenience wrapper that sources macos_update/update_all.sh then macos_cleanup/cleanup_all.sh).
  • Sibling dirs macos_update/ (brew/npm/macOS updates) and macos_cleanup/ (cache/log pruning) are separate; this dir is config/setup, they are maintenance. They meet only via update_all_and_cleanup_all.sh and the shared helpers/try_to_clean_* scripts.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.