0.2.1620.8 MB
MIT
strict
core26
Read-only Git remotes while selected processes (e.g. AI agents) run
AI coding agents run commands with your permissions, including your SSH keys
and Git credentials. A single unattended
history, delete a branch or publish unreviewed code, and that is hard to undo
once it reaches the server.
watched process is alive (by default the Claude CLI and Claude Desktop), it
puts the remotes of your local repositories in read-only mode:
When the process exits, the original remotes are restored exactly as they
were. It guards against accidental pushes, not a determined attacker; see https://github.com/dobicinaitis/git-watchdog#security-notes
and Git credentials. A single unattended
git push can force-push over sharedhistory, delete a branch or publish unreviewed code, and that is hard to undo
once it reaches the server.
git-watchdog removes push access while an agent is running. As long as awatched process is alive (by default the Claude CLI and Claude Desktop), it
puts the remotes of your local repositories in read-only mode:
- Pushing is blocked, so
git pushfails instead of reaching the server. - Fetching keeps working through a read-only access token, so the agent doesn't need your SSH key to pull.
When the process exits, the original remotes are restored exactly as they
were. It guards against accidental pushes, not a determined attacker; see https://github.com/dobicinaitis/git-watchdog#security-notes
Update History
0.2.1 (6)23 Oct 2026, 21:45 UTC
6 Oct 2026, 13:03 UTC
23 Oct 2026, 21:20 UTC
23 Oct 2026, 21:45 UTC