---
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-11-13
---

# 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.
## Package we checked
The manifest we fetched is .agents/policies/protect-main-branch/plugin.json in open-coder-ai/chock. The plugin root is the directory that holds that file. Its $schema is https://agent-plugins.org/schemas/1.0.0/plugin.schema.json. The manifest lists 1 skill (protect-main-branch) and no MCP servers. Extension keys: io.github.open-coder-ai.
- 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: 10
- Repository created: 2026-08-17
- Repository last pushed: 2026-11-13
- 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.
