: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
// Tier 1 — the embeddable runner scene. `EmbeddedRunner` (`<EmbeddedRunner taskId? />`) is the lazy,
// code-split TaskTracker product (composer + agent-run detail) for hosts that want to render
// the `/tasks` workspace inline — e.g. the Max scene surfacing it behind the sandbox view toggle.
//
// LIGHT boundary: the heavy TaskTracker scene chunk is reached only through `EmbeddedRunner`'s dynamic
// `import()`, so importing this module never statically pulls the scene/run-surface into the host
// bundle. The host passes `taskId` for selection; creation stays under `/ai` when hosted there.
//
// Part of the `products/posthog_ai/frontend/api/<module>` public surface — import from here, not from
// deep `../scenes/*` paths. See ../README.md for the tier model and ../AGENTS.md for the coupling rule.
export { EmbeddedRunner, type TaskTrackerProps } from '../components/EmbeddedRunner'
// `SidePanelRunner` (`<SidePanelRunner panelId />`) is the lazy, code-split compact task-run surface
// (composer -> pending thread -> live run, no detail chrome) for narrow hosts that render a single
// in-place run rather than the whole `/tasks` workspace — e.g. Max's side panel behind the
// posthog_ai view toggle. Same LIGHT boundary as `EmbeddedRunner`: the heavy chunk is reached only through
// its dynamic `import()`. `panelId` keys an embedded `taskTrackerSceneLogic` instance independent of the
// `/tasks` scene's own singleton — submitting a task here never navigates the host.
export { SidePanelRunner, type SidePanelRunnerProps } from '../components/SidePanelRunner'
// `EmbeddedTaskComposer` (`<EmbeddedTaskComposer panelId />`) is the lazy, code-split new-task composer alone,
// for a host page that lists tasks itself. It has the same LIGHT boundary and `panelId` keying as
// `SidePanelRunner`. `channelId` files the created task in a tasks channel, `initialRepositoryConfig` sets the
// starting repo, and `onTaskCreated` gives the new task id back, so the host decides what to open.
export { EmbeddedTaskComposer, type EmbeddedTaskComposerProps } from '../components/EmbeddedTaskComposer'
export type { ComposerPrefillRequest } from '../scenes/TaskTracker/components/TaskComposer'