Version0.2.1
Revision6
Size20.8 MB
LicenseMIT
Confinementstrict
Basecore26

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 git push can force-push over shared
history, 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 a
watched 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 push fails 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

Published6 Oct 2026, 13:03 UTC

Last updated23 Oct 2026, 21:20 UTC

First seen23 Oct 2026, 21:45 UTC