Skip to content
Development
Command

/llma-cc-status

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

From plugin
posthog
823 skills1 agent3 commands2 hooks
+1
Install
> /plugin marketplace add PostHog/ai-plugin
> /plugin install posthog@posthog

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/llma-cc-status

Context preview

What this command does when you run it.

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

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
Ships withposthog

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

Get the whole plugin

Other commands on posthog.