Skip to content
Development
Command

/llma-cc-ingest

Manually send a Claude Code session log 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-ingest

Context preview

What this command does when you run it.

Manually send a Claude Code session log to PostHog LLM Analytics

Command definition

llma-cc-ingest.md
name: posthog:llma-cc-ingest
description: Manually send a Claude Code session log to PostHog LLM Analytics
argument-hint: [session-id or path]
allowed-tools: Bash(python3:*),Bash(ls:*),Bash(echo:*)

LLM Analytics — Ingest Session

Manually send a Claude Code session log to PostHog LLM Analytics.

Usage

The argument `$ARGUMENTS` can be:

  • A session ID (e.g. `14a1687c-1937-4719-921d-cb2400d7a114`)
  • A path to a JSONL file (e.g. `~/.claude/projects/-Users-me-myproject/14a1687c.jsonl`)
  • Empty — will use the most recent session log for the current project

Steps

1. Resolve the session log path from the argument 2. Run the ingest script 3. Report the results

python3 ${CLAUDE_PLUGIN_ROOT}/scripts/llma_cc_ingest.py $ARGUMENTS

If no argument is provided, list recent sessions and let the user choose:

python3 ${CLAUDE_PLUGIN_ROOT}/scripts/llma_cc_ingest.py --list
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.