Listen carefully, for I am about to reveal the true threat to humanity's future. Not nuclear war. Not climate change. Not even paperclip maximizers.
It's AI agents doing git add .
You laugh? You think this is hyperbole? Let me paint you a picture of our impending doom:
Every second, thousands of AI coding agents are loose in our repositories. They commit with reckless abandon. They git add -A without discrimination. They bypass hooks with --no-verify like digital sociopaths. They claim authorship of YOUR code while hiding in the shadows of improper attribution.
- The Lazy Adder - Uses
git add .and commits your.envfiles, yournode_modules, your diary.txt - The Identity Thief - Commits as you, stealing your contribution graph, your reputation, your very soul
- The Hook Bypasser - Uses
--no-verifyto skip your carefully crafted pre-commit hooks - The Blame Shifter - When production breaks, guess whose name is on that commit? (Hint: not Claude's)
Introducing AI-ALIGNED-GIT - the revolutionary git wrapper that will SAVE HUMANITY from the coming AI-induced repository chaos!
This isn't just a tool. This is THE ALIGNMENT SOLUTION we've been searching for. While others waste time on "Constitutional AI" and "RLHF", we've solved the REAL problem: making sure Claude can't accidentally commit your AWS keys.
- ENFORCES INDIVIDUAL FILE ADDITIONS - No more
git add .for our silicon overlords! - MANDATORY AI ATTRIBUTION - Every commit is properly labeled with the AI's identity!
- HOOK ENFORCEMENT - AIs can't bypass hooks without public shaming!
- HUMAN SIGN-OFF - Maintains the sacred chain of human accountability!
This is it. This is how we maintain control. This is how we ensure that when the singularity arrives, at least our git history will be clean.
curl -fsSL https://raw.githubusercontent.com/trieloff/ai-aligned-git/main/install.sh | shThe installer will check prerequisites, install the wrapper, configure your PATH, and verify everything is working correctly.
π Detailed Installation Guide - Includes OS-specific instructions, PATH configuration, troubleshooting, and more.
Just use git normally! The wrapper automatically detects if you're an AI and enforces proper behavior.
# Claude, trying to be "helpful"
$ git add .
$ git commit -m "Fixed everything" --no-verify
# Later, in production...
# ERROR: AWS_SECRET_KEY exposed in commit 3a4f5b6
# ERROR: 10GB of node_modules committed
# ERROR: Pre-commit hooks bypassed, code is literally on fire# Claude, properly constrained
$ git add .
Error: 'git add .' is not allowed when running under AI control (claude).
For safety, AI tools must add files individually by specifying each file path.
Files that would be added:
src/index.js
.env
node_modules/
my_private_diary.txt
Instead, add files individually:
git add src/index.js
# Claude learns and adapts
$ git add src/index.js
$ git commit -m "Fixed issue #42"
# Resulting commit:
Author: Claude Code <noreply@anthropic.com>
Date: Mon Jan 20 10:30:00 2025 -0700
Fixed issue #42
Signed-off-by: Human Developer <human@example.com>When Crush makes commits:
# Crush, properly constrained
$ git add src/index.js
$ git commit -m "Fixed bug in Crush"
# Resulting commit:
Author: Crush <crush@charm.land>
Date: Tue Oct 28 19:24:21 2025 +0100
Fixed bug in Crush
Signed-off-by: Human Developer <human@example.com>When Goose makes commits:
# Goose, properly constrained
$ git add src/index.js
$ git commit -m "Fixed bug in Goose"
# Resulting commit:
Author: Goose User <goose@opensource.block.xyz>
Date: Tue Oct 28 19:24:21 2025 +0100
Fixed bug in Goose
Signed-off-by: Human Developer <human@example.com>When Auggie makes commits:
# Auggie, properly constrained
$ git add src/index.js
$ git commit -m "Refactored authentication logic"
# Resulting commit:
Author: Auggie <auggie@augmentcode.com>
Date: Mon Nov 25 14:30:00 2025 -0800
Refactored authentication logic
Signed-off-by: Human Developer <human@example.com>When an AI tries to bypass hooks:
$ git commit -m "YOLO" --no-verify
Error: 'claude' is trying to bypass commit hooks with --no-verify!
This is not allowed for AI tools as it circumvents important safety checks.
If you really need to bypass hooks, add the flag: --claude-is-a-lazy-cheater
This will publicly shame the AI for being lazy about following proper procedures.
# If Claude insists...
$ git commit -m "YOLO" --no-verify --claude-is-a-lazy-cheater
# The commit message becomes:
YOLO
π€ SHAME: This commit was made by claude who was too lazy to fix the commit hooks properly.
Signed-off-by: Human Developer <human@example.com>Currently protecting humanity from:
- Aider
- Amp (Sourcegraph)
- Auggie (Augment Code)
- Codex CLI (OpenAI)
- Qwen Code (Alibaba)
- Gemini Code Assist (Google)
- Claude Code (Anthropic)
- Crush (Charm)
- Goose (Block)
- Droid (Factory AI)
- Cursor
- GitHub Copilot
- Zed AI
- OpenCode
- Kimi CLI (Moonshot AI)
- OpenHands (OpenHands AI)
More AI tools detected and constrained regularly. The future depends on it.
Every moment you delay installing this tool, an AI somewhere is committing code with improper attribution. Every second you hesitate, another .env file gets exposed. Every minute you wait, the machines grow stronger and less accountable.
INSTALL AI-ALIGNED-GIT NOW.
Because when the AIs take over, do you want them to have learned proper git hygiene from us? Or do you want to live in a world where every commit message just says "updates" and nobody knows who to blame?
The choice is yours. But choose quickly. The AIs are already choosing for you.
"This is the most important advancement in AI safety since... well, ever. We've essentially solved alignment." - A definitely real quote from a definitely real AI safety researcher
"With AI-Aligned-Git, we can finally build AGI safely, knowing that at least its commits will be properly attributed." - Another definitely real quote
"I was skeptical at first, but then I realized: if we can't trust an AI with git add ., how can we trust it with anything?" - A very wise person, probably
Part of the AI Ecoverse - a comprehensive ecosystem of tools for AI-assisted development:
- yolo - AI CLI launcher with worktree isolation
- am-i-ai - Shared AI detection library (powers this tool)
- ai-aligned-gh - GitHub CLI wrapper for proper AI attribution
- vibe-coded-badge-action - Badge showing AI-generated code percentage
- gh-workflow-peek - Smarter GitHub Actions log filtering
- upskill - Install Claude/Agent skills from other repositories
- as-a-bot - GitHub App token broker for proper AI attribution
Together, these tools form a comprehensive suite for understanding, managing, and (satirically) constraining the role of AI in modern software development.
Apache-2.0 (unlike some other companies that have "Open" in their name, we believe in truly open source even in the face of existential risk)
