: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
// Dependency-free on purpose, like max-storage-keys.ts: call sites live in scene code
// (e.g. insight error states), where importing maxLogic itself would risk import cycles.
/**
* Build the options string for `openSidePanel(SidePanelTab.Max, ...)` that makes the panel
* auto-submit the prompt on open — the counterpart of the `!` prefix handled by
* `parseCommandString` in maxLogic.
*/
export function autoRunMaxPrompt(prompt: string): string {
return `!${prompt}`
}