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

Inspect the local AgentKit activity feed

Reads the same local activity event log used by the dashboard and desktop app. Use list for a finite snapshot, tail for a live stream, and stats for local skill usage aggregates.

Who it's for: Power devs, AI agents, CI jobs, and reviewers who need the desktop activity feed from the CLI.

When to use it: Use when debugging recent ak run activity or when a headless workflow needs activity evidence.

What changes on disk: Read-only. Reads ~/.agentkit/activity/events.ndjson; AGENTKIT_HOME overrides the base dir.

Examples

ak activity list --json
ak activity list --limit 20 --since 00000000000000000000-000000
ak activity stats --window 7d --json
ak activity tail --json

Flags

FlagDescription
-h, --helphelp for activity
--jsonEmit machine-readable JSON (implies --no-interactive)
--no-interactiveDisable interactive prompts (CI-safe)
-q, --quietSuppress non-error output on stderr
-V, --verboseExtra diagnostic output on stderr (loses to --quiet)
-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)

On this page