Rewrite the draft
commit-msg cleans the temporary message after a client proposes it and before Git creates a commit object.
You used an AI coding tool. That does not mean every commit and pull request needs to advertise it. Remove automatic agent credits on your own machine, before Git records them or GitHub receives them.
$ ai-credit-scrub install --git installed Git commit-msg rewriter installed Git pre-push guard $ git commit -m "Docs" automatic agent credit removed
commit-msg cleans the temporary message after a client proposes it and before Git creates a commit object.
pre-push inspects outgoing messages and blocks a bypassed credit before the remote update is sent.
ai-credit-scrub pr create sanitizes title and body before it delegates to your local gh.
ai-credit-scrub is not a hosted checker or an AI classifier. It is a small, deterministic Go binary for developers who want the final repository message to be theirs.
Yes for local Git commits through the universal hooks. Optional adapters remind those tools to use the local PR wrapper.
PR text does not pass through Git. Use the local wrapper, or replace the GitHub-writing MCP server with a local sanitized proxy that you control.
Yes. git push --no-verify is an intentional client-side override. A local hook cannot prevent a user from deliberately disabling local hooks.