ReferenceCLI commands
BetaYou are reading docs for the beta channel (
2.4.1-beta.1) — updated automatically on every beta release.Switch to stable →CLI commands
ak activity stats
Summarize local skill usage by coding agent
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.
What changes on disk: Read-only. Reads ~/.agentkit/activity/events.ndjson and ~/.claude/projects/*.jsonl; AGENTKIT_HOME and AGENTKIT_CLAUDE_HOME override those roots.
Usage
ak activity stats [flags]Examples
ak activity stats --window 7d
ak activity stats --runtime codex --window 24h --json
ak activity stats --kit engineer --window 2wFlags
| Flag | Description |
|---|---|
-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 prompts |
Output modes
| Mode | Behavior |
|---|---|
pretty | default on TTY (colors, ASCII markers) |
plain | auto when stdout piped or --no-interactive |
json | --json (single-object envelope, NDJSON-safe) |
Exit codes
| Code | Meaning |
|---|---|
0 | success |
1 | runtime error |
2 | invalid flags |
3 | user-cancel (SIGINT, prompt-cancel) |
Related commands
ak activity— Inspect the local AgentKit activity feed