← Browse
tidy-git-guard
gurhankokcu ★ 0
tidy-git-guard is a hook that intercepts all git commands executed by Claude Code and opencode agents, allowing only read-only operations (log, diff, status, etc.) while blocking state-changing commands like add, commit, and push. The agent can inspect the repository but cannot modify it, with the hook asking the user to run any blocked commands manually.
Install
> /plugin marketplace add gurhankokcu/tidy-plugins/tree/HEAD/plugins/tidy-git-guard
> /plugin install tidy-git-guard
Source: https://github.com/gurhankokcu/tidy-plugins/tree/HEAD/plugins/tidy-git-guard
What it's made of
1 hook
- Commands
- 0
- Agents
- 0
- Skills
- 0
- MCP servers
- 0
- Hooks
- 1 · PreToolUse
What it needs & plugs into
- API keys
- none
- Paid services
- none detected
- External tools
node- Talks to
- nothing external detected
Analyzed . Facts extracted from the plugin's files. Prose generated by claude-haiku-4-5-20251001.
Is this your plugin?
Claim it to keep the card accurate and enter the weekly contest. Requires signing in as the GitHub owner (gurhankokcu).