AgentKit
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 2w

Flags

FlagDescription
-h, --helphelp for stats
--jsonEmit machine-readable JSON (implies --no-interactive)
--kit stringFilter by kit ID
--no-interactiveDisable interactive prompts (CI-safe)
-q, --quietSuppress non-error output on stderr
--runtime stringFilter by coding-agent runtime (for example codex, claude-code, opencode)
-V, --verboseExtra diagnostic output on stderr (loses to --quiet)
--window stringLookback window (for example 24h, 7d, 2w) (default "7d")
-y, --yesAssume yes for all prompts

Output modes

ModeBehavior
prettydefault on TTY (colors, ASCII markers)
plainauto when stdout piped or --no-interactive
json--json (single-object envelope, NDJSON-safe)

Exit codes

CodeMeaning
0success
1runtime error
2invalid flags
3user-cancel (SIGINT, prompt-cancel)
  • ak activity — Inspect the local AgentKit activity feed

On this page