dotfiles / git
AGENTS.md16 starsChanged 48 days agoMITView on GitHub
Gitconfig fragments symlinked into ~/.gitconfig (install/07-config-links.sh), plus the machine-wide AI-footer guard below. Mechanism: git config --global init.templateDir ~/projects/dotfiles/git/hooks/template Git copies everything under a template dir's hooks/ into .git/hooks/ on every git init and git clone, anywhere on the machine, for any repo. Our template ships one file, hooks/template/hooks/commit-msg — a stub that execs git/hooks/check-ai-footer.sh "$@". It's a stub and not the logic itself so a pattern fix in check-ai-footer.sh reaches every already-materialized repo instantly, no re-init needed. check-ai-footer.sh reads the…
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
- dotfiles_tests/AGENTS.mdAGENTS.md
- eza/AGENTS.mdAGENTS.md
- firefox-vimium-addon/AGENTS.mdAGENTS.md
- fork/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
git/
Gitconfig fragments symlinked into ~/.gitconfig (install/07-config-links.sh), plus the
machine-wide AI-footer guard below.
AI co-author/tool footer guard
Mechanism: git config --global init.templateDir ~/projects/dotfiles/git/hooks/template
Git copies everything under a template dir's hooks/ into
.git/hooks/ on every git init and git clone, anywhere on the machine, for any repo. Our
template ships one file, hooks/template/hooks/commit-msg — a stub that execs
git/hooks/check-ai-footer.sh "$@". It's a stub and not the logic itself so a pattern fix in
check-ai-footer.sh reaches every already-materialized repo instantly, no re-init needed.
check-ai-footer.sh reads the commit message file, strips #-comment lines the way git itself
does, and greps case-insensitively for a short pattern list
Any match aborts the commit (exit 1) with the offending line on stderr, before the commit object is ever created.
Blind spots:
git commit --no-verifybypasses every hook, ours included — same as any git hook.- Repos outside
~/projectsthat existed before the backfill ran, and were never covered by a laterbackfill.sh <root>call. - Bare repos and submodule gitlinks (
.gitas a file, not thehooks/case afind -name .git -type dsweep covers) aren't touched bybackfill.sh; submodules inherit hooks from the superproject's.git/modules/<name>/hooks, a separate mechanism. - A repo with its own pre-existing
commit-msghook (for something else, e.g. commitlint) is left alone by the backfill — the check has to be added to that hook by hand.
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.

