CLI commands
ak activity stats
Summarize local skill usage by coding agent
ak activity stats
Summarize local skill usage by coding agent
Synopsis
What it does: Aggregates privacy-bounded local skill usage rows by skill, kit, coding-agent runtime, source, date, status, and duration bucket. It reads local activity events and Claude Code session Skill tool calls at query time.
Who it's for: Maintainers, reviewers, and local agents that need usage evidence without remote telemetry.
When to use it: Use to inspect recent local skill adoption or compare coding-agent coverage across a window.
Examples: ak activity stats --window 7d ak activity stats --runtime codex --window 24h --json ak activity stats --kit engineer --window 2w
What changes on disk: Read-only. Reads ~/.agentkit/activity/events.ndjson and ~/.claude/projects/*.jsonl; AGENTKIT_HOME and AGENTKIT_CLAUDE_HOME override those roots.
Output modes: pretty default on TTY (colors, ASCII markers) plain auto when stdout piped or --no-interactive json --json (single-object envelope, NDJSON-safe)
Exit codes: 0 success 1 runtime error 2 invalid flags 3 user-cancel (SIGINT, prompt-cancel)
ak activity stats [flags]Options
-h, --help help for stats
--json Emit machine-readable JSON (implies --no-interactive)
--kit string Filter by kit ID
--no-interactive Disable interactive prompts (CI-safe)
-q, --quiet Suppress non-error output on stderr
--runtime string Filter by coding-agent runtime (for example codex, claude-code, opencode)
-V, --verbose Extra diagnostic output on stderr (loses to --quiet)
--window string Lookback window (for example 24h, 7d, 2w) (default "7d")
-y, --yes Assume yes for all promptsSEE ALSO
- ak activity - Inspect the local AgentKit activity feed