# Git Safety

Git Safety: what it does, its label on each agent, what it misses, and examples.

Catalog policy git-safety, version 0.0.6, labelled advisory on Claude Code.

> Ask the user before running any command on this page: each one changes how their agent or repository behaves.

## What it does

Trigger: force push, hard reset, destructive branch delete, hook bypass, direct main commits. avoid: rewriting remote history, discarding uncommitted work, skipping pre-commit checks. Enforced counterparts: block-destructive-commands (command guard plus pre-push hook), block-no-verify (command guard), protect-main-branch (commit and push gate), limit-diff-size (asks at commit). This rule is the advisory layer over them plus atomic-commit guidance no gate can decide.

## On each agent

| Agent | Label | What it does there |
| --- | --- | --- |
| Claude Code | Advisory | Advisory only. It is skill text, and nothing stops a violation |
| Cursor | Advisory | Advisory only. It is skill text, and nothing stops a violation |
| Codex | Advisory | Advisory only. It is skill text, and nothing stops a violation |
| GitHub Copilot | Advisory | Advisory only. It is skill text, and nothing stops a violation |
| Devin | Advisory | Advisory only. It is skill text, and nothing stops a violation |
| Grok | Not graded | Not graded yet for Grok |
| goose | Not graded | Not graded yet for goose |
| Antigravity | Not graded | Not graded yet for Antigravity |
| OpenHands | Not graded | Not graded yet for OpenHands |
| Kimi Code | Not graded | Not graded yet for Kimi Code |
| Factory Droid | Not graded | Not graded yet for Factory Droid |

## What it misses

This policy does not state what it misses.

## More

- [The policy on the catalog pages](https://chock.sh/coding/policies/git-safety/)
- [Source at the pinned catalog commit](https://github.com/open-coder-ai/chock-catalog/tree/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4/base/git-safety)


---

Built from engine [5088f2f17df0](https://github.com/open-coder-ai/chock/commit/5088f2f17df0c10b3269a68685a3500ffea6516a) and catalog [e3d71d03e4dd](https://github.com/open-coder-ai/chock-catalog/commit/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4).
