---
title: "@posthog/ai 8.22.0: release notes, upgrades and advisories"
description: "@posthog/ai 8.22.0: release notes, breaking changes by major version and 1 known advisory with their fix."
url: https://inlinr.com/packages/@posthog/ai
lang: en
---

[Packages](https://inlinr.com/packages)

# @posthog/ai

8.22.0 · 20 Nov 2026 MIT 1.9M / week [Repository](https://github.com/PostHog/posthog-js) [Homepage](https://github.com/PostHog/posthog-js-lite#readme) [npm](https://www.npmjs.com/package/@posthog/ai) [Atom feed](https://inlinr.com/packages/feed/@posthog/ai)

Your version 

## Where each line stands

[Plan an upgrade](https://inlinr.com/packages/@posthog/ai/upgrade)

LineNewestSecurity

- 8.x 8.22.0 No known advisory Latest line
- 7.x 7.21.0 No known advisory [To 8.22.0](https://inlinr.com/packages/@posthog/ai/upgrade/7.21.0-8.22.0)
- 6.x 6.6.0 No known advisory [To 8.22.0](https://inlinr.com/packages/@posthog/ai/upgrade/6.6.0-8.22.0)
- 5.x 5.2.3 No known advisory [To 8.22.0](https://inlinr.com/packages/@posthog/ai/upgrade/5.2.3-8.22.0)
- 4.x 4.4.0 No known advisory [To 8.22.0](https://inlinr.com/packages/@posthog/ai/upgrade/4.4.0-8.22.0)
- 3.x 3.3.2 No known advisory [To 8.22.0](https://inlinr.com/packages/@posthog/ai/upgrade/3.3.2-8.22.0)

## Latest releases

[All 270 releases](https://inlinr.com/packages/@posthog/ai/releases)

1. ### [8.22.0](https://inlinr.com/packages/@posthog/ai/releases/8.22.0 "Open this release") [](https://github.com/PostHog/posthog-js/releases/tag/%40posthog/ai%408.22.0 "Read this release where it was published")  
20 Nov 2026

  - Read revisions, correct scores, and update or delete accepted offline evaluation items, results, and payloads.  
  (2026-11-20)
2. ### [8.21.1](https://inlinr.com/packages/@posthog/ai/releases/8.21.1 "Open this release") [](https://github.com/PostHog/posthog-js/releases/tag/%40posthog/ai%408.21.1 "Read this release where it was published")  
18 Nov 2026

  - **ai:** Stop logging a parse error for streamed Anthropic tool calls that take no arguments  
  (2026-11-18)
3. ### [8.21.0](https://inlinr.com/packages/@posthog/ai/releases/8.21.0 "Open this release") [](https://github.com/PostHog/posthog-js/releases/tag/%40posthog/ai%408.21.0 "Read this release where it was published")  
17 Nov 2026

  - With posthog-node 6.x.x, every AI event is sent through `captureAi` on the capture v1 AI lane, and `enableFullAiCapture` only controls truncation and media redaction. With posthog-node 5.x.x, nothing changes: AI events use `capture` unless `enableFullAiCapture` is set.  
  (2026-11-17)
  - Add per-event options for posthog-node: `posthogOptions` on wrapped provider calls and `withTracing()`, and `options` on the LangChain, OpenAI Agents, Claude Agent SDK, Google ADK and Genkit integrations. An event with no distinct id still has person processing turned off. On posthog-node 6.x.x, AI events carry person processing only as the `process_person_profile` option. On posthog-node 5.x.x, each option that version knows is sent in the form it reads, and other keys are dropped. OpenAI Agents `instrument()` now passes every processor option, including `options` and `onError`, to the processor it registers.  
  (2026-11-17)
  - Genkit spans and [@posthog/mcp](https://inlinr.com/packages/@posthog/mcp) events with no user distinct id set the `process_person_profile: false` event option on posthog-node 6.x.x, so a registered or context `process_person_profile: true` option no longer creates a person for each trace or session. Genkit also counts an empty or whitespace-only distinct id as missing.  
  (2026-11-17)

Dependency tracking

## Know when your own dependencies move

@posthog/ai shipped a new major in the last 12 months, among 207 releases. inlinr shows which of your projects are behind, and what the upgrade breaks.

- Advisories reach you  
An email when a critical or high advisory affects a project, before the next install.
- Upgrades checked first  
Peer ranges, Node, ESM-only and types changes read before you bump.
- Only what matters  
Majors and breaking notes stay; patches and sibling bumps fold into one line.

[How dependency tracking works](https://inlinr.com/dependencies)

## Security

[Details](https://inlinr.com/packages/@posthog/ai/security)

- [Malicious code in @posthog/ai (npm)](https://inlinr.com/advisories/MAL-2025-190644) Malicious · safe in 8.22.0

## Health

[Details](https://inlinr.com/packages/@posthog/ai/security#signals)

- **Provenance**:
- **Publisher**:
- **Maintainers**:
- **Scorecard**:
- **Size**:

## Weekly downloads

## Works with

- [posthog-node](https://inlinr.com/packages/posthog-node)
- [genkit optional](https://inlinr.com/packages/genkit)
- [openai optional](https://inlinr.com/packages/openai)
- [langchain optional](https://inlinr.com/packages/langchain)
- [@google/adk optional](https://inlinr.com/packages/@google/adk)
- [@google/genai optional](https://inlinr.com/packages/@google/genai)
- [@openai/agents optional](https://inlinr.com/packages/@openai/agents)
- [@langchain/core optional](https://inlinr.com/packages/@langchain/core)
- [@ai-sdk/provider optional](https://inlinr.com/packages/@ai-sdk/provider)
- [@anthropic-ai/sdk optional](https://inlinr.com/packages/@anthropic-ai/sdk)
- [@opentelemetry/api optional](https://inlinr.com/packages/@opentelemetry/api)
- [@anthropic-ai/claude-agent-sdk optional](https://inlinr.com/packages/@anthropic-ai/claude-agent-sdk)
- [@opentelemetry/exporter-trace-otlp-http optional](https://inlinr.com/packages/@opentelemetry/exporter-trace-otlp-http)

## Same family

- [@posthog/core 44.5M/wk](https://inlinr.com/packages/@posthog/core)
- [@posthog/types 38.9M/wk](https://inlinr.com/packages/@posthog/types)
- [posthog-js 28.2M/wk](https://inlinr.com/packages/posthog-js)
- [posthog-node 23.9M/wk](https://inlinr.com/packages/posthog-node)
- [@posthog/browser-common 18.2M/wk](https://inlinr.com/packages/@posthog/browser-common)
- [@posthog/react 2M/wk](https://inlinr.com/packages/@posthog/react)
- [@posthog/mcp 780.1k/wk](https://inlinr.com/packages/@posthog/mcp)
- [@posthog/react-native-plugin 745.4k/wk](https://inlinr.com/packages/@posthog/react-native-plugin)

Reading releases, release notes and advisories…

Registry facts last checked 21 Nov 2026\. Releases and advisories last read 21 Nov 2026.

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
