@posthog/ai breaking changes
@posthog/ai 8.22.1 (November 25, 2026) is its newest release with breaking changes. The first: Streamed OpenAI n>1 chat choices are reported separately in output choices in @posthog/ai 8.22.1. Every breaking API change we have recorded in @posthog/ai on npm: 7 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 8.24.1, released December 4, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
@posthog/ai 8.22.1 breaking changes
- Behavior changed
Streamed OpenAI chat completions with n > 1 now report each choice as its own message in $ai_output_choices, and $ai_stop_reason comes from the first choice. github.com
@posthog/ai 8.21.0 breaking changes
- Behavior changed
An empty or whitespace-only distinct id now counts as missing in every integration. The event then uses the trace or run id and stays personless. github.com - Behavior changed
With posthog-node 6.x.x every AI event goes through captureAi on the capture v1 AI lane, so enableFullAiCapture no longer decides whether AI events are sent. With posthog-node 5.x.x, AI events still use capture unless enableFullAiCapture... github.com - Behavior changed
An empty or whitespace-only distinct id now counts as missing, so those AI events use the trace or run id and stay personless. Code that relied on the empty id being used as-is should check its events. github.com - Behavior changed
On posthog-node 6.x.x, AI events carry person processing only through the process_person_profile option. Code that relied on other person-processing settings for AI events should set that option. github.com
@posthog/ai 8.20.0 breaking changes
- Signature changed
evaluations:CreateScorerOptions
Was type CreateScorerOptions = {[K in ScorerKind]: {name: string; kind: K; config: ScorerConfigs[K]; description?: string | null; tags?: readonly string[];};}[ScorerKind]; now type CreateScorerOptions = {[K in ScorerKind]: {name: string... npmjs.com - Signature changed
evaluations:Scorers.createVersion
Was createVersion(scorerId: string, options: {config: ScorerConfig; baseVersion?: number; name?: string; description?: string | null;}, request?: RequestOptions): Promise<Scorer>; now createVersion(scorerId: string, options: {config... npmjs.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.