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 list
List recent local activity events
Returns a finite snapshot of the local activity log, newest first. The JSON shape mirrors the dashboard activity API event schema.
Who it's for: Reviewers, scripts, and AI agents that need activity evidence without opening the desktop app.
When to use it: Use before or after ak run to inspect recent run.started, run.completed, and run.failed events.
What changes on disk: Read-only. Reads ~/.agentkit/activity/events.ndjson; AGENTKIT_HOME overrides the base dir.
Usage
ak activity list [flags]Examples
ak activity list
ak activity list --json
ak activity list --limit 20 --since 00000000000000000000-000000 --jsonFlags
| Flag | Description |
|---|---|
-h, --help | help for list |
--json | Emit machine-readable JSON (implies --no-interactive) |
--limit int | Maximum events to return (default 100) |
--no-interactive | Disable interactive prompts (CI-safe) |
-q, --quiet | Suppress non-error output on stderr |
--since string | Return events with IDs greater than this cursor |
-V, --verbose | Extra diagnostic output on stderr (loses to --quiet) |
-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