: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(alerts): bump investigation agent to sonnet 4.6 (#57622)
Andrew Maguire4bbbb69f6806
diff --git a/posthog/temporal/ai/anomaly_investigation/runner.py b/posthog/temporal/ai/anomaly_investigation/runner.pyindex 954eec585f2e..76dd20a4cd26 100644--- a/posthog/temporal/ai/anomaly_investigation/runner.py+++ b/posthog/temporal/ai/anomaly_investigation/runner.py@@ -36,7 +36,7 @@ from posthog.temporal.ai.anomaly_investigation.tools import (logger = logging.getLogger(__name__)MAX_TOOL_CALLS = 10-AGENT_MODEL = "claude-sonnet-4-5"+AGENT_MODEL = "claude-sonnet-4-6"MAX_TOOL_RESULT_CHARS = 12_000 # ~3K tokens per call — keeps 10 calls well under the context limit.# Per-request cap. The surrounding Temporal activity has its own (longer) deadline;# this guards against a single stuck HTTP call hanging for the whole activity budget.