: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
export * from "@posthog/agent-contracts";
export * from "./ai-gateway-blocked";
export * from "./analytics-events";
export type { ArchivedTask } from "./archive-domain";
export { withTimeout } from "./async";
export {
closeTab,
closeTabs,
DEFAULT_TAB_HREF,
decideTabNavigation,
ensureWindowHasTab,
openTab,
primaryWindow,
resetTabs,
setTabOrder,
setTabTarget,
setWindowActiveTab,
type TabIdentity,
type TabLocation,
type TabTarget,
} from "./browser-tabs";
export {
type BrowserTab,
type BrowserWindow,
type RailVisit,
type TabsSnapshot,
type TabViewState,
tabsSnapshotSchema,
tabViewStateSchema,
} from "./browser-tabs-schemas";
export * from "./canvas-contracts";
export * from "./canvas-platform";
export type { CloudRunSource, PrAuthorshipMode } from "./cloud";
export {
buildLoopDeeplink,
buildScoutDeeplink,
decodePlanBase64,
getDeeplinkProtocol,
isPostHogCodeDeeplink,
type NewTaskLinkPayload,
type NewTaskSharedParams,
parseGitHubIssueUrl,
} from "./deep-links";
export * from "./flags";
export * from "./git-domain";
export * from "./git-naming";
export {
buildDiscussReportPrompt,
buildLocalCodeSnapshotPrompt,
CODE_CONTEXT_DISCLOSURE,
NO_CHECKOUT_DISCLOSURE,
} from "./inbox-prompts";
export { EXTERNAL_LINKS } from "./links";
export {
formatMention,
splitMentionSegments,
} from "./mentions";
export {
CLIPBOARD_ATTACHMENT_DIR_NAME,
CLIPBOARD_ATTACHMENT_PREFIX,
compactHomePath,
expandTildePath,
getFileExtension,
getFileName,
isAbsolutePath,
isClipboardAttachmentPath,
pathToFileUri,
toRelativePath,
} from "./path";
export type { PiMessagingMode, PiRuntimeHealth } from "./pi-session";
export { REFUND_REASON_OPTIONS } from "./refund-reasons";
export { normalizeRepoKey } from "./repo";
export { getTaskRepository, parseRepository } from "./repository";
export { rewriteSavedLocation } from "./route-migrations";
export {
type AgentSession,
cycleModeOption,
flattenSelectOptions,
getConfigOptionByCategory,
getCurrentModeFromConfigOptions,
isPersistedOptionSupported,
isSelectGroup,
mergeConfigOptions,
type OptimisticItem,
type PermissionRequest,
type QueuedMessage,
resolveBypassRevertMode,
type SessionStatus,
sendableQueuePrefixLength,
sessionSupportsNativeSteer,
sessionSupportsSideQuestion,
TRANSCRIPT_TAIL_WINDOW,
} from "./sessions";
export type {
TaskCreationInput,
TaskCreationOutput,
} from "./task-creation-domain";
export {
formatAbsoluteDateTime,
formatClockTime,
formatRelativeAge,
formatRelativeTimeLong,
formatRelativeTimeShort,
formatShortDayLabel,
getLocalDayDiff,
getLocalDayKey,
getRelativeDateGroup,
} from "./time";
export { singleLineTitle } from "./title-text";
export { TypedEventEmitter } from "./typed-event-emitter";
export {
isSafeExternalUrl,
isSafeGitHubPullRequestUrl,
isSafePostHogUrl,
} from "./url";
export {
buildVideoDataUrl,
getVideoMimeType,
isAllowedVideoMimeType,
isPlayableVideoFile,
MAX_VIDEO_BASE64_LENGTH,
} from "./video";
export type { WorkspaceMode } from "./workspace";
export * from "./workspace-domain";
export { escapeXmlAttr, unescapeXmlAttr } from "./xml";