Install the hooks and starter checks in your repository.
$ npm install -D @githooked/cli$ npx git-hooked init✓ Pre-commit and pre-push installedGit hooks powered by the coding agent
you already use.
$ git add .env && git commit -m "add deploy config"
Hooky checked 4 staged files.
Are you mad?! You're trying to commit a .env file!
Check builtin:env-files
Commit blocked. Your .env stays local.
Free, open source, and no additional API key.
Install Git Hooked in this repository. First verify Node.js 22+, Git, and a supported coding-agent CLI. Then run npm install --save-dev @githooked/cli followed by npx git-hooked init. Review the files and hooks it creates, then tell me what was installed and which agent was detected. Do not bypass any safety checks.
$ npm install --save-dev @githooked/cli
$ npx git-hooked init
Coding agent detected: Codex
Pre-commit hook installed
Pre-push hook installed
Hooky is watching your repo
Once installed, Git Hooked checks your changes whenever you commit or push.
Install the hooks and starter checks in your repository.
$ npm install -D @githooked/cli$ npx git-hooked init✓ Pre-commit and pre-push installedWrite code, stage it, and commit exactly as you do today.
<user creates src/api.ts>$ git add src/api.ts$ git commit -m "add profile endpoint"Hooky explains what failed and gives you clear ways forward.
Git Hooked is checking…✗ accessToken exposed in API responsesrc/api.ts:42→ Fix the response and commit again→ Review the rule or open the report
Describe the policy. Git Hooked plans the safest check and shows you everything before writing it.
$ git-hooked rule add \
"API responses must never expose accessToken"
Follow the complete setup guide, then choose checks that fit the repository.
Learn the default workflow, hook configuration, custom rules, guide packs, and maintenance commands.
Read the guide CHECK LIBRARYBrowse what is built inCompare six shipped checks and five curated packs covering security, APIs, databases, and payments.
Explore the library