dotfiles / karabiner
AGENTS.md16 starsChanged 4 months agoMITView on GitHub
The build script uses jq to merge the template with all rule files in sorted order. Then use conditions: {"name": "tab_modifier", "type": "variable_if", "value": 1}
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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 repository105 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
- atuin/AGENTS.mdAGENTS.md
- btop/AGENTS.mdAGENTS.md
- chromium-vimium-extension/AGENTS.mdAGENTS.md
- claude-code/AGENTS.mdAGENTS.md
- codex/AGENTS.mdAGENTS.md
- contextMenu/AGENTS.mdAGENTS.md
- cron/AGENTS.mdAGENTS.md
- crush/AGENTS.mdAGENTS.md
- docker/AGENTS.mdAGENTS.md
- docker-logger/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- eqmac/AGENTS.mdAGENTS.md
- eza/AGENTS.mdAGENTS.md
- firefox-vimium-addon/AGENTS.mdAGENTS.md
- fork/AGENTS.mdAGENTS.md
- hammerspoon/AGENTS.mdAGENTS.md
- hermes/AGENTS.mdAGENTS.md
- heroic/AGENTS.mdAGENTS.md
- homebrew/AGENTS.mdAGENTS.md
- iina/AGENTS.mdAGENTS.md
- immich/AGENTS.mdAGENTS.md
- install/AGENTS.mdAGENTS.md
- iterm/AGENTS.mdAGENTS.md
- keyboard-layout/AGENTS.mdAGENTS.md
- lazydocker/AGENTS.mdAGENTS.md
- lazygit/AGENTS.mdAGENTS.md
- litellm/AGENTS.mdAGENTS.md
- macos/AGENTS.mdAGENTS.md
- macos_cleanup/AGENTS.mdAGENTS.md
- macos_update/AGENTS.mdAGENTS.md
- marta/AGENTS.mdAGENTS.md
- mistral-vibe/AGENTS.mdAGENTS.md
- noti/AGENTS.mdAGENTS.md
- npm/AGENTS.mdAGENTS.md
- opencode/AGENTS.mdAGENTS.md
- python/AGENTS.mdAGENTS.md
- qdrant/AGENTS.mdAGENTS.md
- qwen-code/AGENTS.mdAGENTS.md
- rag/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
- ableton/CLAUDE.mdCLAUDE.md
- aichat/CLAUDE.mdCLAUDE.md
- aider/CLAUDE.mdCLAUDE.md
- annepro2/CLAUDE.mdCLAUDE.md
- atuin/CLAUDE.mdCLAUDE.md
- btop/CLAUDE.mdCLAUDE.md
- chromium-vimium-extension/CLAUDE.mdCLAUDE.md
- claude-code/CLAUDE.mdCLAUDE.md
- The first 60 shown.
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 7
Build: Run ./build.sh to regenerate karabiner.json
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
Karabiner Configuration Rules
Build System
karabiner.json is generated — do NOT edit it directly!
- Edit: Individual rule files in
rules/*.json - Build: Run
./build.shto regeneratekarabiner.json - Template:
karabiner-template.jsonhas global settings, profiles, and empty rules array
The build script uses jq to merge the template with all rule files in sorted order.
Rule Files (rules/)
01-tab-modifier.json — Tab as modifier layer (hold Tab + key)
02-alt-shift-delete.json — Alt+Shift+Q = Shift+Delete Forward
03-right-option-symbols.json — Right Option + C/E/D/A/R = ©/€/°/≈/®
04-caps-lock-hyper.json — Caps Lock → all 4 right modifiers (Hyper)
05-grave-to-escape.json — Grave/Tilde → Escape (pass-through with Hyper)
06-hyper-layer-fkeys.json — Hyper+letter → F13-F19 (caught by Hammerspoon)
07-hyper-only.json — Hyper + key (no additional modifiers)
08-hyper-shift.json — Hyper + Shift + key
09-hyper-command.json — Hyper + Command + key
10-hyper-option.json — Hyper + Option + key
11-hyper-control.json — Hyper + Control + key
12-hyper-shift-command.json — Hyper + Shift + Command + key
13-hyper-shift-option.json — Hyper + Shift + Option + key
14-hyper-shift-control.json — Hyper + Shift + Control + key
15-hyper-command-option.json — Hyper + Command + Option + key
16-hyper-command-control.json— Hyper + Command + Control + key
17-hyper-option-control.json — Hyper + Option + Control + key
18-hyper-misc.json — Non-hyper modifiers (Alt, Shift, etc.)
19-brightness-control.json — Cmd+Shift+Arrow = brightness
20-alt-shortcuts-2.json — Alt+2 = Ctrl+Shift+Z
21-alt-shortcuts-3.json — Alt+3 = Cmd+N
22-custom-right-cmd.json — Right Command remappings
23-left-hand-delete.json — Ctrl+Shift+A/D for delete/backspace
24-fn-to-control.json — Fn → Left Control (internal keyboard)
25-music-control.json — Hyper+Shift+Space → Keypad 0Core Remappings (Don't Break These)
- Caps Lock → Hyper: Maps to all 4 right modifiers (right_command, right_control, right_option, right_shift)
- Tab as modifier layer: Hold Tab + key for shortcuts, tap alone sends Tab
- Fn → Left Control: On internal keyboard only (for 60% keyboard compatibility)
- Grave/Tilde → Escape: Except when Hyper is held
Tab Modifier Pattern (Variable-Based Layer)
"from": {"key_code": "tab"},
"to": [{"set_variable": {"name": "tab_modifier", "value": 1}}],
"to_after_key_up": [{"set_variable": {"name": "tab_modifier", "value": 0}}],
"to_if_alone": [{"key_code": "tab"}]Then use conditions: {"name": "tab_modifier", "type": "variable_if", "value": 1}
Hyper Layer Pattern (Remap to F-keys)
- Hyper + letter keys remap to F13-F19
- Hammerspoon catches F-keys and launches apps/functions
- Example: Hyper+V → F19 → Hammerspoon launches Yandex
References
- Full keyboard system: @../docs/keyboard-setup.md
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.

