moonlight-commit logo

moonlight-commit

Now that coding agents can write code anytime, anywhere — don’t get caught in hot water by letting them commit during the workday.

moonlight-commit is a Git hook that blocks commits during work hours (default 9am–5pm Monday–Friday), helping you preserve your creative energy for personal projects. Inspired by California Labor Code §2870, it ensures your side projects stay yours.

curl -s https://moonlight-commit.com/install.sh | bash

Features

🕒 Configurable Hours & Days

Set your own block window and days via git config.

🚨 Hotfix & Vacation Exemption

Commits on hotfix/* or vacation/* branches always go through.

🏢 Org Whitelist

Never block commits to whitelisted GitHub organizations.

🔓 Override Flag

Use [override] in commit messages to bypass restrictions.

Built for vibes. Not legal advice.

The Founder GIF Jurassic Park GIF

View the project on GitHub.