---
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-8
last-updated: 2026-10-03
---

# 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-8
- Publisher: chock-core
- Repository: https://github.com/open-coder-ai/chock
- 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: 8
- Repository created: 2026-08-17
- Repository last pushed: 2026-10-03
- Publisher type: Organization
- Listing: https://agentpluginsdirectory.com/plugins/protect-main-branch--open-coder-ai-8
- Schema: https://agent-plugins.org/schemas/1.0.0/plugin.schema.json

## Skills

- 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.

Descriptions come from the frontmatter of each SKILL.md, punctuation lightly normalized.
