---
title: "protect-main-branch"
description: "Block direct commits and pushes to main or master. Enforced at commit time by reading the current branch, and at push time by parsing the refs the agent is pushing."
canonical: https://agentpluginsdirectory.com/plugins/protect-main-branch--open-coder-ai-org
last-updated: 2026-09-08
---

# protect-main-branch
Block direct commits and pushes to main or master. Enforced at commit time by reading the current branch, and at push time by parsing the refs the agent is pushing.
- Slug: protect-main-branch--open-coder-ai-org
- Publisher: chock-core
- Repository: https://github.com/open-coder-ai-org/chock-catalog
- Manifest: .agents/policies/protect-main-branch/plugin.json
- Version: 0.0.1
- License: Apache-2.0
- Category (editorial): other
- Skills: 1 (protect-main-branch)
- MCP servers: 0
- Stars: 1
- Listing: https://agentpluginsdirectory.com/plugins/protect-main-branch--open-coder-ai-org
- Schema: https://agent-plugins.org/schemas/1.0.0/plugin.schema.json
