Skip to content

mxr activity

Generated from mxr activity --help. Edit the clap definitions in crates/daemon/src/cli/ and re-run npm run build in site/ to regenerate.

Browse the local user-activity log (the git-reflog for your inbox). Strictly local: never transmitted off-device. See mxr activity --help

mxr activity <COMMAND>
Subcommand Purpose
list List recent activity in reverse chronological order
stats Group and count activity rows over a time window
top Most-frequent actions in a window. Convenience over stats --group-by action
export Export matching rows in CSV / JSON / NDJSON
prune Hard-delete rows older than --before. Destructive; confirms unless --yes
redact Tombstone rows by id or filter. Destructive; confirms unless --yes
clear Convenience tombstone over a recent time window. Browser-history style
pause Pause recording. With --for DURATION, auto-resumes after
resume Resume recording
status Show current recorder status (paused state, retention defaults)
saved Manage saved filter presets. Slug-keyed, like saved searches
tail Follow new activity. Press Ctrl-C to stop
recall Resolve a fuzzy time phrase (“yesterday afternoon”, “last hour”) and list activity from that window
replay Print a prose narrative of what you did in the window
help Print this message or the help of the given subcommand(s)
Flag Description
-h, --help Print help

Browse the local user-activity log — the git-reflog of your inbox. Strictly local; never transmitted off-device. See the Activity Log guide for the full design.

Terminal window
mxr activity list --since 24h
mxr activity stats --group-by action --since 7d --format json
mxr activity export --format ndjson --out my-week.ndjson
mxr activity clear --last 1h --yes # tombstone the last hour

Convenience tombstone over a recent time window. Browser-history style

mxr activity clear [OPTIONS] --last <WINDOW>
Flag Description
--last <WINDOW> [possible values: 1h, 1d, 7d, 30d, all]
--include-important Also tombstone important-tier rows (sends, redactions, etc.)
--dry-run
--yes
-h, --help Print help

Export matching rows in CSV / JSON / NDJSON

mxr activity export [OPTIONS] --format <FORMAT>
Flag Description
--since <SINCE> Relative duration (e.g. 1h, 3d, 2w) or ISO date inclusive lower bound
--until <UNTIL> Relative duration or ISO date exclusive upper bound. Defaults to now
--source <SOURCE> Originating client. Repeatable [possible values: human, tui, cli, script, web, daemon, agent, mcp]
--action <ACTION> Exact action token (e.g. mail.archive). Repeatable
--prefix <PREFIX> Match all actions starting with this prefix (e.g. mail.)
--target-kind <TARGET_KIND> Filter by target kind (thread, message, draft, search, …)
--target-id <TARGET_ID> Filter by exact target id
--tier <TIER> Retention tier. Repeatable [possible values: ephemeral, standard, important]
--account <ACCOUNT> Filter by account id
--query <QUERY> FTS5 expression against context_json
--include-redacted Include tombstoned rows in the result
--format <FORMAT> [possible values: csv, json, ndjson]
--out <OUT> Write to this path instead of stdout
-h, --help Print help

List recent activity in reverse chronological order

mxr activity list [OPTIONS]
Flag Description
--since <SINCE> Relative duration (e.g. 1h, 3d, 2w) or ISO date inclusive lower bound
--until <UNTIL> Relative duration or ISO date exclusive upper bound. Defaults to now
--source <SOURCE> Originating client. Repeatable [possible values: human, tui, cli, script, web, daemon, agent, mcp]
--action <ACTION> Exact action token (e.g. mail.archive). Repeatable
--prefix <PREFIX> Match all actions starting with this prefix (e.g. mail.)
--target-kind <TARGET_KIND> Filter by target kind (thread, message, draft, search, …)
--target-id <TARGET_ID> Filter by exact target id
--tier <TIER> Retention tier. Repeatable [possible values: ephemeral, standard, important]
--account <ACCOUNT> Filter by account id
--query <QUERY> FTS5 expression against context_json
--include-redacted Include tombstoned rows in the result
--limit <LIMIT> Page size. Capped server-side to 500 [default: 50]
--cursor <CURSOR> Resume from a previous cursor: --cursor TS,ID
--format <FORMAT> [possible values: table, json, jsonl, csv, ids]
-h, --help Print help

Pause recording. With --for DURATION, auto-resumes after

mxr activity pause [OPTIONS]
Flag Description
--for <FOR>
--quiet
-h, --help Print help

Hard-delete rows older than --before. Destructive; confirms unless --yes

mxr activity prune [OPTIONS] --before <BEFORE>
Flag Description
--before <BEFORE> Relative duration (e.g. 90d) or ISO date. Required
--tier <TIER> [possible values: ephemeral, standard, important]
--dry-run
--yes
-h, --help Print help

Resolve a fuzzy time phrase (“yesterday afternoon”, “last hour”) and list activity from that window

mxr activity recall [OPTIONS] <PHRASE>
Flag Description
<PHRASE> Time phrase to resolve
Flag Description
--limit <LIMIT> [default: 50]
--format <FORMAT> [possible values: table, json, jsonl, csv, ids]
-h, --help Print help

Tombstone rows by id or filter. Destructive; confirms unless --yes

mxr activity redact [OPTIONS]
Flag Description
--ids <IDS> … Comma-separated row ids
--since <SINCE> Relative duration (e.g. 1h, 3d, 2w) or ISO date inclusive lower bound
--until <UNTIL> Relative duration or ISO date exclusive upper bound. Defaults to now
--source <SOURCE> Originating client. Repeatable [possible values: human, tui, cli, script, web, daemon, agent, mcp]
--action <ACTION> Exact action token (e.g. mail.archive). Repeatable
--prefix <PREFIX> Match all actions starting with this prefix (e.g. mail.)
--target-kind <TARGET_KIND> Filter by target kind (thread, message, draft, search, …)
--target-id <TARGET_ID> Filter by exact target id
--tier <TIER> Retention tier. Repeatable [possible values: ephemeral, standard, important]
--account <ACCOUNT> Filter by account id
--query <QUERY> FTS5 expression against context_json
--include-redacted Include tombstoned rows in the result
--dry-run
--yes
-h, --help Print help

Print a prose narrative of what you did in the window

mxr activity replay [OPTIONS]
Flag Description
--since <SINCE> [default: 1h]
--limit <LIMIT> [default: 200]
--format <FORMAT> [possible values: table, json, jsonl, csv, ids]
-h, --help Print help

Resume recording

mxr activity resume
Flag Description
-h, --help Print help

Manage saved filter presets. Slug-keyed, like saved searches

mxr activity saved <COMMAND>
Subcommand Purpose
list List all saved filter presets
save Save the current filter under a slug
delete Delete a preset by slug
open Apply a preset and list the matching rows
help Print this message or the help of the given subcommand(s)
Flag Description
-h, --help Print help

Group and count activity rows over a time window

mxr activity stats [OPTIONS]
Flag Description
--since <SINCE> Relative duration (e.g. 1h, 3d, 2w) or ISO date inclusive lower bound
--until <UNTIL> Relative duration or ISO date exclusive upper bound. Defaults to now
--source <SOURCE> Originating client. Repeatable [possible values: human, tui, cli, script, web, daemon, agent, mcp]
--action <ACTION> Exact action token (e.g. mail.archive). Repeatable
--prefix <PREFIX> Match all actions starting with this prefix (e.g. mail.)
--target-kind <TARGET_KIND> Filter by target kind (thread, message, draft, search, …)
--target-id <TARGET_ID> Filter by exact target id
--tier <TIER> Retention tier. Repeatable [possible values: ephemeral, standard, important]
--account <ACCOUNT> Filter by account id
--query <QUERY> FTS5 expression against context_json
--include-redacted Include tombstoned rows in the result
--group-by <GROUP_BY> [default: action] [possible values: action, day, source, target-kind, hour]
--format <FORMAT> [possible values: table, json, jsonl, csv, ids]
-h, --help Print help

Follow new activity. Press Ctrl-C to stop

mxr activity tail [OPTIONS]
Flag Description
--since <SINCE> Relative duration (e.g. 1h, 3d, 2w) or ISO date inclusive lower bound
--until <UNTIL> Relative duration or ISO date exclusive upper bound. Defaults to now
--source <SOURCE> Originating client. Repeatable [possible values: human, tui, cli, script, web, daemon, agent, mcp]
--action <ACTION> Exact action token (e.g. mail.archive). Repeatable
--prefix <PREFIX> Match all actions starting with this prefix (e.g. mail.)
--target-kind <TARGET_KIND> Filter by target kind (thread, message, draft, search, …)
--target-id <TARGET_ID> Filter by exact target id
--tier <TIER> Retention tier. Repeatable [possible values: ephemeral, standard, important]
--account <ACCOUNT> Filter by account id
--query <QUERY> FTS5 expression against context_json
--include-redacted Include tombstoned rows in the result
-n, --lines <LINES> Initial backfill — show this many recent rows before tailing [default: 20]
--interval <INTERVAL> Poll interval in seconds [default: 2]
--format <FORMAT> [possible values: table, json, jsonl, csv, ids]
-h, --help Print help