Skip to content
Development
Command

/llma-cc-status

Check if Claude Code sessions are being sent to PostHog LLM Analytics

From plugin
ai-plugin
953 skills1 agent3 commands3 hooks
+1
> /plugin marketplace add PostHog/ai-plugin

Command definition

llma-cc-status.md
name: posthog:llma-cc-status
description: Check if Claude Code sessions are being sent to PostHog LLM Analytics
allowed-tools: Bash(echo:*),Bash(cat:*),Bash(python3:*)

LLM Analytics — Claude Code Status

Check the status of the PostHog LLM Analytics integration for Claude Code.

Steps

1. Check if `POSTHOG_API_KEY` is set:

echo "POSTHOG_LLMA_CC_ENABLED=${POSTHOG_LLMA_CC_ENABLED:-(not set, defaults to false)}"
echo "POSTHOG_API_KEY=${POSTHOG_API_KEY:-(not set)}"
echo "POSTHOG_HOST=${POSTHOG_HOST:-(not set, defaults to US)}"
echo "POSTHOG_LLMA_PRIVACY_MODE=${POSTHOG_LLMA_PRIVACY_MODE:-(not set, defaults to false)}"
echo "POSTHOG_LLMA_CUSTOM_PROPERTIES=${POSTHOG_LLMA_CUSTOM_PROPERTIES:-(not set)}"

2. Check the last send status:

cat ~/.claude/posthog-llma-status.json 2>/dev/null || echo "No sessions sent yet"

3. Summarize the results for the user:

  • If API key is not set: explain they need to run `/posthog:llma-cc-setup`
  • If API key is set but no status file: explain that data will be sent after the next session ends
  • If status file exists: show when the last session was sent, how many events, and whether it succeeded
@posthog
Ships withai-plugin

Official PostHog plugin for AI clients. Access PostHog products directly from your AI coding tool.

95180 skills1 agent1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
95
Star history of PostHog/ai-plugin on GitHub, a chart by star-history.com

Other commands on ai-plugin.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command