dotfiles
AGENTS.md16 starsChanged 48 days agoMITView on GitHub
These dotfiles are an operating system on top of macOS. Not just a set of configs, but a living, evolving workspace management system. New here? Read docs/repo-map.md — it tiers every directory by importance (Core / Important / Secondary / Peripheral / Experiment), so you know what matters and what's just an experiment. Each directory also has its own AGENTS.md with operational detail. Repository is private and self-hosted on Gitea (origin; the server itself — i9, access, backups — is…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository50 other files it gives its agents.
- ableton/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
- dotfiles_tests/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
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
Never brew uninstall --zap codex — its zap stanza deletes ~/.codex.
- Very specific: line 55
Comments are English-only: Every comment in this repo — Lua, shell, Python, YAML, TOML — is written in English, whatever language the …
- Distinctive: line 71
Fail-fast philosophy: Do NOT add existence checks for dependencies, tools, or paths.
- Very specific: line 72
Linting: No linting required - this is a configuration repository (shell scripts, Lua scripts, dotfiles)
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Guidelines for Dotfiles Repository
These dotfiles are an operating system on top of macOS. Not just a set of configs, but a living, evolving workspace management system.
New here? Read docs/repo-map.md — it tiers every directory by importance
(Core / Important / Secondary / Peripheral / Experiment), so you know what
matters and what's just an experiment. Each directory also has its own
AGENTS.md with operational detail.
Build/Test Commands
make- Full dotfiles installation & symlink setup (thin wrapper:makejust runs./install.sh)up- System-wide update & cleanup (brew, npm, macOS, cache)
Architecture & Structure
- Dotfiles repo: Configuration files symlinked to system locations (~/.zshrc, ~/.gitconfig, etc.)
- Package management: Homebrew with brewfile for app installations and documentation in
/opt/homebrew/docs/ - Automation: Hammerspoon for window management, URL routing, keyboard layouts
- Keyboard: Karabiner-Elements owns keys, Hammerspoon owns meaning; the whole stack and where to change what:
docs/keyboard-setup.md - Shell: Zsh + Oh My Zsh with extensive plugin ecosystem
- No databases or APIs: Pure configuration repository
- Symlinks: Created by
install.sh/install/*.sh(e.g., ~/.gitconfig → git/gitconfig; app configs link to respective directories) - Reference: See
README.mdfor detailed setup
AI Coding Tools — Shared Configuration
Skills, detached skills, commands and agents live in $DIR_SKILLS (~/projects/skills); install/08-ai-tools-links.sh links them into claude-code/, and Codex and OpenCode reach them through the same links. Add or edit them there, not here. Codex keeps its own global config in codex/.
Detached (opt-in, per-folder) skills are in claude-code/detached_skills/ (a link too), detached MCP servers in claude-code/detached_mcp/ (tracked here) — attach with skill-attach <name> [dir] / mcp-attach <name> [dir].
Repository is private and self-hosted on Gitea (origin; the server itself — i9, access, backups — is documented in ~/projects/services/gitea); remote github is a fork marker, push disabled (git remote set-url --push github no_push) — do not publish this repository, it contains personal data
Full symlink map, tool-specific configs, and Codex operational rules (1024-char description limit, vendored openai-docs, install via cask only): see claude-code/AGENTS.md.
Never brew uninstall --zap codex — its zap stanza deletes ~/.codex.
@file.md imports are Claude-Code-only. claude-code/CLAUDE.md reaches four
harnesses — Claude Code (the whole ~/.claude dir is a symlink to
claude-code/, made by install/08-ai-tools-links.sh, so edits are live with
no sync step), Codex (~/.codex/instructions.md symlink) and OpenCode (instructions[] in opencode.json). But only Claude Code
expands @RTK.md; the other three receive it as literal text (verified
2026-07-25 against a Codex session transcript). Anything every harness must know
goes inline in that file — a separate file plus @import silently reaches
Claude Code only. RTK.md has this problem today and is unfixed.
~/.claude/rules/*.md IS auto-loaded by Claude Code into the system prompt
(verified on CC 2.1.220). It is gitignored, so it is the wrong home for
hand-written knowledge, and everything there is billed on every session. It is
empty on purpose: up used to fill it with rtk learn --write-rules, whose
"corrections" were false (rtk/AGENTS.md).
Model lists: query the runtime, never grep a config. Codex →
~/.codex/models_cache.json. LiteLLM → curl -s localhost:4000/v1/models.
Grepping $DIR_LITELLM/config.yaml for model_name: gives false positives (it marked
the live coder alias as dead). Current model/context/pricing tables for Codex
and Claude live in the # Models section of claude-code/CLAUDE.md.
Code Style Guidelines
- Comments are English-only. Every comment in this repo — Lua, shell, Python, YAML, TOML —
is written in English, whatever language the conversation that produced it was in. Enforced by
the
no-russian-commentspre-commit hook. This is about prose: Cyrillic that is data stays untouched — therucolumn of the keyboard-layout tables inHotKeys.spoon/layout/60%/*.lua, paths with Cyrillic folder names, Telegram message texts, dictation dictionaries, test fixtures. Translating those breaks the thing they describe. - Docs are English-only too, on the same terms.
AGENTS.md,CLAUDE.md,README.mdand anything else indocs/is written in English even when the session that produced it ran in Russian. The hook does not cover.md(it only knows comment markers, and Markdown has none), so this one is on you. Same data carve-out, and it matters more here: skill and agent descriptions underclaude-code/skills/andclaude-code/agents/carry Russian trigger phrases on purpose — a skill fires on the words the user actually types, so translating adescription:silently stops it from firing. Body prose in those files is English; the trigger lists are data. Same forclaude-code-memory/, where Russian source titles and quotes are content, not writing. - Theme: Gruvbox Dark Hard. If possible modern Apple-glass Gruvbox
- Fail-fast philosophy: Do NOT add existence checks for dependencies, tools, or paths. If something required is missing, the script should fail loudly. This is intentional — it surfaces setup issues immediately.
- Linting: No linting required - this is a configuration repository (shell scripts, Lua scripts, dotfiles)
Git hooks
Two separate layers, don't confuse them:
- This repo's own hooks (
no-russian-comments,lint-shell, …) run only here, via.git-hooks/+.pre-commit-config.yaml— see## Code Style Guidelinesabove. - A machine-wide
commit-msghook rejects AI co-author/tool footers in every repo on this machine, dotfiles included, deployed viainit.templateDir(notcore.hooksPath— that option breakspre-commit install, see below). Full mechanism, proof, and blind spots:git/AGENTS.md.
Install conventions
The installer is plain zsh, not make. Makefile is a one-line wrapper
(install: ; @./install.sh) kept only so make and CI still work.
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.

