Policies
Git Safety
Git Safety: what it does, its label on each agent, what it misses, and examples.
Catalog policy git-safety, version 0.0.5, labelled advisory on Claude Code.
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
Built from engine 5a4b6287a46e and catalog 1e60d211c1bb.