Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

docs: Update sandboxed-agents.md to document git_signed_rewrite tool (#61797)

inkeep[bot]df557d6bad1b
diff --git a/docs/published/handbook/engineering/ai/sandboxed-agents.md b/docs/published/handbook/engineering/ai/sandboxed-agents.md
index ea64d136d1ea..4bf999c4211b 100644
--- a/docs/published/handbook/engineering/ai/sandboxed-agents.md
+++ b/docs/published/handbook/engineering/ai/sandboxed-agents.md
@@ -244,10 +244,11 @@ If an agent attempts to run `git commit` or `git push`, it will see:
```text
git commit is disabled in PostHog Code: commits must be signed.
-Stage changes with 'git add', then call the git_signed_commit tool.
+To commit: stage changes with 'git add', then call the git_signed_commit tool.
+To force-push after a rebase/conflict fix: call the git_signed_rewrite tool.
```
-Agents should stage changes with `git add`, then use the `git_signed_commit` tool to create signed commits.
+Agents should stage changes with `git add`, then use the `git_signed_commit` tool to create signed commits. For force-pushing after a rebase or conflict resolution, use the `git_signed_rewrite` tool instead.
**Debugging escape hatch**: Set `POSTHOG_ALLOW_UNSIGNED_GIT=1` in the sandbox environment to bypass this restriction. This is intended for debugging only and should not be used in production.