Observed since 21 Oct, 10:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Cross-tool usage analytics for Claude Code and Codex CLI
Cross-tool usage analytics for Claude Code and Codex CLI. Collects session data from both tools and generates rich HTML insight reports with narratives, trend charts, friction analysis, and actionable recommendations.
~/.claude/) and Codex CLI (~/.codex/)pip install ai-cli-insights
# Generate a cross-tool report for the last 30 days
ai-cli-insights generate --days 30 --tool all
# Force a specific LLM analyzer
ai-cli-insights generate --days 30 --tool all --llm-analyzer claude
# Claude-only report
ai-cli-insights generate --tool claude
# Codex-only report
ai-cli-insights generate --tool codex
# Short form (generate is the default command)
ai-cli-insights --days 7 --tool claude
The HTML report is saved to the output directory and can be opened in any browser.
By default, generate runs with --days 30 --tool all --llm-analyzer auto.
Deep LLM analysis order is codex -> claude -> gemini.
When LLM analysis succeeds, core narrative/recommendation sections are replaced by live model output.
# Create a config template
ai-cli-insights init
This writes a config.json to your config directory:
~/Library/Application Support/ai-cli-insights/config.json~/.config/ai-cli-insights/config.jsonEdit it to customize:
domain_patterns — keyword patterns to classify sessions into work domainsproject_patterns — patterns to identify which project a session belongs totemplate_modes — report titles and slugsWithout a config file, reports still work — domains and projects will just show raw paths.
# Install a Claude Code skill for easy /multi-insights access
ai-cli-insights install-skill
# Install a Codex CLI skill
ai-cli-insights install-codex-skill
This writes:
~/.claude/skills/multi-insights/SKILL.md~/.codex/skills/multi-insights/SKILL.mdai-cli-insights [command] [options]
Commands:
generate Generate an HTML insights report (default)
init Write a config template to the config directory
install-skill Install Claude Code skill file
install-codex-skill Install Codex CLI skill file
Generate options:
--days N Analyze the last N days (default: 30)
--tool MODE all | claude | codex (default: all)
--analyst WHO codex | claude — label the analyzing model (default: codex)
--output-dir Override the output directory
--llm-analyzer auto | codex | claude | gemini | none (default: auto)
--llm-model Optional model name passed to selected LLM CLI
--llm-timeout-sec Timeout per provider call (default: 120)
python -m ai_cli_insights also works.
| Tool | Source | What it provides |
|---|---|---|
| Claude Code | ~/.claude/usage-data/session-meta/*.json | Session metadata, tool counts, tokens |
| Claude Code | ~/.claude/usage-data/facets/*.json | Outcomes, friction, goals |
| Codex CLI | ~/.codex/state_5.sqlite | Thread metadata, tokens |
| Codex CLI | ~/.codex/sessions/*.jsonl | Event details, timestamps, tools |
| Codex CLI | ~/.codex/history.jsonl | User message counts |
MIT
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.9 | 5 Mar 2026 | 0 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 21 Oct, 10:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:121459c02478782886debea1843bf81ce3cc5719cd2bdb4cc8a479ae352b2066