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.
(Ownership verified)
The publisher has verified that they own this domain.
It does not guarantee the Snap is an official upload
from the upstream project.
Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.
Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.
Enable snapd
Snap can be installed on Pop!_OS from the command line. Open Terminal from the Applications launcher and type the following:
sudo apt update
sudo apt install snapd
Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.
Install git-watchdog
To install git-watchdog, simply use the following command: