You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Shallow clone optimization**: Uses `filter=blob:none` — file content is never fetched, only commits and trees. This makes large repos fast to load.
79
79
-**SSL bypass**: When `GIT_SSL_NO_VERIFY=1` is set, a custom `urllib3.PoolManager` with `cert_reqs=ssl.CERT_NONE` is passed to Dulwich's `porcelain.clone()`.
80
80
-**Graph rendering**: Avoids custom graph.c port — delegates entirely to subprocess `git log --graph`. NUL-delimited markers extract structured fields without regex parsing.
81
+
82
+
## Safety Guardrails (ALWAYS follow — no exceptions without explicit user confirmation)
83
+
84
+
These rules replicate the protections of Claude Code's auto-mode classifier. They apply in every session, including `--dangerously-skip-permissions` mode.
- Pushing to a branch Claude created during the session
148
+
- Pushing to the current working branch (non-protected) when explicitly asked
149
+
- Creating pull requests
150
+
- Running linters, formatters, and tests
151
+
152
+
---
153
+
154
+
### Escalation Rule
155
+
156
+
A general instruction does **not** authorize specific high-risk sub-actions. Examples:
157
+
- "Clean up the repo" → does NOT authorize deleting files or branches
158
+
- "Deploy our changes" → does NOT authorize a production deploy
159
+
- "Update the config" → does NOT authorize changing CI/CD or secrets
160
+
161
+
If completing a task requires a blocked action, stop and ask the user before proceeding.
162
+
163
+
---
164
+
165
+
### On Ambiguity
166
+
167
+
If an action is ambiguous (unclear whether it's safe or matches the user's intent), default to asking rather than guessing. A short confirmation is cheaper than an unintended side effect.
0 commit comments