ClaudeCodeMod

All shelves / Mods / Safety

push-gate

By IvanLutsenko

push-gate is a Claude Code safety mod by IvanLutsenko.

Asks before every git push the model runs, with the repository, branch, upstream, commit count, and a force-push warning, and runs the confirmed push itself.

Holds a command

Install

The marketplace name is awac-ai-agent-plugins.

In Claude Code
/plugin install push-gate --marketplace IvanLutsenko/awac-ai-agent-plugins
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.2.0
License
MIT
Repo stars
3
Last change
2026-10-23

What it can reach

  • Holds a command
  • Sees tool calls
  • Runs a command when you press

Claude Code with mods, 2.1.308 or later; the author calls the hook API early access. The dialog's buttons are in Russian. A command over 2,000 characters is refused outright. A confirmed push runs outside the permission system, so a PreToolUse guard does not see it; the README gives a hook that denies every other push, and says to protect the branches that matter on GitHub or GitLab.

The marketplace, awac-ai-agent-plugins, holds Ivan Lutsenko's eleven plugins, nyan-progress and talk-deck among them. This one installs on its own. Holding a push is why this page files it under safety. rulebook-guard, by hamzafer, asks before git commit --amend or an unformatted push. subagent-fence-erikdarlingdata, by erikdarlingdata, refuses a force-push or a push to a protected branch. This one asks about every push, gh pr create and glab --push included, in Claude Code's own question dialog, and on a click it runs the command itself under bash -c in the session's folder and hands Claude the output. A cd from an earlier Bash call does not carry over. In the source, it runs git to read the branch, upstream, and commit count.

Demo

The top of the push-gate README: it asks before every git push the model runs, in Claude Code's own question dialog, with the command, repository, branch and upstream, commit count, and force or protected-branch warnings, its buttons in Russian; then version 0.2.0, where a confirmed command runs from the mod itself under bash -c.
Screenshot of the author's GitHub page.

What it hooks into

  • tool.callAround a tool call, where it can hold oneBash

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
IvanLutsenko
Category
Safety
Marketplace
awac-ai-agent-plugins
Repo
IvanLutsenko/awac-ai-agent-plugins
Folder
plugins/push-gate
Version
0.2.0
License
MIT
Repo stars
3
Last change
2026-10-23
Language
Python
Files
6

Same repo on other shelves

Marketplaces

  1. 1228IvanLutsenko/awac-claude-code-pluginsIvanLutsenko/awac-ai-agent-plugins6

Other mods in Safety

devtoolsNMenzelHolds a commandHolds a tool call at a breakpoint you set for Continue, Step, or Reject, with a dashboard pane of every call and Error Lens on why a call failed.agentic-flowruvnetHolds a commandRefuses an agentic_flow_agent call whose task matches a destructive or exfiltration pattern or passes an API key, and adds a status-line entry for the guard.agentdbruvnetHolds a commandRefuses a write to AgentDB memory that holds a key, token, password, or private key, and refuses its destructive admin tools unless you turn them on.cc-askpassGoneToneOpens a password pane when a command Claude runs asks for sudo, ssh, or git credentials, so the password goes to the program and never reaches the model.secret-envtoy-craneHolds a commandOpens a pane for typing an API key into a .env file, shows [hidden] wherever the value appears in tool results, and denies Write and Edit on that key's line.mod-blast-radiusv-amorimHolds a commandHolds a risky Bash command on a card until you choose Run or Cancel, shows what it would change first, and reads your own rules from a JSON file.mod-collision-guardv-amorimHolds a commandPauses a file edit when another open session just edited that file, and asks you to proceed, move to a worktree, cancel, or type an instruction for Claude.secret-guardvumichienHolds a commandHides secret values from your env files and secret-shaped text in tool results, tells Claude to use $NAME instead, and refuses commands that print them.blast-radiusAnthropicHolds a commandHolds a shell command such as rm -rf, a force push, a hard reset, or a migration, shows what it would touch, then asks you to proceed or cancel.merge-gatehamzaferHolds a commandHolds gh pr merge until CI is green and a Codex review has run once, and draws that pull request's status above the prompt.rulebook-guardhamzaferHolds a commandAsks before git commit --amend, an unformatted push, or personal details in notes and commits.bash-guardSingh-APHolds a commandHolds every Bash call, even in bypass mode. Blocks rm -rf on a home or system directory, and asks before a force-push, a hard reset, or a pipe into sh.
All 73 in Safety