# MAX messenger CLI commands for a personal account (/en/docs/max/commands-personal)

This reference covers personal-account commands. Use it to find the exact command, arguments and options for chats, messages, contacts, search, files and sending.

Chats, messages, contacts, search, files, sending and auto-replies in your own account.

## Global options [#global-options]

Apply to every command.

| Option | Purpose |
|---|---|
| `-V, --version` | output the version number. |
| `-v, --verbose` | more detail in what is shown: -v ids, -vv everything we know. Default: `0`. |
| `--json` | machine-readable output: one JSON value on stdout; --json=id,text keeps only those fields. |
| `--jsonl` | machine-readable output: one JSON object per line, for streaming and jq. |
| `--quiet` | diagnostics off. |
| `--trace` | one line per request on stderr: ids and timings, never message content. |
| `--debug` | on a failure, its whole record — cause and stack — in place of the short line. |
| `--timeout <duration>` | give up on the whole command after this — 30s, 2m, 500ms. |
| `--offline` | answer from what was recorded and never connect; fails if nothing was. |
| `--no-input` | never prompt or open interactive login; piped input remains available. |
| `--max-input-bytes <bytes>` | maximum buffered input bytes (default: 16777216). |
| `--max-output-bytes <bytes>` | maximum machine output bytes (default: 4194304; 0 disables). |
| `--brief` | found messages as reference, title, time, sender and excerpt only. |
| `--full` | found messages with their whole text and every provider field. |
| `--compact` | one line per item for an agent: reference first, text last, paging and next steps as # lines. |
| `--dry-run` | preview parsed arguments and permissions before running the action. |
| `--yes` | go ahead without the question an ask level puts before a write. |
| `--record` | keep this run under `max runs`, with the command as typed and secrets hidden; record_input false leaves the typed words out. |
| `--no-record` | do not keep this run, even if it fails. |
| `--serve` | start `max serve` in the background if it is not running (the default). |
| `--no-serve` | do not start it; log in on this command's own connection unless one is running. |

## Commands [#commands]

## `max calls` [#max-calls]

the account's calls

### `max calls list` [#max-calls-list]

calls made and received, newest first; reading changes nothing

```sh
max calls list [query] [options]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | field:value terms; this list filters by none yet. |

| Option | Purpose |
|---|---|
| `--limit <n>` | how many to show. |

**Returns:** call record — id, chat_id, caller_id, direction, outcome, kind, at, duration_seconds; every field: max commands info calls list

**Example:** `max personal calls list`

## `max stickers` [#max-stickers]

the stickers the account has added

### `max stickers list` [#max-stickers-list]

sticker sets, or with --set the stickers in one; reading changes nothing

```sh
max stickers list [query] [options]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | field:value terms; this list filters by none yet. |

| Option | Purpose |
|---|---|
| `--set <id>` | the stickers in this set. |

**Returns:** sticker inventory — id, title, count, link, set_id, emoji, url; every field: max commands info stickers list

**Example:** `max personal stickers list`

## `max chats` [#max-chats]

the chats this account is in

### `max chats list` [#max-chats-list]

chats, newest first, archived ones included; the query is answered from the local store, so online, where the messenger filters nothing, it needs --offline

```sh
max chats list [query] [options]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | Purpose |
|---|---|
| `--limit <n>` | how many to show. |
| `--page <n>` | which page, starting at 1. |
| `--all` | every row, no paging. |

**Returns:** chat — ref, id, title, kind, unread_count, last_message_at, participants_count, provider, and 14 more; every field: max commands info chats list

**Next usually:** `max chats show <chat>`, `max chats events <chat> [query]`, `max chats media <chat>`

**Example:** `max personal chats list --limit 10`

### `max chats show` [#max-chats-show]

one chat: its kind, unread count, last message time and who is in it

```sh
max chats show <chat>
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |

**Returns:** chat — ref, id, title, kind, unread_count, last_message_at, participants_count, provider, and 14 more; every field: max commands info chats show

**Next usually:** `max chats events <chat> [query]`, `max chats media <chat>`, `max chats documents list <chat> [query]`

**Example:** `max personal chats show "Book club"`

### `max chats documents` [#max-chats-documents]

the Google Docs and Drive documents linked in a chat's stored messages

#### `max chats documents list` [#max-chats-documents-list]

every document link in the chat, newest first, and whether the store has it

```sh
max chats documents list <chat> [query] [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | Purpose |
|---|---|
| `--limit <n>` | how many to show. |
| `--page <n>` | which page, starting at 1. |

**Returns:** document link — ref, url, document_id, title, in_store, sent_at, sender; every field: max commands info chats documents list

**Example:** `max personal chats documents list CHAT_ID --limit 20`

### `max chats events` [#max-chats-events]

who joined, left, was added or removed, and by whom — from the chat's service messages; the last 7 days unless the query names time

```sh
max chats events <chat> [query]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |
| `query` | optional | field:value terms that narrow the list — the fields are below. |

**Returns:** chat event — chat_id, time, type, people, message_id, by, title, before; every field: max commands info chats events

**Example:** `max personal chats events "Book club"`

### `max chats inspect` [#max-chats-inspect]

what an invite or public link leads to, without joining it

```sh
max chats inspect <link>
```

| Argument | | Meaning |
|---|---|---|
| `link` | required | an invite link or a public one. |

**Returns:** chat inspection — kind, title, id, username, participants_count, description, member, approval_needed; every field: max commands info chats inspect

**Example:** `max personal chats inspect https://example.com/invite/book-club`

### `max chats join` [#max-chats-join]

join a group or channel by its link; the others in it see that you joined

**Changes something outside this computer: in MAX or in an external service.**

```sh
max chats join <link>
```

| Argument | | Meaning |
|---|---|---|
| `link` | required | an invite link, or a public one. |

**Returns:** chat group change — operation_id, chat, requested; every field: max commands info chats join

**Example:** `max personal chats join https://example.com/invite/book-club`

### `max chats mark-read` [#max-chats-mark-read]

mark a chat read; the other side sees that you read it

**Changes something outside this computer: in MAX or in an external service.**

```sh
max chats mark-read <chat> [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |

| Option | Purpose |
|---|---|
| `--until-id <id>` | only up to this message id; the newest by default. |

**Returns:** chat read — operation_id, chat_id, until, thread_id; every field: max commands info chats mark-read

**Example:** `max personal chats mark-read Team`

### `max chats leave` [#max-chats-leave]

leave a group or channel; the others in it see that you left

**Changes something outside this computer: in MAX or in an external service.**

```sh
max chats leave <chat>
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |

**Returns:** chat removal — operation_id, chat_id; every field: max commands info chats leave

**Example:** `max personal chats leave "Book club"`

### `max chats tracking` [#max-chats-tracking]

the chats whose member lists serve fetches daily into the local store — chats members fetch --track adds one

#### `max chats tracking list` [#max-chats-tracking-list]

every tracked chat: since when, and its last member count

```sh
max chats tracking list [query]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | field:value terms that narrow the list — the fields are below. |

**Returns:** tracked chat — chat_id, title, tracked_at, last_count; every field: max commands info chats tracking list

**Example:** `max personal chats tracking list`

#### `max chats tracking show` [#max-chats-tracking-show]

one chat: whether it is tracked, and its member count per day for the last 30 days

```sh
max chats tracking show <chat>
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |

**Returns:** tracked chat history — chat_id, tracked_at, counts; every field: max commands info chats tracking show

**Example:** `max personal chats tracking show "Book club"`

#### `max chats tracking add` [#max-chats-tracking-add]

fetch this chat's member list daily while serve runs, from its next run

**Changes something only on this computer.**

```sh
max chats tracking add <chat>
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |

**Returns:** chat tracking — chat_id, tracked; every field: max commands info chats tracking add

**Example:** `max personal chats tracking add "Book club"`

#### `max chats tracking remove` [#max-chats-tracking-remove]

stop fetching it daily; the history already kept stays

**Changes something only on this computer.**

```sh
max chats tracking remove <chat>
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |

**Returns:** chat tracking — chat_id, tracked; every field: max commands info chats tracking remove

**Example:** `max personal chats tracking remove "Book club"`

### `max chats folders` [#max-chats-folders]

your chat folders

#### `max chats folders list` [#max-chats-folders-list]

your chat folders, in the order the app shows them

```sh
max chats folders list [query]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | field:value terms; this list filters by none yet. |

**Returns:** folder — id, title, chat_ids, emoji, include, skip, excluded_chat_ids, pinned_chat_ids, and 3 more; every field: max commands info chats folders list

**Next usually:** `max chats folders show <folder>`, `max chats folders update <folder>`, `max chats folders delete <folder>`

**Example:** `max personal chats folders list`

#### `max chats folders show` [#max-chats-folders-show]

one chat folder, with the names of the chats in it

```sh
max chats folders show <folder>
```

| Argument | | Meaning |
|---|---|---|
| `folder` | required | the folder's id, or its title exactly. |

**Returns:** folder — id, title, chat_ids, emoji, include, skip, excluded_chat_ids, pinned_chat_ids, and 3 more; every field: max commands info chats folders show

**Next usually:** `max chats folders update <folder>`, `max chats folders delete <folder>`, `max chats folders order <folders>`

**Example:** `max personal chats folders show "Reading"`

#### `max chats folders create` [#max-chats-folders-create]

create a chat folder

**Changes something outside this computer: in MAX or in an external service.**

```sh
max chats folders create <title> [options]
```

| Argument | | Meaning |
|---|---|---|
| `title` | required | the folder's name; the app may refuse a long one. |

| Option | Purpose |
|---|---|
| `--chat <chat>` | a chat to put in it, by id or name; repeat it for more. |

**Returns:** chat folder change — operation_id, folder; every field: max commands info chats folders create

**Example:** `max personal chats folders create "Reading" --chat "Book club"`

#### `max chats folders update` [#max-chats-folders-update]

rename a folder, or change which chats are in it

**Changes something outside this computer: in MAX or in an external service.**

```sh
max chats folders update <folder> [options]
```

| Argument | | Meaning |
|---|---|---|
| `folder` | required | folder id, or its title exactly. |

| Option | Purpose |
|---|---|
| `--title <title>` | a new name. |
| `--add <chat>` | put a chat in it; repeat it for more. |
| `--remove <chat>` | take a chat out of it, and off its excluded and pinned lists; repeat it for more. |

**Returns:** chat folder change — operation_id, folder; every field: max commands info chats folders update

**Example:** `max personal chats folders update "Reading" --title "Books"`

#### `max chats folders delete` [#max-chats-folders-delete]

delete a folder; the chats in it stay

**Changes something outside this computer: in MAX or in an external service.**

```sh
max chats folders delete <folder>
```

| Argument | | Meaning |
|---|---|---|
| `folder` | required | folder id, or its title exactly. |

**Returns:** chat folder removal — operation_id, folder_id; every field: max commands info chats folders delete

**Example:** `max personal chats folders delete "Reading"`

#### `max chats folders order` [#max-chats-folders-order]

put folders in this order; the ones not named keep theirs after them

**Changes something outside this computer: in MAX or in an external service.**

```sh
max chats folders order <folders>
```

| Argument | | Meaning |
|---|---|---|
| `folders` | required | folder ids, or titles exactly, first one first. |

**Returns:** chat folder order — operation_id, folders; every field: max commands info chats folders order

**Example:** `max personal chats folders order "Reading" "Work"`

### `max chats rules` [#max-chats-rules]

what `chats moderate` judges a group by, kept in a file of this profile

#### `max chats rules show` [#max-chats-rules-show]

the group's rules; the defaults, marked not saved, if it has none yet

```sh
max chats rules show <chat>
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |

**Returns:** chat rules — chat_id, title, file, saved, rules; every field: max commands info chats rules show

**Example:** `max personal chats rules show "Book club"`

#### `max chats rules set` [#max-chats-rules-set]

change one rule; the group's first change writes every rule with its default

**Changes something only on this computer.**

```sh
max chats rules set <chat> <key> <value>
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |
| `key` | required | one of: trusted, blocked, blockedNames, links, invites, forwards, blockedPeople, flood.messages, flood.minutes, flood.action, newAccount.days, newAccount.action, consent.delete, consent.remove. |
| `value` | required | the new value; a list is comma-separated. |

**Returns:** chat rules — chat_id, title, file, saved, rules; every field: max commands info chats rules set

**Example:** `max personal chats rules set "Book club" links report`

#### `max chats rules unset` [#max-chats-rules-unset]

put one rule back to its default

**Changes something only on this computer.**

```sh
max chats rules unset <chat> <key>
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |
| `key` | required | one of: trusted, blocked, blockedNames, links, invites, forwards, blockedPeople, flood.messages, flood.minutes, flood.action, newAccount.days, newAccount.action, consent.delete, consent.remove. |

**Returns:** chat rules — chat_id, title, file, saved, rules; every field: max commands info chats rules unset

**Example:** `max personal chats rules unset "Book club" links`

### `max chats media` [#max-chats-media]

a chat's photos, videos, files, audio and links, from the messenger's server; reading marks nothing

```sh
max chats media <chat> [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |

| Option | Purpose |
|---|---|
| `--type <type>` | only these kinds, comma-separated: photo, video, file, audio, link. |
| `--limit <n>` | how many to show. |
| `--cursor <cursor>` | go on from where page.next says the last page stopped. |

**Returns:** a chat's photos, videos, files, audio and links, from the messenger's…

**Example:** `max personal chats media Team`

### `max chats mute` [#max-chats-mute]

stop notifications from a chat, for good or until a time; nobody in it is told

**Changes something outside this computer: in MAX or in an external service.**

```sh
max chats mute <chat> [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |

| Option | Purpose |
|---|---|
| `--until <time>` | only until then: 2026-09-25T09:00 (local time), or 30m, 2h, 7d from now. |

**Returns:** chat muting — operation_id, chat_id, muted_until; every field: max commands info chats mute

**Example:** `max personal chats mute "Book club"`, `max personal chats mute "Book club" --until 2h`

### `max chats unmute` [#max-chats-unmute]

hear a muted chat again

**Changes something outside this computer: in MAX or in an external service.**

```sh
max chats unmute <chat>
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |

**Returns:** chat muting — operation_id, chat_id, muted_until; every field: max commands info chats unmute

**Example:** `max personal chats unmute "Book club"`

### `max chats clear` [#max-chats-clear]

delete every message in a chat for this account; the others in it keep theirs

**Changes something outside this computer: in MAX or in an external service.**

```sh
max chats clear <chat> [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |

| Option | Purpose |
|---|---|
| `--allow-dangerous` | go ahead without the question an ask level puts before a deletion. |

**Returns:** chat removal — operation_id, chat_id; every field: max commands info chats clear

**Example:** `max personal chats clear "Book club"`

### `max chats start` [#max-chats-start]

start a bot, as its Start button does; the bot sees that you started it

**Changes something outside this computer: in MAX or in an external service.**

```sh
max chats start <bot> [options]
```

| Argument | | Meaning |
|---|---|---|
| `bot` | required | the chat with the bot — its id or its name — or the bot's link, even one never opened. |

| Option | Purpose |
|---|---|
| `--start <param>` | the start parameter the bot reads; a link's own ?start= when not given. |

**Returns:** start a bot, as its Start button does; the bot sees that you started it

**Example:** `max personal chats start "Example Bot"`

### `max chats app` [#max-chats-app]

the address that opens a bot's mini app, signed in as you — keep it to yourself

**Changes something outside this computer: in MAX or in an external service.**

```sh
max chats app <bot> [options]
```

| Argument | | Meaning |
|---|---|---|
| `bot` | required | the chat with the bot: its id or its name. |

| Option | Purpose |
|---|---|
| `--start <param>` | the start parameter the app reads. |

**Returns:** the address that opens a bot's mini app, signed in as you — keep it to yourself

**Example:** `max personal chats app "Example Bot"`

## `max contacts` [#max-contacts]

people you have a one-to-one chat with

### `max contacts list` [#max-contacts-list]

people you have a one-to-one chat with; name: matches the name, your local alias or the @username, notes: your private notes about them

```sh
max contacts list [query] [options]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | Purpose |
|---|---|
| `--limit <n>` | how many to show. |
| `--page <n>` | which page, starting at 1. |
| `--all` | every row, no paging. |
| `--order <recent\|name>` | newest conversation first, or alphabetical. Default: `recent`. |

**Returns:** contact — ref, id, name, username, description, last_messaged_at, alias, display_name, and 15 more; every field: max commands info contacts list

**Next usually:** `max contacts show <person>`, `max contacts context <person>`, `max contacts prepare <person>`

**Example:** `max personal contacts list --limit 10`

### `max contacts show` [#max-contacts-show]

one person: what the messenger says about them — handles, flags, last seen, phone, when they registered — your alias, the chats you share, how many of their messages the store holds in each, and the earlier names and usernames the store saw them with; --offline answers from the store alone

```sh
max contacts show <person> [options]
```

| Argument | | Meaning |
|---|---|---|
| `person` | required | their id, @username, or part of their name. |

| Option | Purpose |
|---|---|
| `--with-notes` | include your private notes, subject to contacts.notes.list permission. |
| `--hide-phone` | leave the phone number out. |

**Returns:** contact — ref, id, name, username, description, last_messaged_at, alias, display_name, and 15 more; every field: max commands info contacts show

**Next usually:** `max contacts context <person>`, `max contacts prepare <person>`, `max contacts events <person> [query]`

**Example:** `max personal contacts show "Alex Example"`

### `max contacts aliases` [#max-contacts-aliases]

a private local display name in the selected account

#### `max contacts aliases set` [#max-contacts-aliases-set]

your own name for a person in this account; kept on this machine, never sent

**Changes something only on this computer.**

```sh
max contacts aliases set <person> <alias>
```

| Argument | | Meaning |
|---|---|---|
| `person` | required | the person's id, reference or known name. |
| `alias` | required | the private name to use for this person. |

**Returns:** contact alias — person_id, alias; every field: max commands info contacts aliases set

**Example:** `max personal contacts aliases set "Alex Example" "Reading partner"`

#### `max contacts aliases remove` [#max-contacts-aliases-remove]

drop your local name for a person; their own name shows again

**Changes something only on this computer.**

```sh
max contacts aliases remove <person>
```

| Argument | | Meaning |
|---|---|---|
| `person` | required | the person's id, reference or known name. |

**Returns:** contact alias — person_id, alias; every field: max commands info contacts aliases remove

**Example:** `max personal contacts aliases remove "Alex Example"`

### `max contacts notes` [#max-contacts-notes]

your private notes on a stored contact, the same in every account that sees them

#### `max contacts notes list` [#max-contacts-notes-list]

every private note you keep on a person, oldest first

```sh
max contacts notes list <person> [query]
```

| Argument | | Meaning |
|---|---|---|
| `person` | required | the person's id, reference or known name. |
| `query` | optional | field:value terms; this list filters by none yet. |

**Returns:** contact note — id, contact, text, revision, created_at, updated_at; every field: max commands info contacts notes list

**Example:** `max personal contacts notes list "Alex Example"`

#### `max contacts notes show` [#max-contacts-notes-show]

one private note on a person, with its revision for edit

```sh
max contacts notes show <person> <id>
```

| Argument | | Meaning |
|---|---|---|
| `person` | required | the person's id, reference or known name. |
| `id` | required | the note id from contacts notes list. |

**Returns:** contact note — id, contact, text, revision, created_at, updated_at; every field: max commands info contacts notes show

**Example:** `max personal contacts notes show "Alex Example" 1`

#### `max contacts notes add` [#max-contacts-notes-add]

add a private note on a person from stdin or --text-file; never sent

**Changes something only on this computer.**

```sh
max contacts notes add <person> [options]
```

| Argument | | Meaning |
|---|---|---|
| `person` | required | the person's id, reference or known name. |

| Option | Purpose |
|---|---|
| `--text-file <path>` | read note text from a file; omitted or - reads stdin. |

**Returns:** contact note — id, contact, text, revision, created_at, updated_at; every field: max commands info contacts notes add

**Example:** `max personal contacts notes add "Alex Example" --text-file ./note.txt`

#### `max contacts notes edit` [#max-contacts-notes-edit]

replace a note's text; --revision must match the one you read

**Changes something only on this computer.**

```sh
max contacts notes edit <person> <id> [options]
```

| Argument | | Meaning |
|---|---|---|
| `person` | required | the person's id, reference or known name. |
| `id` | required | the note id from contacts notes list. |

| Option | Purpose |
|---|---|
| `--text-file <path>` | read note text from a file; omitted or - reads stdin. |
| `--revision <n>` | the revision you read before editing. |

**Returns:** contact note — id, contact, text, revision, created_at, updated_at; every field: max commands info contacts notes edit

**Example:** `max personal contacts notes edit "Alex Example" 1 --revision 1 --text-file ./note.txt`

#### `max contacts notes remove` [#max-contacts-notes-remove]

delete one private note on a person

**Changes something only on this computer.**

```sh
max contacts notes remove <person> <id>
```

| Argument | | Meaning |
|---|---|---|
| `person` | required | the person's id, reference or known name. |
| `id` | required | the note id from contacts notes list. |

**Returns:** contact note removal — id, person_id, removed; every field: max commands info contacts notes remove

**Example:** `max personal contacts notes remove "Alex Example" 1`

### `max contacts sync` [#max-contacts-sync]

forget where the last sync left off and take the whole list again

**Changes something only on this computer.**

```sh
max contacts sync
```

**Returns:** contact sync — added, changed, known; every field: max commands info contacts sync

**Example:** `max personal contacts sync`

### `max contacts lookup` [#max-contacts-lookup]

who MAX has under a phone number — asks for it, or reads it from stdin

```sh
max contacts lookup [phone]
```

| Argument | | Meaning |
|---|---|---|
| `phone` | optional | refused: the number is asked for, never typed here. |

**Returns:** contact lookup — id, name, username; every field: max commands info contacts lookup

**Example:** `max personal contacts lookup`

### `max contacts add` [#max-contacts-add]

add a person to your contacts — `contacts list` still shows only people you have a dialog with

**Changes something outside this computer: in MAX or in an external service.**

```sh
max contacts add <person>
```

| Argument | | Meaning |
|---|---|---|
| `person` | required | person id — `contacts lookup` finds one — or part of a known name. |

**Returns:** contact update — operation_id, person; every field: max commands info contacts add

**Example:** `max personal contacts add "Alex Example"`

### `max contacts remove` [#max-contacts-remove]

remove a person from your contacts; the chat stays, a name you gave them may not

**Changes something outside this computer: in MAX or in an external service.**

```sh
max contacts remove <person>
```

| Argument | | Meaning |
|---|---|---|
| `person` | required | person id — `contacts lookup` finds one — or part of a known name. |

**Returns:** contact state change — operation_id, person_id; every field: max commands info contacts remove

**Example:** `max personal contacts remove "Alex Example"`

### `max contacts block` [#max-contacts-block]

stop a person from writing to you — they need not be a contact

**Changes something outside this computer: in MAX or in an external service.**

```sh
max contacts block <person>
```

| Argument | | Meaning |
|---|---|---|
| `person` | required | person id — `contacts lookup` finds one — or part of a known name. |

**Returns:** contact state change — operation_id, person_id; every field: max commands info contacts block

**Example:** `max personal contacts block "Alex Example"`

### `max contacts unblock` [#max-contacts-unblock]

let a blocked person write to you again

**Changes something outside this computer: in MAX or in an external service.**

```sh
max contacts unblock <person>
```

| Argument | | Meaning |
|---|---|---|
| `person` | required | person id — `contacts lookup` finds one — or part of a known name. |

**Returns:** contact state change — operation_id, person_id; every field: max commands info contacts unblock

**Example:** `max personal contacts unblock "Alex Example"`

### `max contacts rename` [#max-contacts-rename]

rename the contact in the messenger address book; use contacts alias for a private local name

**Changes something outside this computer: in MAX or in an external service.**

```sh
max contacts rename <person> <first-name> [last-name]
```

| Argument | | Meaning |
|---|---|---|
| `person` | required | person id — `contacts lookup` finds one — or part of a known name. |
| `first-name` | required | the name you want to see for them. |
| `last-name` | optional | the last name you want to see for them. |

**Returns:** contact update — operation_id, person; every field: max commands info contacts rename

**Example:** `max personal contacts rename "Alex Example" Alex Example`

### `max contacts import` [#max-contacts-import]

upload phone numbers and add the people the messenger has under them

**Changes something outside this computer: in MAX or in an external service.**

```sh
max contacts import <file>
```

| Argument | | Meaning |
|---|---|---|
| `file` | required | one person per line: number, then a comma, a tab or a semicolon, then the name. |

**Returns:** contact import — operation_id, sent, recognised; every field: max commands info contacts import

**Example:** `max personal contacts import ./contacts.csv`

### `max contacts context` [#max-contacts-context]

what the store holds about one person, in every messenger linked to them, read only in accounts of this account's scope (personal or work): shared chats, the last messages each way, their recent messages, where others mentioned them — never connects

```sh
max contacts context <person> [options]
```

| Argument | | Meaning |
|---|---|---|
| `person` | required | their id, @username, or part of their name. |

| Option | Purpose |
|---|---|
| `--limit <n>` | at most this many messages in each list; 10 if not given. |
| `--since-time <time>` | nothing older than this ISO 8601 time, or 2h / 1d ago. |
| `--chat <chat>` | a chat, by id or name; repeat it for more — then their newest messages in each, 20 unless --limit, short unless -v. |
| `--sync-first` | with --chat, read their newest messages in each from the messenger first. |

**Returns:** contact context — person, accounts, shared, last, recent, mentions, limits, complete, and 3 more; every field: max commands info contacts context

**Example:** `max personal contacts context "Alex Example" --limit 10`

### `max contacts prepare` [#max-contacts-prepare]

before you talk to someone: what contacts context gives, plus the one-to-one chats where they wrote last, open tasks, accepted facts, your notes and their recent meetings, each with its reference; never connects

```sh
max contacts prepare <person> [options]
```

| Argument | | Meaning |
|---|---|---|
| `person` | required | their id, @username, or part of their name. |

| Option | Purpose |
|---|---|
| `--limit <n>` | at most this many messages, and items in each section; 10 if not given. |
| `--since-time <time>` | no message or meeting older than this ISO 8601 time, or 2h / 1d ago. |

**Returns:** contact preparation — person, accounts, shared, last, recent, mentions, limits, complete, and 3 more; every field: max commands info contacts prepare

**Example:** `max personal contacts prepare Ana`

### `max contacts events` [#max-contacts-events]

everything one person took part in, in every messenger linked to them — messages they wrote or were mentioned in, chats, mail, meetings, tasks — newest first, from the store; only in this account's scope, personal or work, and scope: of the other one is refused; never connects

```sh
max contacts events <person> [query] [options]
```

| Argument | | Meaning |
|---|---|---|
| `person` | required | their id, @username, or part of their name. |
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | Purpose |
|---|---|
| `--limit <n>` | at most this many; 50 if not given. |
| `--cursor <cursor>` | go on from where the last page stopped; page.next gives it, with the same filters. |

**Returns:** contact activity — at, subject, subject_id, role, scope, provider, account, chat_id, and 2 more; every field: max commands info contacts events

**Example:** `max personal contacts events "Alex Example" --limit 10`

### `max contacts check` [#max-contacts-check]

whether one person looks like a bot, a fake or a spammer: their profile and what they wrote in the store — a hint, never a verdict; the public ban lists cover Telegram only, so nothing is sent

```sh
max contacts check <person> [options]
```

| Argument | | Meaning |
|---|---|---|
| `person` | required | their id, @username, or part of their name. |

| Option | Purpose |
|---|---|
| `--no-registries` | do not ask the public ban lists; nothing about them leaves this machine. |

**Returns:** contact check — person, score, reasons, registries, unknown, checked_at; every field: max commands info contacts check

**Example:** `max personal contacts check "Alex Example"`

### `max contacts link` [#max-contacts-link]

record that two people in the store are one person — the same name is never enough

**Changes something only on this computer.**

```sh
max contacts link <person> <other> [options]
```

| Argument | | Meaning |
|---|---|---|
| `person` | required | their id, @username, or part of their name. |
| `other` | required | the same in another messenger of the store, as <messenger>:<person> — max:Ana; me: it is you, as zoom:<id> me. |

| Option | Purpose |
|---|---|
| `--reason <text>` | why they are one person; an agent's link is a proposal and needs it. |

**Returns:** linked person — uid, name, identities, display_name, proposal; every field: max commands info contacts link

**Example:** `max personal contacts link "Alex Example" zoom:101`

### `max contacts unlink` [#max-contacts-unlink]

undo contacts link for one identity: it is a person of its own again

**Changes something only on this computer.**

```sh
max contacts unlink <person> [options]
```

| Argument | | Meaning |
|---|---|---|
| `person` | required | their id, @username, or part of their name; <messenger>:<person> for another messenger. |

| Option | Purpose |
|---|---|
| `--from <person>` | the person it leaves, person:<uid> or person:me; refused when it sits on another. |

**Returns:** linked person — uid, name, identities, display_name, proposal; every field: max commands info contacts unlink

**Example:** `max personal contacts unlink "Alex Example" --from person:me`

## `max messages` [#max-messages]

read and send messages in a chat

### `max messages list` [#max-messages-list]

a chat's messages, oldest to newest

```sh
max messages list <chat> [query] [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |
| `query` | optional | where to start or which window: id<42, date>=2026-10-01 date<2026-10-20. |

| Option | Purpose |
|---|---|
| `--limit <n>` | how many. |
| `--cursor <cursor>` | go on from where the last page stopped; page.next gives it. |
| `--transcribe` | turn voice messages not heard yet into text — by the messenger where it can, else by a model on this machine; can take minutes. |
| `--model <model>` | which downloaded speech model hears them, with --transcribe; `models list` shows them. |

**Returns:** message — ref, id, chat_id, sender_id, sender_name, sender_is_me, timestamp, edited_at, and 31 more; every field: max commands info messages list

**Next usually:** `max messages links <chat> <message>`, `max messages transcribe <chat> <message>`, `max stats messages evidence <message>`

**Example:** `max personal messages list "Book club" --limit 20`

### `max messages show` [#max-messages-show]

one message, by its chat and id or by its msg: locator

```sh
max messages show <chat> [message]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title; or a msg: locator, with no message id after it. |
| `message` | optional | the message id. |

**Returns:** message — ref, id, chat_id, sender_id, sender_name, sender_is_me, timestamp, edited_at, and 31 more; every field: max commands info messages show

**Next usually:** `max messages links <chat> <message>`, `max messages transcribe <chat> <message>`, `max stats messages evidence <message>`

**Example:** `max personal messages show "Book club" 101`

### `max messages context` [#max-messages-context]

a message and what came either side of it, oldest first

```sh
max messages context <chat> [message] [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title; or a msg: locator, with no message id after it. |
| `message` | optional | the message id. |

| Option | Purpose |
|---|---|
| `--thread` | the stored reply chain and replies instead of time neighbours; falls back when no graph exists. |
| `--thread-hops <n>` | at most this many links from the hit (default: 8). |
| `--thread-messages <n>` | at most this many messages in each thread context (default: 50). |
| `--thread-bytes <n>` | at most this many bytes of whole messages and links in each context (default: 65536). |
| `--thread-within <duration>` | messages within this long either side of the hit (default: 1d). |
| `--before-n <n>` | how many before it. Default: `5`. |
| `--after-n <n>` | how many after it. Default: `5`. |

**Returns:** message context — ref, id, chat_id, sender_id, sender_name, sender_is_me, timestamp, edited_at, and 42 more; every field: max commands info messages context

**Example:** `max personal messages context "Book club" 101 --before-n 3 --after-n 3`

### `max messages links` [#max-messages-links]

why a message is in its conversation: each link it has, and the chain of answers back to the start

```sh
max messages links <chat> <message>
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |
| `message` | required | the message id. |

**Returns:** message links — chat, message, links, chain; every field: max commands info messages links

**Example:** `max personal messages links "Book club" 101`

### `max messages link` [#max-messages-link]

a message permalink when supported, and its account-scoped locator

```sh
max messages link <chat> [message]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title; or a msg: locator, with no message id after it. |
| `message` | optional | the message id. |

**Returns:** message link — ref, url, access, reason, files; every field: max commands info messages link

**Next usually:** `max messages links <chat> <message>`, `max messages transcribe <chat> <message>`, `max stats messages evidence <message>`

**Example:** `max personal messages link "Book club" 101`

### `max messages download` [#max-messages-download]

save a message's photos, files, videos and voice notes to a folder — or a whole chat's with --all; with --offline, copy the ones this computer already holds, one by --attachment

**Changes something only on this computer.**

```sh
max messages download <chat> [message] [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title; or a msg: locator, with no message id after it. |
| `message` | optional | the message id; left out with --all or a locator. |

| Option | Purpose |
|---|---|
| `--output-dir <dir>` | where to save them; created if missing. Default: `.`. |
| `--attachment <n>` | which file of the message, from 1; needed when it has more than one. |
| `--all` | every file of the chat, newest first; run it again to continue where it stopped. |
| `--pause <duration>` | with --all, a pause between pages, to stay under the provider's limits. Default: `5s`. |
| `--extract` | read text layers from the files this download maps into the local content index. |

**Returns:** message download — files, extraction, complete, batch, chat, saved, existing, stopped; every field: max commands info messages download

**Example:** `max personal messages download "Book club" 101 --output-dir ./downloads`, `max personal messages download msg:max/me/500/101 --attachment 1 --offline`

### `max messages evidence` [#max-messages-evidence]

general chat context, newest first, with references, coverage and fingerprints for verification

```sh
max messages evidence <chat> [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |

| Option | Purpose |
|---|---|
| `--limit <n>` | how many, 1–100. |
| `--cursor <cursor>` | go on from where page.next says the last packet stopped. |

**Returns:** evidence packet — schema_version, id, kind, source, fingerprint, limits, content_bytes, coverage, and 1 more; every field: max commands info messages evidence

**Example:** `max personal messages evidence "Book club" --limit 10`

### `max messages sync` [#max-messages-sync]

bring a chat's history in the local store up to date, newest first; run it again to continue; --all syncs every chat; with --json, stderr carries progress lines: {"event":"progress","step":"sync","chats","chats_done","fetched"}, counts only

**Changes something only on this computer.**

```sh
max messages sync [chat] [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | optional | a chat: its id, or part of its title. |

| Option | Purpose |
|---|---|
| `--all` | every chat, most recently active first — what search needs; the last 90d unless --since-time or --last; muted chats only with --with-muted or history_muted true. |
| `--limit <n>` | at most this many messages in this run, per chat with --all; 1200 if not given. |
| `--page-size <n>` | how many messages one request asks for; 30 if not given. |
| `--pause <duration>` | the least pause between pages, to stay under the provider's limits; each is up to twice that. Default: `5s`. |
| `--since-time <time>` | stop once it reaches messages older than this: ISO 8601, or 2h / 1d ago. |
| `--last <n>` | stop once the newest n messages are held. |
| `--catch-up` | prepare local search after this run; overrides search_catch_up. |
| `--no-catch-up` | skip local preparation after this run. |
| `--catch-up-chunks <n>` | at most this many local vector chunks. |
| `--catch-up-messages <n>` | skip a graph rebuild larger than this many messages. |
| `--catch-up-time <duration>` | local preparation time budget, 30s by default. |
| `--full-history` | read and keep this chat's history in full from now on, past the history limits (history_* settings). |
| `--with-muted` | with --all: also read the chats the owner muted, as history_muted true does. |
| `--background` | run as a job that outlives this command; `store jobs show` follows it. |
| `--dry-run` | only estimate how many messages, requests and minutes a full fetch would still take — from the store, no request. |

**Returns:** message sync — chat, held, ranges, missing, requests, runs, seconds, fetched, and 17 more; every field: max commands info messages sync

**Example:** `max personal messages sync "Book club" --last 100`

### `max messages transcribe` [#max-messages-transcribe]

turn a voice message into text, on this machine — the recording goes nowhere

```sh
max messages transcribe <chat> <message> [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | chat id, or part of a chat name. |
| `message` | required | id of a voice message. |

| Option | Purpose |
|---|---|
| `--model <model>` | which downloaded speech model to use; `max models list kind:audio` shows them. |

**Returns:** message transcript — message_id, text, pending, via, model; every field: max commands info messages transcribe

**Example:** `max personal messages transcribe Team 1234`

### `max messages send` [#max-messages-send]

send a text message; without [text], the text is read from stdin

**Changes something outside this computer: in MAX or in an external service.**

```sh
max messages send <chat> [text] [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |
| `text` | optional | the message. |

| Option | Purpose |
|---|---|
| `--reply-to <message>` | answer this message, by its id in the same chat. |
| `--send-as <id>` | post as one of the identities `chats send-as` lists; required where the chat posts as someone else by default. |
| `--operation-id <id>` | repeat a send whose outcome was unknown, without risking a second copy. |
| `--silent` | deliver without a notification. |
| `--no-preview` | no preview card for a link in the text. |
| `--md` | read this messenger's Markdown; see its formatting guide for supported syntax. |
| `--file <file>` | attach a file; the text becomes its caption; repeat it for an album. No files by default. |
| `--photo <file>` | attach a .jpg, .png or .webp as a photo; the text becomes its caption; repeat it for an album. No files by default. |
| `--as-file` | send each --file as a file to download, a video included. |
| `--voice <file>` | send an Ogg Opus file as a voice message, alone, with no text. |
| `--allow-any-file` | send a file even from credential folders or this CLI's own folders. |
| `--at-time <time>` | let the messenger send it later, even with this machine off: 2026-09-25T09:00 (local time), or 30m, 2h, 1d from now. |
| `--sticker <id>` | send this sticker, alone; `stickers list` finds its id. |

**Returns:** message write — operation_id, message, messages, scheduled_for; every field: max commands info messages send

**Example:** `max personal messages send "Book club" "The meeting starts at 10."`

### `max messages scheduled` [#max-messages-scheduled]

messages waiting to be sent later in a chat, soonest first; cancel one in the app

```sh
max messages scheduled <chat>
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |

**Returns:** message — ref, id, chat_id, sender_id, sender_name, sender_is_me, timestamp, edited_at, and 31 more; every field: max commands info messages scheduled

**Next usually:** `max messages links <chat> <message>`, `max messages transcribe <chat> <message>`, `max stats messages evidence <message>`

**Example:** `max personal messages scheduled "Book club"`

### `max messages edit` [#max-messages-edit]

change the text of your own message; the other side may have read it already

**Changes something outside this computer: in MAX or in an external service.**

```sh
max messages edit <chat> <message> [text] [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |
| `message` | required | the id of your own message. |
| `text` | optional | the new text; without it, read from stdin. |

| Option | Purpose |
|---|---|
| `--md` | read this messenger's Markdown; see its formatting guide for supported syntax. |

**Returns:** message write — operation_id, message, messages, scheduled_for; every field: max commands info messages edit

**Example:** `max personal messages edit "Book club" 101 "The meeting starts at 11."`

### `max messages delete` [#max-messages-delete]

delete messages for you only; with --for-everyone, for everyone in the chat

**Changes something outside this computer: in MAX or in an external service.**

```sh
max messages delete <chat> <message> [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |
| `message` | required | the message ids, by spaces or commas, at most 10. |

| Option | Purpose |
|---|---|
| `--for-everyone` | delete for everyone in the chat, not only for you — they cannot get it back. |
| `--allow-dangerous` | go ahead without the question an ask level puts before a deletion. |

**Returns:** message deletion — operation_id, chat_id, deleted, for_everyone; every field: max commands info messages delete

**Example:** `max personal messages delete "Book club" 101`

### `max messages forward` [#max-messages-forward]

forward one message to another chat

**Changes something outside this computer: in MAX or in an external service.**

```sh
max messages forward <chat> <message> [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | the chat the message is in: a chat: its id, or part of its title. |
| `message` | required | the message id. |

| Option | Purpose |
|---|---|
| `--to <chat>` | where it goes: a chat: its id, or part of its title. |
| `--silent` | deliver it without a notification. |
| `--send-as <id>` | post as one of the identities `chats send-as` lists for the --to chat; required where the chat posts as someone else by default. |
| `--operation-id <id>` | repeat a forward whose outcome was unknown, without risking a second copy. |

**Returns:** message write — operation_id, message, messages, scheduled_for; every field: max commands info messages forward

**Example:** `max personal messages forward "Book club" 101 --to "Project room"`

### `max messages pin` [#max-messages-pin]

pin a message in a chat, quietly unless --notify

**Changes something outside this computer: in MAX or in an external service.**

```sh
max messages pin <chat> <message> [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |
| `message` | required | the message id. |

| Option | Purpose |
|---|---|
| `--notify` | tell the chat's members about the pin. |

**Returns:** message pin — operation_id, chat_id, message_id, pinned; every field: max commands info messages pin

**Example:** `max personal messages pin <chat> <message>`, `max personal messages pin <chat> <message> --notify`

### `max messages unpin` [#max-messages-unpin]

unpin a message in a chat

**Changes something outside this computer: in MAX or in an external service.**

```sh
max messages unpin <chat> <message>
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |
| `message` | required | the message id. |

**Returns:** message pin — operation_id, chat_id, message_id, pinned; every field: max commands info messages unpin

**Example:** `max personal messages unpin <chat> <message>`

### `max messages press` [#max-messages-press]

press a bot's button under a message; the bot sees that you pressed it

**Changes something outside this computer: in MAX or in an external service.**

```sh
max messages press <chat> <message> <button>
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |
| `message` | required | the id of the message with the buttons. |
| `button` | required | its number as `messages show` prints it, or its exact text. |

**Returns:** press a bot's button under a message; the bot sees that you pressed it

**Example:** `max personal messages press "Example Bot" 101 1`

## `max tasks` [#max-tasks]

what waits on you — unanswered questions, mentions, requests, promises — kept in the local store; review, inbox and messages sync add them, serve only the requests of auto-reply rules

### `max tasks list` [#max-tasks-list]

tasks, oldest first, with their message or note source

```sh
max tasks list [query] [options]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | Purpose |
|---|---|
| `--limit <n>` | how many. |

**Returns:** task — ref, id, title, kind, state, created_at, key, description, and 26 more; every field: max commands info tasks list

**Next usually:** `max tasks show <task>`, `max tasks related <task>`, `max tasks update <task>`

**Example:** `max personal tasks list --limit 10`

### `max tasks add` [#max-tasks-add]

add a task for a stored message or note — a promise, a request

**Changes something only on this computer.**

```sh
max tasks add <message> [options]
```

| Argument | | Meaning |
|---|---|---|
| `message` | required | a message locator, msg:<provider>/<account>/<chat>/<message>, or note:<id>. |

| Option | Purpose |
|---|---|
| `--type <type>` | the task's type: question, request, mention or promise. |
| `--category <name>` | what it is about, from the list tasks categories prints: money, documents, meeting, …. |
| `--into <id>` | when tasks add listed tasks that may be the same job: link the message to this one instead of opening a task. |
| `--new` | when tasks add listed tasks that may be the same job: open the task anyway. |
| `--open-new` | open a task from a message the chat's task point already passed (a read again with tasks review --since-time); without it such a read only updates and closes tasks. |
| `--title <title>` | one line: the action and its object — send Alex the API token. |
| `--description <text>` | the detail, in Markdown: who owes whom, done when, next step, keywords. |
| `--due <time>` | when it must be done: an ISO 8601 time or 2h, 3d from now; none clears it. |
| `--remind-time <time>` | when to look at it again: an ISO 8601 time or 2h, 3d from now; none clears it. |
| `--assignee <person...>` | who does it: sender (whoever sent the task's message) or person:<id>; none clears it. Leave it out when unsure: a task with no assignee is better than none. |

**Returns:** task created — id, source, source_kind, account, group, kind, state, origin, and 16 more; every field: max commands info tasks add

**Example:** `max personal tasks add note:101 --type promise --category documents --title "Review draft"`

### `max tasks update` [#max-tasks-update]

update a task's text, schedule, category, assignees, priority or parent; nothing reaches the messenger

**Changes something only on this computer.**

```sh
max tasks update <task> [options]
```

| Argument | | Meaning |
|---|---|---|
| `task` | required | the task's id or key, as tasks list shows it. |

| Option | Purpose |
|---|---|
| `--category <name>` | what it is about, from the list tasks categories prints: money, documents, meeting, …; a change is kept in the task's history. |
| `--priority <n>` | low, medium, high, critical or none; 0 (urgent) … 4 (low) still read as before. |
| `--parent <id>` | parent task in the same project; none clears it. |
| `--title <title>` | one line: the action and its object — send Alex the API token. |
| `--description <text>` | the detail, in Markdown: who owes whom, done when, next step, keywords. |
| `--due <time>` | when it must be done: an ISO 8601 time or 2h, 3d from now; none clears it. |
| `--remind-time <time>` | when to look at it again: an ISO 8601 time or 2h, 3d from now; none clears it. |
| `--assignee <person...>` | who does it: sender (whoever sent the task's message) or person:<id>; none clears it. Leave it out when unsure: a task with no assignee is better than none. |

**Returns:** task card — id, ref, key, project, project_key, project_name, created_by, title, and 26 more; every field: max commands info tasks update

**Example:** `max personal tasks update DOC-12 --title "Review draft"`

### `max tasks link` [#max-tasks-link]

link a task to messages, chats, people or URLs — or to another task: task:<id>

**Changes something only on this computer.**

```sh
max tasks link <task> [targets] [options]
```

| Argument | | Meaning |
|---|---|---|
| `task` | required | the task's id or key, as tasks list shows it. |
| `targets` | optional | msg: locators, person:<id>, document:<id>, note:<id>, a URL; or task:<id>, which links two project tasks. |

| Option | Purpose |
|---|---|
| `--chat <chat>` | a chat it concerns, repeatable; a chat: its id, or part of its title. |
| `--kind <kind>` | related-to (default), evidence — it shows the task is real — or created-from; for task:<id>, related-to, blocked-by, follow-up-of, duplicate-of or discovered-from. |

**Returns:** task links — id, ref, key, project, project_key, project_name, created_by, title, and 28 more; every field: max commands info tasks link

**Example:** `max personal tasks link DOC-12 https://example.com/draft`

### `max tasks show` [#max-tasks-show]

one task: its plan and everything linked to it

```sh
max tasks show <task>
```

| Argument | | Meaning |
|---|---|---|
| `task` | required | the task's id or key, as tasks list shows it. |

**Returns:** task card — id, ref, key, project, project_key, project_name, created_by, title, and 26 more; every field: max commands info tasks show

**Example:** `max personal tasks show DOC-12`

### `max tasks related` [#max-tasks-related]

tasks that may be the same job as this one, best first, each with a band — likely, maybe, different — and the reasons; merges nothing

```sh
max tasks related <task> [options]
```

| Argument | | Meaning |
|---|---|---|
| `task` | required | the task's id or key, as tasks list shows it. |

| Option | Purpose |
|---|---|
| `--limit <n>` | how many, at most 40 (default 10). |

**Returns:** task similar — ref, key, title, status, created_at, found_by, score, band, and 3 more; every field: max commands info tasks related

**Example:** `max personal tasks related PR-12`

### `max tasks duplicates` [#max-tasks-duplicates]

pairs of tasks that may be one job

#### `max tasks duplicates list` [#max-tasks-duplicates-list]

pairs of tasks a rule opened that may be one job, newest first, with score and reasons: merge, reject or defer each; decision:unsure lists the ones deferred to the owner

```sh
max tasks duplicates list [query] [options]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | Purpose |
|---|---|
| `--limit <n>` | how many. |

**Returns:** task pair — task, source, other, score, band, levels, reasons, decision, and 2 more; every field: max commands info tasks duplicates list

**Example:** `max personal tasks duplicates list --limit 10`, `max personal tasks duplicates list decision:unsure`

#### `max tasks duplicates reject` [#max-tasks-duplicates-reject]

two tasks are not the same job: the pair leaves the list and is never offered again

**Changes something only on this computer.**

```sh
max tasks duplicates reject <task> <other-task>
```

| Argument | | Meaning |
|---|---|---|
| `task` | required | the task listed as the duplicate, by its id or key. |
| `other-task` | required | the task it was paired with. |

**Returns:** task pair — task, source, other, score, band, levels, reasons, decision, and 2 more; every field: max commands info tasks duplicates reject

**Example:** `max personal tasks duplicates reject PR-14 PR-12`

#### `max tasks duplicates defer` [#max-tasks-duplicates-defer]

the fields and the text cannot tell: leave the pair to the owner, who lists it with decision:unsure

**Changes something only on this computer.**

```sh
max tasks duplicates defer <task> <other-task>
```

| Argument | | Meaning |
|---|---|---|
| `task` | required | the task listed as the duplicate, by its id or key. |
| `other-task` | required | the task it was paired with. |

**Returns:** task pair — task, source, other, score, band, levels, reasons, decision, and 2 more; every field: max commands info tasks duplicates defer

**Example:** `max personal tasks duplicates defer PR-14 PR-12`

### `max tasks merge` [#max-tasks-merge]

one job seen twice: link every message of the duplicate to the task and close the duplicate dismissed, duplicate-of the task; nothing is deleted, and tasks unmerge undoes it

**Changes something only on this computer.**

```sh
max tasks merge <task> [options]
```

| Argument | | Meaning |
|---|---|---|
| `task` | required | the duplicate, by its id or key; it must be open. |

| Option | Purpose |
|---|---|
| `--into <id>` | the task that stays, by its id or key. |

**Returns:** task merge — pair, linked, review, task; every field: max commands info tasks merge

**Example:** `max personal tasks merge PR-14 --into PR-12`

### `max tasks unmerge` [#max-tasks-unmerge]

undo a merge: reopen the task and remove its duplicate-of relation; messages the merge linked stay linked

**Changes something only on this computer.**

```sh
max tasks unmerge <task>
```

| Argument | | Meaning |
|---|---|---|
| `task` | required | the merged task, by its id or key. |

**Returns:** task unmerge — pair, task; every field: max commands info tasks unmerge

**Example:** `max personal tasks unmerge PR-14`

### `max tasks agenda` [#max-tasks-agenda]

what needs a look today, from the local store and without message text: tasks overdue, due or to check, chats where you owe an answer, chats where you wait for one, open tasks someone else does

```sh
max tasks agenda [query] [options]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | Purpose |
|---|---|
| `--due-within <duration>` | list tasks due within this: 30m, 2h, 1d (default 1d). |
| `--unanswered <duration>` | list chats where someone else wrote last this long ago (default 1d). |
| `--waiting <duration>` | list chats where you wrote last this long ago (default 7d). |
| `--within <duration>` | leave out chats silent longer than this: they ended (default 30d). |
| `--holder <name>` | who you are for claims: a session id or a chat id; default WIRECAT_HOLDER, else Claude Code's session, else the agent's name. |

**Returns:** agenda — at, account, stored_at, stale, tasks, owed, waiting, unsynced, and 2 more; every field: max commands info tasks agenda

**Example:** `max personal tasks agenda`

### `max tasks categories` [#max-tasks-categories]

the categories a task takes, with what each means and the words a rule picks it by

```sh
max tasks categories
```

**Returns:** task categories — categories, unlisted, file; every field: max commands info tasks categories

**Example:** `max personal tasks categories`

### `max tasks scan` [#max-tasks-scan]

the task rules over a chat's newest stored messages: in a one-to-one chat a question you did not answer, in a group only a question in reply to you and a mention of you, open a task, and your answer closes one; a channel opens none — for a chat the first sync left alone (config task_first_pass_per_chat). Lists what would open and changes nothing unless --yes; with --yes the duplicate check runs as on a sync. Reads only the local store

**Changes something only on this computer.**

```sh
max tasks scan <chat> [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |

| Option | Purpose |
|---|---|
| `--last <n>` | read the newest n stored messages of each chat (default 50, at most 1000). |

**Returns:** task scan — chat, messages, added, closed, review, tasks, held, held_chats; every field: max commands info tasks scan

**Example:** `max personal tasks scan <chat>`, `max personal tasks scan <chat> --last 300 --yes`

### `max tasks status` [#max-tasks-status]

every chat that can hold your tasks — not a channel or Saved Messages — with the point its messages were read for tasks through, who read them, how many stored messages wait after it, and how many arrived late inside the stretch already read (history fetched afterwards). Its own point: reading a chat, marking it read, inbox --new and review --new never move it; tasks acknowledge does. Reads only the local store

```sh
max tasks status [options]
```

| Option | Purpose |
|---|---|
| `--limit <n>` | how many chats. |

**Returns:** task analysis — chat, title, kind, newest_at, mark, waiting, late, untrusted; every field: max commands info tasks status

**Example:** `max personal tasks status`

### `max tasks review` [#max-tasks-review]

the stored messages after the chat's task point, oldest first, and the chat's open tasks, so one read can open new tasks and update or close the old ones. A chat never read starts 14 days back. Moves nothing: when done, tasks acknowledge <chat> <through> records it. Reads only the local store; messages sync or backfill fetch what it lacks

```sh
max tasks review <chat> [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |

| Option | Purpose |
|---|---|
| `--limit <n>` | how many messages (default 100, 1000 with --since-time; at most 1000). |
| `--since-time <time>` | read again from this ISO 8601 time, or 30d ago, whatever the point says; what the point already passed only updates and closes tasks, unless tasks add is given --open-new. |

**Returns:** task review — chat, from, mark, late, has_more, through, messages, open_tasks, and 1 more; every field: max commands info tasks review

**Example:** `max personal tasks review <chat>`, `max personal tasks review <chat> --since-time 30d`

### `max tasks acknowledge` [#max-tasks-acknowledge]

moves the chat's task point to this message once its tasks are opened, updated or closed; it never moves back. With --since-time, the read started there: a read again from the start of the stretch clears what arrived late inside it

**Changes something only on this computer.**

```sh
max tasks acknowledge <chat> <message> [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |
| `message` | required | the id of the last message read, as tasks review shows it. |

| Option | Purpose |
|---|---|
| `--since-time <time>` | where the read started, when tasks review was given --since-time. |

**Returns:** task analysis mark — chat, from, through, through_id, by, checked_at, checked_through, at, and 1 more; every field: max commands info tasks acknowledge

**Example:** `max personal tasks acknowledge <chat> <message>`

### `max tasks claim` [#max-tasks-claim]

take an open task so no other agent works it at once; the claim lapses by itself

**Changes something only on this computer.**

```sh
max tasks claim <task> [options]
```

| Argument | | Meaning |
|---|---|---|
| `task` | required | the task's id or key, as tasks list shows it. |

| Option | Purpose |
|---|---|
| `--lease <duration>` | how long the claim lasts: 30m, 2h (default 30m); claiming again extends it. |
| `--holder <name>` | who you are for claims: a session id or a chat id; default WIRECAT_HOLDER, else Claude Code's session, else the agent's name. |

**Returns:** task card — id, ref, key, project, project_key, project_name, created_by, title, and 26 more; every field: max commands info tasks claim

**Example:** `max personal tasks claim PR-12 --lease 2h`

### `max tasks release` [#max-tasks-release]

give back a task you claimed, before the claim lapses; the owner may release any

**Changes something only on this computer.**

```sh
max tasks release <task> [options]
```

| Argument | | Meaning |
|---|---|---|
| `task` | required | the task's id or key, as tasks list shows it. |

| Option | Purpose |
|---|---|
| `--holder <name>` | who you are for claims: a session id or a chat id; default WIRECAT_HOLDER, else Claude Code's session, else the agent's name. |

**Returns:** task card — id, ref, key, project, project_key, project_name, created_by, title, and 26 more; every field: max commands info tasks release

**Example:** `max personal tasks release PR-12`

### `max tasks close` [#max-tasks-close]

close a task: done, or dismissed when it needs no answer. An agent (AI_AGENT or CLAUDECODE set) states its --certainty; below config task_agent_close_min, or with task_agent_close off, the task stays open and the close waits on the owner, who confirms it with tasks close or refuses it with tasks reject. A closed task stays closed, unless tasks unmerge reopens a merged one

**Changes something only on this computer.**

```sh
max tasks close <task> [options]
```

| Argument | | Meaning |
|---|---|---|
| `task` | required | the task's id or key, as tasks list shows it. |

| Option | Purpose |
|---|---|
| `--as <state>` | how it is closed: done, or dismissed — it needs no answer; the owner may leave it out to confirm an agent's close. |
| `--reason <text>` | why, kept with the task — no-reply-needed, for example. |
| `--certainty <n>` | an agent's: how sure it is, 0 to 1, that the task needs nothing more. |
| `--as-owner` | close it as yours although an agent's terminal runs the tool (AI_AGENT or CLAUDECODE set). |

**Returns:** task closed — id, source, source_kind, account, group, kind, state, origin, and 13 more; every field: max commands info tasks close

**Example:** `max personal tasks close Q-15 --as done --certainty 0.9 --reason answered-in-chat`, `max personal tasks close Q-15`

### `max tasks reject` [#max-tasks-reject]

refuse the close an agent suggested: the task stays open and leaves close:suggested; the agent may close it again

**Changes something only on this computer.**

```sh
max tasks reject <task> [options]
```

| Argument | | Meaning |
|---|---|---|
| `task` | required | the task's id or key, as tasks list shows it. |

| Option | Purpose |
|---|---|
| `--as-owner` | refuse it as yours although an agent's terminal runs the tool (AI_AGENT or CLAUDECODE set). |

**Returns:** task card — id, ref, key, project, project_key, project_name, created_by, title, and 26 more; every field: max commands info tasks reject

**Example:** `max personal tasks reject Q-15`

## `max projects` [#max-projects]

what the store holds about the owner's projects

### `max projects evidence` [#max-projects-evidence]

cited references about a project in this profile's stored messages. The project's name, key, each alias and each --alias, --context-query and --contact name is its own search; their hits are joined. Every message of a chat confirmed as the project's is read too, and so is what a confirmed person member wrote. Reads what the store holds; with --sync-first it first syncs the project's linked chats the store does not hold for the window

**Changes something only on this computer.**

```sh
max projects evidence <project> [options]
```

| Argument | | Meaning |
|---|---|---|
| `project` | required | an existing project's id, key, exact name or alias, or a new project's name. |

| Option | Purpose |
|---|---|
| `--alias <name>` | another name of the project, searched on its own; repeat for more. По умолчанию: ``. |
| `--context-query <words>` | more words that all appear in one text; repeat for another. По умолчанию: ``. |
| `--contact <person>` | a name to search, or person:<id> to read what that person wrote. По умолчанию: ``. |
| `--purpose <purposes>` | the linked chats' purposes to read, comma separated (work, sales, support, other), or all; the configured defaults if not given, and a chat left out is counted, never dropped silently. По умолчанию: ``. |
| `--include-proposed` | also read chats and members proposed for the project and not yet confirmed; each item they bring is marked. |
| `--since-time <time>` | how far back: days (90d, at most 730d) or a start date (2026-09-01). Default: `60d`. |
| `--before-time <time>` | fixed exclusive end: ISO 8601 timestamp with UTC offset. |
| `--limit <n>` | new references at most, up to 500; 100 if not given. |
| `--max-pages <pages>` | store pages read at most this run, up to 512. |
| `--cursor <cursor>` | continue a stopped search from its checkpoint, with the same options. |
| `--before-n <n>` | messages before each message hit, at most 5. Default: `2`. |
| `--after-n <n>` | messages after each message hit, at most 5. Default: `2`. |
| `--no-catch-up` | read the search index as it is, without indexing new text first. |
| `--sync-first` | first sync the linked chats this account does not hold back to --since-time; off by default. |
| `--sync-time <duration>` | time for all of --sync-first's syncs together; 3m if not given. Default: `3m`. |

**Returns:** what this account's stored messages hold about a project, linked chats included

**Example:** `max personal projects evidence "Harbour" --since-time 30d --sync-first`

### `max projects status` [#max-projects-status]

per chat confirmed as the project's (and its child projects'), from what the store holds: the last message, who replies next, open questions both ways, promises, amounts with their direction, payments recorded, how long each --context-query has been quiet on their side, and how much of the chat is held. Amounts, directions and promises found by words are marked pattern: read the cited message before trusting one. Others' questions in a group with no role, and others' word-found promises in a group, are counted on the chat's row as unlisted, not listed. Only this profile's account is read; the other linked chats are named, and memo projects status reads them

```sh
max projects status <project> [options]
```

| Argument | | Meaning |
|---|---|---|
| `project` | required | an existing project's id, key, exact name or alias. |

| Option | Purpose |
|---|---|
| `--since-time <time>` | how far back: days (60d, at most 730d) or a start date (2026-09-01). Default: `60d`. |
| `--before-time <time>` | fixed exclusive end: ISO 8601 timestamp with UTC offset. |
| `--purpose <purposes>` | the linked chats' purposes to read, comma separated (work, sales, support, other), or all; the configured defaults if not given, and a chat left out is counted, never dropped silently. По умолчанию: ``. |
| `--context-query <words>` | words that all appear in one text; reports their last mention per side. Repeat for another. По умолчанию: ``. |

**Returns:** project status — project, key, name, signals, money, chats, purposes, out_of_scope, and 7 more; every field: max commands info projects status

**Example:** `max personal projects status HRB --context-query 1C`

## `max conversations` [#max-conversations]

the conversations inside a chat, found in the stored messages by replies, mentions and who wrote next

### `max conversations list` [#max-conversations-list]

a chat's conversations, the newest first: when, how many messages, how many people

```sh
max conversations list <chat> [query] [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | Purpose |
|---|---|
| `--limit <n>` | how many. |

**Returns:** conversation — id, chat, first_message, started_at, ended_at, messages_count, senders_count, built_at, and 1 more; every field: max commands info conversations list

**Example:** `max personal conversations list "Book club"`

### `max conversations show` [#max-conversations-show]

one conversation's messages, oldest first — by its id, or the one a message is in

```sh
max conversations show <conversation> [message]
```

| Argument | | Meaning |
|---|---|---|
| `conversation` | required | a conversation id from `conversations list`; or a chat: its id, or part of its title, with a message. |
| `message` | optional | a message id in that chat: show the conversation it is in. |

**Returns:** conversation details — id, chat, first_message, started_at, ended_at, messages_count, senders_count, built_at, and 40 more; every field: max commands info conversations show

**Example:** `max personal conversations show "Book club" 101`

### `max conversations related` [#max-conversations-related]

the conversations nearest in meaning to the one a message is in, in every built chat, best first — from the vectors `conversations embed` stored; runs no model

```sh
max conversations related <chat> <message> [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |
| `message` | required | a message id in that chat. |

| Option | Purpose |
|---|---|
| `--limit <n>` | how many. |
| `--model <model>` | local: a model id from `models list` (default: embeddinggemma); remote: the provider's model. |
| `--embedding-provider <provider>` | embedding provider: local or openai; flags override profile settings. |
| `--base-url <url>` | a server with OpenAI's /v1/embeddings: Gemini, Jina, or Ollama and LM Studio on this machine. |
| `--dims <n>` | remote: the vector size — needed with --base-url; shortens an OpenAI model's. |

**Returns:** conversation hit — summary, chunk, score, by, stale, source, locator, matched_in; every field: max commands info conversations related

**Example:** `max personal conversations related "Book club" 101`

### `max conversations status` [#max-conversations-status]

how fresh each built chat's conversations and vectors are: messages the build has not seen, chunks with a current, stale or missing vector

```sh
max conversations status [options]
```

| Option | Purpose |
|---|---|
| `--chat <chat>` | only this chat: a chat: its id, or part of its title. |
| `--model <model>` | local: a model id from `models list` (default: embeddinggemma); remote: the provider's model. |
| `--embedding-provider <provider>` | embedding provider: local or openai; flags override profile settings. |
| `--base-url <url>` | a server with OpenAI's /v1/embeddings: Gemini, Jina, or Ollama and LM Studio on this machine. |
| `--dims <n>` | remote: the vector size — needed with --base-url; shortens an OpenAI model's. |

**Returns:** conversation readiness — chat, model, state, graph, pending, vectors; every field: max commands info conversations status

**Example:** `max personal conversations status`

### `max conversations batches` [#max-conversations-batches]

windows of a chat for your own AI agent to link: which earlier message each one answers

#### `max conversations batches status` [#max-conversations-batches-status]

how many messages still wait for an answer, in how many batches, and how much text

```sh
max conversations batches status [options]
```

| Option | Purpose |
|---|---|
| `--chat <chat>` | a chat: its id, or part of its title. |
| `--size <n>` | messages to answer per batch, 10–200; 50 by default. |

**Returns:** conversation batch status — chat, messages, characters, batches, tokens_estimate; every field: max commands info conversations batches status

**Example:** `max personal conversations batches status --chat "Book club"`

#### `max conversations batches show` [#max-conversations-batches-show]

the next window to answer, with the messages before it; message text goes to stdout only

```sh
max conversations batches show [options]
```

| Option | Purpose |
|---|---|
| `--chat <chat>` | a chat: its id, or part of its title. |
| `--size <n>` | messages to answer per batch, 10–200; 50 by default. |

**Returns:** conversation batch — batch, chat, messages, remaining; every field: max commands info conversations batches show

**Example:** `max personal conversations batches show --chat "Book club"`

### `max conversations links` [#max-conversations-links]

message links and the conversations derived from them

#### `max conversations links rebuild` [#max-conversations-links-rebuild]

find a chat's conversations in what the store holds, replacing the last build; without --chat, every chat that changed since its build and every group never built; never asks the messenger

**Sends text to an external service.**

```sh
max conversations links rebuild [options]
```

| Option | Purpose |
|---|---|
| `--chat <chat>` | a chat: its id, or part of its title. |
| `--analyze` | link batches using the configured analysis provider; requires --chat and remembers consent for this chat/provider. |
| `--analysis-provider <provider>` | analysis: agent, openai or anthropic. |
| `--model <model>` | analysis model; overrides models.analysis.model. |
| `--base-url <url>` | analysis API endpoint; overrides models.analysis.base_url. |
| `--size <n>` | analysis answer messages per batch, 10–200; default 50. |
| `--max-tokens <n>` | analysis input/output reservation cap per run; default 100000. |
| `--max-chats <n>` | at most this many chats in one run; 20 if not given. |

**Returns:** conversation build — chat, messages, links, conversations, built_at, rules_version, model, model_available, and 10 more; every field: max commands info conversations links rebuild

**Example:** `max personal conversations links rebuild --chat "Book club"`

#### `max conversations links add` [#max-conversations-links-add]

store your agent's answer to a batch, read as JSON from stdin: { "model", "answers": [{ "message", "parent", "confidence" }] }; all or nothing

**Changes something only on this computer.**

```sh
max conversations links add [options]
```

| Option | Purpose |
|---|---|
| `--batch <id>` | the batch id `conversations batches show` printed. |

**Returns:** conversation change — chat, stored, cleared; every field: max commands info conversations links add

**Example:** `max personal conversations links add --batch "$batch"`

#### `max conversations links clear` [#max-conversations-links-clear]

drop your agent's answers for a chat, or only one model's; messages are never touched

**Changes something only on this computer.**

```sh
max conversations links clear [options]
```

| Option | Purpose |
|---|---|
| `--chat <chat>` | a chat: its id, or part of its title. |
| `--answer-model <model>` | only the stored answers this model gave. |

**Returns:** conversation change — chat, stored, cleared; every field: max commands info conversations links clear

**Example:** `max personal conversations links clear --chat "Book club"`

### `max conversations embeddings` [#max-conversations-embeddings]

stored conversation vectors

#### `max conversations embeddings status` [#max-conversations-embeddings-status]

how many chunks of a chat have a vector of the model, how many are left, and what is left costs

```sh
max conversations embeddings status [options]
```

| Option | Purpose |
|---|---|
| `--chat <chat>` | a chat: its id, or part of its title. |
| `--model <model>` | local: a model id from `models list` (default: embeddinggemma); remote: the provider's model. |
| `--embedding-provider <provider>` | embedding provider: local or openai; flags override profile settings. |
| `--base-url <url>` | a server with OpenAI's /v1/embeddings: Gemini, Jina, or Ollama and LM Studio on this machine. |
| `--dims <n>` | remote: the vector size — needed with --base-url; shortens an OpenAI model's. |

**Returns:** conversation embedding status — chat, model, chunks, embedded, left, estimate_seconds, tokens_at_most, price_at_most; every field: max commands info conversations embeddings status

**Example:** `max personal conversations embeddings status --chat "Book club"`

#### `max conversations embeddings clear` [#max-conversations-embeddings-clear]

drop a chat's conversation and message vectors, or only one model's; messages and conversations are never touched

**Changes something only on this computer.**

```sh
max conversations embeddings clear [options]
```

| Option | Purpose |
|---|---|
| `--chat <chat>` | a chat: its id, or part of its title. |
| `--model <model>` | local: a model id from `models list` (default: embeddinggemma); remote: the provider's model. |
| `--embedding-provider <provider>` | embedding provider: local or openai; flags override profile settings. |
| `--base-url <url>` | a server with OpenAI's /v1/embeddings: Gemini, Jina, or Ollama and LM Studio on this machine. |
| `--dims <n>` | remote: the vector size — needed with --base-url; shortens an OpenAI model's. |

**Returns:** conversation change — chat, stored, cleared; every field: max commands info conversations embeddings clear

**Example:** `max personal conversations embeddings clear --chat "Book club"`

### `max conversations rebuild` [#max-conversations-rebuild]

build, then embed with the model on this machine, the chats that changed since their build and the group chats never built — or only --chat; with the default model, also each message on its own, which `search messages --discover` reads; bounded per run, so run it again for the rest; never asks the messenger, downloads no model and sends no text anywhere

**Changes something only on this computer.**

```sh
max conversations rebuild [options]
```

| Option | Purpose |
|---|---|
| `--chat <chat>` | a chat: its id, or part of its title. |
| `--max-chats <n>` | at most this many chats in one run; 20 if not given. |
| `--max-chunks <n>` | at most this many chunks embedded in one run; 2000 if not given. |

**Returns:** conversation preparation — model, model_available, built, embedded, left, messages; every field: max commands info conversations rebuild

**Example:** `max personal conversations rebuild --max-chats 5`

### `max conversations consents` [#max-conversations-consents]

remembered analysis permissions for this account's chats and provider endpoints

#### `max conversations consents list` [#max-conversations-consents-list]

which chats and provider endpoints you allowed to analyse, and when

```sh
max conversations consents list [query]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | field:value terms that narrow the list — the fields are below. |

**Returns:** analysis consent — chat, provider, at; every field: max commands info conversations consents list

**Example:** `max personal conversations consents list`

#### `max conversations consents remove` [#max-conversations-consents-remove]

forget analysis permissions so the next analysis asks again

**Changes something only on this computer.**

```sh
max conversations consents remove [options]
```

| Option | Purpose |
|---|---|
| `--chat <chat>` | revoke only this chat's consents; defaults to every chat. |
| `--consent-provider <identity>` | exact provider identity from consents list; defaults to every provider. |

**Returns:** analysis consent revocation — revoked; every field: max commands info conversations consents remove

**Example:** `max personal conversations consents remove --chat "Book club"`

### `max conversations embed` [#max-conversations-embed]

compute a vector for each chunk of a chat's conversations for search by meaning — on this machine, or with --embedding-provider through a service and your key; resumes where it stopped; without --chat, every built chat with chunks left, on this machine only

**Sends text to an external service.**

```sh
max conversations embed [options]
```

| Option | Purpose |
|---|---|
| `--chat <chat>` | a chat: its id, or part of its title. |
| `--model <model>` | local: a model id from `models list` (default: embeddinggemma); remote: the provider's model. |
| `--embedding-provider <provider>` | embedding provider: local or openai; flags override profile settings. |
| `--base-url <url>` | a server with OpenAI's /v1/embeddings: Gemini, Jina, or Ollama and LM Studio on this machine. |
| `--dims <n>` | remote: the vector size — needed with --base-url; shortens an OpenAI model's. |
| `--threads <n>` | local: threads in all (default: min(8, cores)). |
| `--concurrency <n>` | remote: requests at once (default: 4). |
| `--max-tokens <n>` | remote: stop before a run that could send more tokens than this. |
| `--max-chats <n>` | at most this many chats in one run; 20 if not given. |
| `--max-chunks <n>` | at most this many chunks embedded in one run; 2000 if not given, and no limit with --chat. |

**Returns:** conversation embedding — chat, model, embedded, skipped, model_available, built, left, messages; every field: max commands info conversations embed

**Example:** `max personal conversations embed --chat "Book club"`

## `max attachments` [#max-attachments]

the files of stored messages: their text in the local store, where search finds it

### `max attachments extract` [#max-attachments-extract]

read the text of downloaded files — text, PDF/DOCX text layers, ODT/ODS/XLSX/PPTX/EPUB — into the local store, where search finds them

**Changes something only on this computer.**

```sh
max attachments extract [options]
```

| Option | Purpose |
|---|---|
| `--chat <chat>` | only this chat's files; a chat: its id, or part of its title. |
| `--from-dir <dir>` | match files in this nonrecursive directory; needs --chat. |
| `--cursor <cursor>` | continue from the cursor returned by a bounded extraction. |
| `--download` | first save the files no download saved yet, from the messenger, into --output-dir. |
| `--output-dir <dir>` | with --download, where to save them; created if missing. |
| `--limit <n>` | read at most this many files; run it again to continue. |
| `--ocr` | explicitly call models.ocr for bulk image and scanned-PDF text extraction. |
| `--concurrency <n>` | remote: requests at once (default: 4). |

**Returns:** attachment extraction — extracted, failed, needs_agent, complete, unchanged, not_downloaded, unsupported, engines_missing, and 15 more; every field: max commands info attachments extract

**Example:** `max personal attachments extract --chat "Book club" --limit 10`

### `max attachments list` [#max-attachments-list]

files of stored messages, newest first: where each was saved and whether its text is held — never the text

```sh
max attachments list [query] [options]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | Purpose |
|---|---|
| `--limit <n>` | how many to show. |
| `--page <n>` | which page, starting at 1. |
| `--all` | every row, no paging. |

**Returns:** attachment — kind, message, position, url, name, title, mime, size, and 8 more; every field: max commands info attachments list

**Example:** `max personal attachments list --limit 10`

### `max attachments show` [#max-attachments-show]

read a bounded chunk of one retained attachment; JSON includes base64 bytes

```sh
max attachments show <chat> [message] [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title; or a msg: locator alone. |
| `message` | optional | the message id. |

| Option | Purpose |
|---|---|
| `--attachment <n>` | file position from 1; required for several files. |
| `--page <n>` | render one PDF page as PNG, from 1; optional unpdf/canvas, no OCR. |
| `--offset-bytes <n>` | byte offset from 0. |
| `--chunk-bytes <n>` | bytes to return, 1–1048576 (default524288). |
| `--expected-fingerprint <hash>` | require the whole file SHA-256 from the preceding chunk. |

**Returns:** attachment bytes — ref, attachment, name, mime_type, total_bytes, sha256, offset_bytes, read_bytes, and 4 more; every field: max commands info attachments show

**Example:** `max personal attachments show "Book club" 101 --attachment 1`

### `max attachments update` [#max-attachments-update]

keep the text an agent read from a file — a scan, a photo — so search finds it; nothing is sent

**Changes something only on this computer.**

```sh
max attachments update <chat> [message] [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title; or a msg: locator, with no message id after it. |
| `message` | optional | the message id. |

| Option | Purpose |
|---|---|
| `--attachment <n>` | which file of the message, from 1; needed when it has more than one. |
| `--text-file <path>` | read the text from this file; - or none reads stdin. |

**Returns:** attachment text change — ref, attachment, origin, chars, replaced; every field: max commands info attachments update

**Example:** `max personal attachments update "Book club" 101 --text-file ./transcript.txt`

### `max attachments download` [#max-attachments-download]

archive media from selected chats; verify and keep existing copies

**Changes something only on this computer.**

```sh
max attachments download <dir> [options]
```

| Argument | | Meaning |
|---|---|---|
| `dir` | required | archive directory; created if missing. |

| Option | Purpose |
|---|---|
| `--chat <chat>` | only this chat; repeat for more; a chat: its id, or part of its title. Default: ``. |
| `--since-time <time>` | include messages from this ISO timestamp with a time zone. |
| `--pause <duration>` | pause between history pages. Default: `5s`. |

**Returns:** media archive — directory, chats, saved, existing, complete; every field: max commands info attachments download

**Example:** `max personal attachments download ./media-archive`

### `max attachments check` [#max-attachments-check]

rehash all archived files without connecting to the messenger

```sh
max attachments check <dir>
```

| Argument | | Meaning |
|---|---|---|
| `dir` | required | archive directory. |

**Returns:** media archive check — valid, checked, files; every field: max commands info attachments check

**Example:** `max personal attachments check ./media-archive`

### `max attachments jobs` [#max-attachments-jobs]

daily media archive timers for this profile

#### `max attachments jobs install` [#max-attachments-jobs-install]

install a Linux daily archive timer for this directory; starts nothing

**Changes something only on this computer.**

```sh
max attachments jobs install <dir> [options]
```

| Argument | | Meaning |
|---|---|---|
| `dir` | required | archive directory, used with the same profile as install. |

| Option | Purpose |
|---|---|
| `--at <HH:mm>` | daily start time. Default: `03:00`. |
| `--timezone <zone>` | IANA time zone of the daily start time. Default: `UTC`. |
| `--chat <chat>` | only this chat; repeat for more; a chat: its id, or part of its title. Default: ``. |
| `--since-time <time>` | include messages from this ISO timestamp with a time zone. |

**Returns:** media archive timer — name, installed, service_path, timer_path, active, action; every field: max commands info attachments jobs install

**Example:** `max personal attachments jobs install ./media-archive`

#### `max attachments jobs start` [#max-attachments-jobs-start]

enable the installed archive timer at login and start its daily schedule

**Changes something only on this computer.**

```sh
max attachments jobs start <dir>
```

| Argument | | Meaning |
|---|---|---|
| `dir` | required | archive directory, used with the same profile as install. |

**Returns:** media archive timer — name, installed, service_path, timer_path, active, action; every field: max commands info attachments jobs start

**Example:** `max personal attachments jobs start ./media-archive`

#### `max attachments jobs stop` [#max-attachments-jobs-stop]

disable the archive timer; a download already running finishes

**Changes something only on this computer.**

```sh
max attachments jobs stop <dir>
```

| Argument | | Meaning |
|---|---|---|
| `dir` | required | archive directory, used with the same profile as install. |

**Returns:** media archive timer — name, installed, service_path, timer_path, active, action; every field: max commands info attachments jobs stop

**Example:** `max personal attachments jobs stop ./media-archive`

#### `max attachments jobs status` [#max-attachments-jobs-status]

show whether this directory's archive timer is installed and active

```sh
max attachments jobs status <dir>
```

| Argument | | Meaning |
|---|---|---|
| `dir` | required | archive directory, used with the same profile as install. |

**Returns:** media archive timer — name, installed, service_path, timer_path, active, action; every field: max commands info attachments jobs status

**Example:** `max personal attachments jobs status ./media-archive`

#### `max attachments jobs uninstall` [#max-attachments-jobs-uninstall]

remove this directory's stopped archive timer; keep archived files

**Changes something only on this computer.**

```sh
max attachments jobs uninstall <dir>
```

| Argument | | Meaning |
|---|---|---|
| `dir` | required | archive directory, used with the same profile as install. |

**Returns:** media archive timer — name, installed, service_path, timer_path, active, action; every field: max commands info attachments jobs uninstall

**Example:** `max personal attachments jobs uninstall ./media-archive`

### `max attachments move` [#max-attachments-move]

move older images into another verified archive; remember their new locations

**Changes something only on this computer.**

```sh
max attachments move <dir> <archive-dir> [options]
```

| Argument | | Meaning |
|---|---|---|
| `dir` | required | source media archive directory. |
| `archive-dir` | required | destination archive directory; created if needed. |

| Option | Purpose |
|---|---|
| `--before-time <time>` | move images whose message date is before this ISO timestamp with zone. |
| `--dry-run` | show counts and bytes without moving files or creating the destination. |

**Returns:** media archive move — directory, archive_directory, before_time, selected, selected_bytes, moved, moved_bytes, already_archived, and 3 more; every field: max commands info attachments move

**Example:** `max personal attachments move ./media-archive ./older-images --before-time 2026-10-01T00:00:00Z --dry-run`

## `max tags` [#max-tags]

your own labels on chats, people, messages and tasks, kept in the local store and never sent; tag: in a search finds them

### `max tags rebuild` [#max-tags-rebuild]

derive local group/channel tags from cached metadata using keyword rules

**Changes something only on this computer.**

```sh
max tags rebuild [options]
```

| Option | Purpose |
|---|---|
| `--chat <chat>` | a stored group/channel; repeat to select several. Default: ``. |
| `--limit <n>` | process at most 1–500 chats. Default: `50`. |
| `--sync-first` | read current descriptions from the messenger before classifying. |
| `--dry-run` | preview cached classification without changing the store. |

**Returns:** automatic tags — items, has_more, dry_run; every field: max commands info tags rebuild

**Example:** `max personal tags rebuild --chat "Book club" --dry-run`

### `max tags add` [#max-tags-add]

put tags on one chat, person, message or task

**Changes something only on this computer.**

```sh
max tags add <tag> [options]
```

| Argument | | Meaning |
|---|---|---|
| `tag` | required | one or more tags: 1–32 letters a–z, digits and hyphens; upper case is lowered. |

| Option | Purpose |
|---|---|
| `--chat <chat>` | the chat to tag, or the chat of --message; a chat: its id, or part of its title. |
| `--contact <person>` | the person to tag: their id, @username or name, as the local store knows them. |
| `--message <message>` | the message to tag: its id in --chat, or a msg: locator alone. |
| `--task <id>` | the task to tag: its id or key, as tasks list shows it. |

**Returns:** tag change — target, unchanged, added, removed; every field: max commands info tags add

**Example:** `max personal tags add reading --chat "Book club"`

### `max tags remove` [#max-tags-remove]

take tags off one chat, person, message or task

**Changes something only on this computer.**

```sh
max tags remove <tag> [options]
```

| Argument | | Meaning |
|---|---|---|
| `tag` | required | one or more tags: 1–32 letters a–z, digits and hyphens; upper case is lowered. |

| Option | Purpose |
|---|---|
| `--chat <chat>` | the chat to untag, or the chat of --message; a chat: its id, or part of its title. |
| `--contact <person>` | the person to untag: their id, @username or name, as the local store knows them. |
| `--message <message>` | the message to untag: its id in --chat, or a msg: locator alone. |
| `--task <id>` | the task to untag: its id or key, as tasks list shows it. |
| `--claim <claim>` | remove only this ownership claim: manual or auto. |

**Returns:** tag change — target, unchanged, added, removed; every field: max commands info tags remove

**Example:** `max personal tags remove reading --chat "Book club"`

### `max tags list` [#max-tags-list]

what is tagged: this account's chats, messages and tasks, and the people of its messenger

```sh
max tags list [query]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | field:value terms that narrow the list — the fields are below. |

**Returns:** tagging — tag, type, target, name, sources, created_at; every field: max commands info tags list

**Example:** `max personal tags list`, `max personal tags list tag:reading`

## `max mentions` [#max-mentions]

phones, e-mail, links, documents, names and addresses in stored messages

### `max mentions list` [#max-mentions-list]

this account's mentions matching the query, newest first; --new for those found since the last review

```sh
max mentions list [query] [options]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | fields below; a bare word is a value, so a phone typed with 8 finds it written with +7. |

| Option | Purpose |
|---|---|
| `--limit <n>` | how many to show. |
| `--page <n>` | which page, starting at 1. |
| `--new` | undecided mentions found since the last --new run that showed them all; the first run shows every one. |

**Returns:** mention — id, kind, value, domain, confidence, status, field, author, and 5 more; every field: max commands info mentions list

**Example:** `max personal mentions list kind:phone`, `max personal mentions list domain:google.com`, `max personal mentions list --new`

### `max mentions domains` [#max-mentions-domains]

the sites this account's links point to, most linked first, with chats and first and last time

```sh
max mentions domains [query] [options]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | narrows the links counted: the fields below; dismissed links are never counted. |

| Option | Purpose |
|---|---|
| `--limit <n>` | how many to show. |
| `--page <n>` | which page, starting at 1. |

**Returns:** mention domain — domain, links, chats, first_at, last_at; every field: max commands info mentions domains

**Example:** `max personal mentions domains`, `max personal mentions domains status:found`

### `max mentions places` [#max-mentions-places]

confirmed addresses, in every account, most mentioned first; `mentions confirm <id>` adds one

```sh
max mentions places [options]
```

| Option | Purpose |
|---|---|
| `--limit <n>` | how many to show. |
| `--page <n>` | which page, starting at 1. |

**Returns:** place — id, address, mentions; every field: max commands info mentions places

**Example:** `max personal mentions places`

### `max mentions show` [#max-mentions-show]

one mention, the text around it, and how many other places hold its value

```sh
max mentions show <id>
```

| Argument | | Meaning |
|---|---|---|
| `id` | required | the mention's id, from mentions list. |

**Returns:** mention details — id, kind, value, domain, confidence, status, field, author, and 9 more; every field: max commands info mentions show

**Example:** `max personal mentions show 12`

### `max mentions confirm` [#max-mentions-confirm]

say what a mention is: a phone's owner everywhere it is written, the stored document, who a name means, an address as a place

**Changes something only on this computer.**

```sh
max mentions confirm <id> [person] [options]
```

| Argument | | Meaning |
|---|---|---|
| `id` | required | the mention's id, from mentions list. |
| `person` | optional | person:<uid> or organization:<id> that owns the phone or the e-mail address; person:<uid> a name means; a document or a street address needs none. |

| Option | Purpose |
|---|---|
| `--all-in-chat` | a name: also every undecided place of the same name in its chat. |
| `--as-owner` | record it as yours although an agent's terminal runs the tool (AI_AGENT or CLAUDECODE set). |

**Returns:** mention decision — kind, value, status, target, mentions, proposal; every field: max commands info mentions confirm

**Example:** `max personal mentions confirm 12 person:7`, `max personal mentions confirm 15`, `max personal mentions confirm 31 person:7 --all-in-chat`

### `max mentions reject` [#max-mentions-reject]

not a real mention: dismiss its value everywhere and on later syncs; a name only where it is

**Changes something only on this computer.**

```sh
max mentions reject <id> [options]
```

| Argument | | Meaning |
|---|---|---|
| `id` | required | the mention's id, from mentions list. |

| Option | Purpose |
|---|---|
| `--all-in-chat` | a name: also every undecided place of the same name in its chat. |
| `--as-owner` | record it as yours although an agent's terminal runs the tool (AI_AGENT or CLAUDECODE set). |

**Returns:** mention decision — kind, value, status, target, mentions, proposal; every field: max commands info mentions reject

**Example:** `max personal mentions reject 12`

### `max mentions rebuild` [#max-mentions-rebuild]

find the mentions of every stored message again; decisions are kept

**Changes something only on this computer.**

```sh
max mentions rebuild [kind]
```

| Argument | | Meaning |
|---|---|---|
| `kind` | optional | only this kind: person-name after people were added or renamed. One of: `phone`, `email`, `url`, `document`, `person-name`, `place`. |

**Returns:** mention rebuild — messages, attachments, documents, notes, emails, mentions; every field: max commands info mentions rebuild

**Example:** `max personal mentions rebuild`, `max personal mentions rebuild person-name`

## `max images` [#max-images]

search pictures by what they show, with a model on this machine

### `max images embed` [#max-images-embed]

compute a vector for each picture the store knows and has none for — downloading it through the messenger, keeping only the vector; needs `picture_search` on in the profile and `images models download clip-b32`; resumes where it stopped

**Changes something only on this computer.**

```sh
max images embed [options]
```

| Option | Purpose |
|---|---|
| `--chat <chat>` | only this chat; a chat: its id, or part of its title. |
| `--limit <n>` | at most this many pictures in one run; 100 if not given. |

**Returns:** image embedding — model, embedded, skipped, failed, more; every field: max commands info images embed

**Example:** `max personal images embed`, `max personal images embed --limit 500`

### `max images models` [#max-images-models]

models that read pictures, for `images embed` and picture search

#### `max images models list` [#max-images-models-list]

the picture models, which are downloaded, and which one is the default

```sh
max images models list [query]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | field:value terms; this list filters by none yet. |

**Returns:** model — id, kind, title, languages, size_bytes, downloaded, default, path, and 6 more; every field: max commands info images models list

**Next usually:** `max models download <model>`, `max models set <model>`, `max images models download <model>`

**Example:** `max personal images models list`

#### `max images models download` [#max-images-models-download]

download a picture model once, checked against the sha256 this version expects

**Reads from an external service.**

```sh
max images models download <model>
```

| Argument | | Meaning |
|---|---|---|
| `model` | required | a model id from `images models list`. |

**Returns:** model — id, kind, title, languages, size_bytes, downloaded, default, path, and 6 more; every field: max commands info images models download

**Next usually:** `max models download <model>`, `max models set <model>`

**Example:** `max personal images models download clip-b32`

## `max metadata` [#max-metadata]

cached group/channel descriptions for local automatic tags

### `max metadata show` [#max-metadata-show]

a stored chat's cached description, as automatic tags read it

```sh
max metadata show [options]
```

| Option | Purpose |
|---|---|
| `--chat <chat>` | a stored chat. |

**Returns:** chat metadata — chat_id, metadata; every field: max commands info metadata show

**Example:** `max personal metadata show --chat 7`

### `max metadata sync` [#max-metadata-sync]

fetch group and channel descriptions again and cache them

**Changes something only on this computer.**

```sh
max metadata sync [options]
```

| Option | Purpose |
|---|---|
| `--chat <chat>` | stored group/channel; repeat for several. Default: ``. |
| `--only-missing` | only chats with no metadata yet; without --chat, every stored group/channel. |
| `--limit <n>` | process at most 1–500 chats. Default: `50`. |

**Returns:** chat metadata refresh — chats, has_more; every field: max commands info metadata sync

**Example:** `max personal metadata sync --chat 7 --chat 8`, `max personal metadata sync --only-missing --limit 20`

## `max search` [#max-search]

find things by text: one resource when you know it (messages, notes), or search all across messages and notes; for mail, the separate memo CLI: memo search mail

### `max search all` [#max-search-all]

search messenger messages and notes in the local store, and by default the messenger's server for messages too (notes and events are local only; --backend archive or --offline keeps it to the local store), calendar events when the store holds a calendar, and meeting transcripts, chat and summaries when it holds a meeting account — best match first; not mail (the separate memo CLI searches it: memo search mail), tasks, people, memories or projects. Use it when you do not know where something was written; search messages or notes reads one kind with all its fields

```sh
max search all <query> [options]
```

| Argument | | Meaning |
|---|---|---|
| `query` | required | strict Lucene query: words, "phrases", AND/OR/NOT, field groups and date ranges. |

| Option | Purpose |
|---|---|
| `--only <resources>` | only these resources, separated by commas: messages, notes, events, meetings. |
| `--source <accounts>` | only these accounts, separated by commas: provider:account as a hit shows it, a provider, a kind or group:<name>; each resource reads the ones of its kind. |
| `--limit <n>` | how many. |
| `--page <n>` | which page, starting at 1. |
| `--exact` | bare words and quotes match their exact form only, as exact:word does. |
| `--timezone <zone>` | the IANA timezone for calendar date boundaries. |
| `--backend <archive\|server\|both>` | where to search: the local archive, the messenger's server (default: both; message discovery uses archive only), or both. |
| `--server-time <duration>` | stop waiting for the server after this long (default: 5s). |

**Returns:** hit — kind, ref, provider, account, title, timestamp, excerpt, url, and 17 more; every field: max commands info search all

**Example:** `max personal search all draft`

### `max search messages` [#max-search-messages]

search messenger messages in the local store and on the messenger's server (--backend); optionally fetches new messages with --sync-first; --discover searches the archive only

```sh
max search messages [query] [options]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | strict Lucene query: words, "phrases", AND/OR/NOT, field groups and date ranges; with --saved, more words AND-ed to it. |

| Option | Purpose |
|---|---|
| `--sync-first` | first fetch new messages within the chat, time and message bounds. |
| `--max-chats <n>` | refresh at most this many chats (default: 5). |
| `--sync-time <duration>` | stop fetching after this long (default: 30s). |
| `--max-messages <n>` | fetch at most this many messages total (default: 500). |
| `--thread` | the stored reply chain and replies instead of time neighbours; falls back when no graph exists. |
| `--thread-hops <n>` | at most this many links from the hit (default: 8). |
| `--thread-messages <n>` | at most this many messages in each thread context (default: 50). |
| `--thread-bytes <n>` | at most this many bytes of whole messages and links in each context (default: 65536). |
| `--thread-within <duration>` | messages within this long either side of the hit (default: 1d). |
| `--backend <archive\|server\|both>` | where to search: the local archive, the messenger's server (default: both; message discovery uses archive only), or both. |
| `--server-time <duration>` | stop waiting for the server after this long (default: 5s). |
| `--source <accounts>` | every account of this messenger held in the store; personal, bots or all — the same as in: in the query; or a list: group:work,telegram:Alice. |
| `--limit <n>` | how many. |
| `--page <n>` | which page, starting at 1. |
| `--newest` | newest first instead of best first. |
| `--exact` | bare words and quotes match their exact form only, as exact:word does; text: still matches every form. |
| `--context <n>` | messages before and after each hit; 2 in the terminal, 0 otherwise. |
| `--discover` | find partial word matches, eligible replies and, once messages have vectors, messages close in meaning in the local archive; results are evidence, not confirmed answers. |
| `--timezone <zone>` | the IANA timezone for calendar date boundaries. |
| `--saved <name\|id>` | run a saved search or an earlier run; options typed here replace its own. |

**Returns:** message hit — ref, timestamp, sender_name, sender_is_me, chat_title, excerpt, matched_in, score, and 9 more; every field: max commands info search messages

**Next usually:** `max messages links <chat> <message>`, `max messages transcribe <chat> <message>`, `max stats messages evidence <message>`

**Example:** `max personal search messages draft --limit 10`

### `max search notes` [#max-search-notes]

search the notes — written in memo, or imported from a notes folder — by words and, with the local text model, by meaning; each hit says which found it and what it links to

```sh
max search notes <query> [options]
```

| Argument | | Meaning |
|---|---|---|
| `query` | required | strict Lucene query: words, "phrases", AND/OR/NOT, tag:, source:internal (written in memo) or source:file (from a notes folder) and date ranges. |

| Option | Purpose |
|---|---|
| `--source <accounts>` | only these notes accounts, separated by commas: notes:internal for notes written in memo, notes:<folder id> as a hit shows it, notes, documents or group:<name>. |
| `--filter <query>` | a query every hit must also match, found by words or by meaning. |
| `--limit <n>` | how many. |
| `--page <n>` | which page, starting at 1. |
| `--exact` | words as written only; meaning is not searched. |
| `--timezone <zone>` | the IANA timezone for calendar date boundaries. |

**Returns:** note hit — ref, source, folder_id, path, title, updated_at, kind, provider, and 6 more; every field: max commands info search notes

**Example:** `max personal search notes draft --limit 10`

### `max search conversations` [#max-search-conversations]

the conversations nearest to a query in meaning and in words, best first, in one chat or every one — meaning after `conversations embed`; runs on this machine

**Reads from an external service.**

```sh
max search conversations <query> [options]
```

| Argument | | Meaning |
|---|---|---|
| `query` | required | what to look for, in your own words, in any language the model reads. |

| Option | Purpose |
|---|---|
| `--model <model>` | local: a model id from `models list` (default: embeddinggemma); remote: the provider's model. |
| `--embedding-provider <provider>` | embedding provider: local or openai; flags override profile settings. |
| `--base-url <url>` | a server with OpenAI's /v1/embeddings: Gemini, Jina, or Ollama and LM Studio on this machine. |
| `--dims <n>` | remote: the vector size — needed with --base-url; shortens an OpenAI model's. |
| `--max-chats <n>` | at most this many chats; 5 with --sync-first, 20 with --catch-up if not given. |
| `--max-chunks <n>` | at most this many chunks embedded in one run; 2000 if not given. |
| `--sync-first` | first fetch new messages within the chat, time and message bounds. |
| `--sync-time <duration>` | stop fetching after this long (default: 30s). |
| `--max-messages <n>` | fetch at most this many messages total (default: 500). |
| `--chat <chat>` | only this chat: a chat: its id, or part of its title. |
| `--since-time <time>` | only those still going at this ISO 8601 time, or 30m / 2h / 1d ago, or later. |
| `--filter <query>` | strict Lucene filter: any message in a conversation must match; does not change the meaning query. |
| `--source <accounts>` | accounts to search: personal, bots, all, a provider, or a list like group:work,telegram:Alice,email:me@example.com; defaults to the active account. |
| `--timezone <zone>` | IANA timezone for filter dates; system timezone by default. |
| `--limit <n>` | how many. |
| `--catch-up` | first build and embed, on this machine, the chats in scope that changed or were never built — within --max-chats and --max-chunks. |

**Returns:** conversation hit — summary, chunk, score, by, stale, source, locator, matched_in; every field: max commands info search conversations

**Example:** `max personal search conversations "Reviewing the project draft"`

## `max searches` [#max-searches]

saved searches and the history of search messages and stats messages show, kept in the local store; --saved runs one

### `max searches create` [#max-searches-create]

save a search under a name without running it; search messages --saved <name> runs it

**Changes something only on this computer.**

```sh
max searches create <name> [query] [options]
```

| Argument | | Meaning |
|---|---|---|
| `name` | required | up to 64 letters a–z, digits and hyphens, not only digits. |
| `query` | optional | the query, as for search messages; none matches every stored message. |

| Option | Purpose |
|---|---|
| `--chat <chat>` | only this chat — the same as chat: in the query; a chat: its id, or part of its title. |
| `--source <accounts>` | every account of this messenger held in the store; personal, bots or all — the same as in: in the query; or a list: group:work,telegram:Alice,email:me@example.com. |
| `--limit <n>` | how many. |
| `--newest` | newest first instead of best first. |
| `--exact` | bare words and quotes match their exact form only, as exact:word does; text: still matches every form. |
| `--context <n>` | messages before and after each hit. |
| `--timezone <zone>` | the IANA timezone for calendar date boundaries. |
| `--by <group>` | count by chat, sender, day or hour for stats messages show --saved. |
| `--selection <json>` | save the resolved parent ranking query and options from a drilldown. |
| `--replace` | overwrite a saved search of the same name. |

**Returns:** saved search — id, name, command, params, language, version, fields_version, created_at, and 2 more; every field: max commands info searches create

**Example:** `max personal searches create project-drafts draft --chat "Project room"`

### `max searches show` [#max-searches-show]

one saved search or earlier run: its query, options and how often it ran

```sh
max searches show <name|id>
```

| Argument | | Meaning |
|---|---|---|
| `name\|id` | required | a saved search's name, or the id of any row of searches history. |

**Returns:** saved search — id, name, command, params, language, version, fields_version, created_at, and 2 more; every field: max commands info searches show

**Example:** `max personal searches show project-drafts`

### `max searches list` [#max-searches-list]

the saved searches, by name

```sh
max searches list [query]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | field:value terms; this list filters by none yet. |

**Returns:** saved search — id, name, command, params, language, version, fields_version, created_at, and 2 more; every field: max commands info searches list

**Example:** `max personal searches list`

### `max searches history` [#max-searches-history]

the searches and counts that ran, newest first — saved ones included; never their results

```sh
max searches history [options]
```

| Option | Purpose |
|---|---|
| `--limit <n>` | how many to show. |
| `--page <n>` | which page, starting at 1. |
| `--all` | every row, no paging. |

**Returns:** saved search — id, name, command, params, language, version, fields_version, created_at, and 2 more; every field: max commands info searches history

**Example:** `max personal searches history --limit 10`

### `max searches delete` [#max-searches-delete]

delete a saved search, or one run from the history

**Changes something only on this computer.**

```sh
max searches delete <name|id>
```

| Argument | | Meaning |
|---|---|---|
| `name\|id` | required | a saved search's name, or the id of any row of searches history. |

**Returns:** saved search — id, name, command, params, language, version, fields_version, created_at, and 2 more; every field: max commands info searches delete

**Example:** `max personal searches delete project-drafts`

### `max searches clear` [#max-searches-clear]

empty the history; saved searches stay

**Changes something only on this computer.**

```sh
max searches clear
```

**Returns:** search history clear — cleared; every field: max commands info searches clear

**Example:** `max personal searches clear`

## `max polls` [#max-polls]

read a poll, vote in it, close your own, create one

### `max polls show` [#max-polls-show]

a poll and its answer ids, as the message carries it now

```sh
max polls show <chat> <message>
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |
| `message` | required | the id of the message that carries the poll. |

**Returns:** poll — chat_id, message_id, question, answers, closed, multiple, anonymous, voters, and 3 more; every field: max commands info polls show

**Example:** `max personal polls show "Book club" 101`

### `max polls vote` [#max-polls-vote]

vote in a poll, or take your vote back; the others see it unless the poll is anonymous

**Changes something outside this computer: in MAX or in an external service.**

```sh
max polls vote <chat> <message> [answers] [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |
| `message` | required | the id of the message that carries the poll. |
| `answers` | optional | answer ids, as `polls show` prints them. |

| Option | Purpose |
|---|---|
| `--retract` | take your vote back. |

**Returns:** poll change — operation_id, poll; every field: max commands info polls vote

**Example:** `max personal polls vote "Book club" 101 0`

### `max polls close` [#max-polls-close]

close your own poll; nobody can vote after that, and it cannot be reopened

**Changes something outside this computer: in MAX or in an external service.**

```sh
max polls close <chat> <message>
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |
| `message` | required | the id of your own message that carries the poll. |

**Returns:** poll change — operation_id, poll; every field: max commands info polls close

**Example:** `max personal polls close "Book club" 101`

### `max polls create` [#max-polls-create]

send a poll to a chat, as a message of its own; public unless --anonymous

**Changes something outside this computer: in MAX or in an external service.**

```sh
max polls create <chat> <question> <answers> [options]
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |
| `question` | required | the question. |
| `answers` | required | two answers or more. |

| Option | Purpose |
|---|---|
| `--multiple` | people may pick several answers. |
| `--anonymous` | nobody sees who voted for what. |
| `--revote` | people may change their vote. |
| `--silent` | send without a notification. |
| `--send-as <id>` | post as one of the identities `chats send-as` lists; required where the chat posts as someone else by default. |
| `--operation-id <id>` | repeat a create whose outcome was unknown, without risking a second poll. |

**Returns:** message write — operation_id, message, messages, scheduled_for; every field: max commands info polls create

**Example:** `max personal polls create "Book club" "Which day?" Monday Tuesday`

## `max reactions` [#max-reactions]

react to messages

### `max reactions add` [#max-reactions-add]

put your reaction on a message; it replaces the one you had

**Changes something outside this computer: in MAX or in an external service.**

```sh
max reactions add <chat> <message> <emoji>
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |
| `message` | required | the message id. |
| `emoji` | required | one emoji, for example 👍. |

**Returns:** reaction change — operation_id, chat_id, message_id, reaction; every field: max commands info reactions add

**Example:** `max personal reactions add "Book club" 101 👍`

### `max reactions remove` [#max-reactions-remove]

take your reaction off a message

**Changes something outside this computer: in MAX or in an external service.**

```sh
max reactions remove <chat> <message>
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |
| `message` | required | the message id. |

**Returns:** reaction change — operation_id, chat_id, message_id, reaction; every field: max commands info reactions remove

**Example:** `max personal reactions remove "Book club" 101`

## `max recipients` [#max-recipients]

the chats this profile may send to, when the list is on

### `max recipients list` [#max-recipients-list]

the chats on the list; empty and off until the first add

```sh
max recipients list [query]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | field:value terms that narrow the list — the fields are below. |

**Returns:** recipient — id, title, added_at, partner_id; every field: max commands info recipients list

**Example:** `max personal recipients list`

### `max recipients add` [#max-recipients-add]

allow sending to this chat; the first add turns the list on

**Changes something only on this computer.**

```sh
max recipients add <chat>
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | a chat: its id, or part of its title. |

**Returns:** recipient change added — id, title, added; every field: max commands info recipients add

**Example:** `max personal recipients add "Book club"`

### `max recipients remove` [#max-recipients-remove]

stop allowing this chat; the list stays on

**Changes something only on this computer.**

```sh
max recipients remove <chat>
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | chat id, or the title as the list shows it. |

**Returns:** recipient change removed — id, title, removed; every field: max commands info recipients remove

**Example:** `max personal recipients remove "Book club"`

### `max recipients clear` [#max-recipients-clear]

delete the list, which turns it off: this profile may send to any chat again

**Changes something only on this computer.**

```sh
max recipients clear
```

**Returns:** recipient change off — off, was_on; every field: max commands info recipients clear

**Example:** `max personal recipients clear`

## `max sends` [#max-sends]

every attempt to send from this profile — never the text

### `max sends list` [#max-sends-list]

attempts to send, newest first: sent, refused, failed, or not known

```sh
max sends list [query] [options]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | Purpose |
|---|---|
| `--limit <n>` | how many to show. |
| `--page <n>` | which page, starting at 1. |
| `--all` | every row, no paging. |

**Returns:** send attempt — at, profile, chat_id, outcome, kind, action, people, message_id, and 16 more; every field: max commands info sends list

**Example:** `max personal sends list --limit 10`

## `max inbox` [#max-inbox]

other people's unread messages in every chat; --new for what arrived since the last check

```sh
max inbox [query] [options]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | from when: date>2h, date>2026-10-01; the saved point stays put. |

| Option | Purpose |
|---|---|
| `--new` | what arrived since the last check, each message once — for scheduled runs. |
| `--limit <n>` | at most this many per chat, the newest. |
| `--all` | muted and archived chats too — left out unless they mention you or reply to you. |
| `--transcribe` | turn voice messages not heard yet into text — by the messenger where it can, else by a model on this machine; can take minutes. |
| `--model <model>` | which downloaded speech model hears them, with --transcribe; `models list` shows them. |

**Returns:** message summary — ref, chat_id, timestamp, sender_name, sender_is_me, outgoing, text, attachments, and 4 more; every field: max commands info inbox

**Next usually:** `max messages links <chat> <message>`, `max messages transcribe <chat> <message>`, `max stats messages evidence <message>`

**Example:** `max personal inbox --limit 10`

## `max review` [#max-review]

every message, yours too, in chats that changed since a point — for reviewing who owes what

```sh
max review [query] [options]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | where the last review ended and which chat: date>2h, chat:"Book club"; 3 days ago if no date. |

| Option | Purpose |
|---|---|
| `--unanswered [duration]` | only questions to you or a group's admins that nobody answered, asked at least this long ago — 4h, 1d; 24h if not given. |
| `--all` | muted and archived chats too — left out unless they mention you or reply to you. |
| `--transcribe` | turn voice messages not heard yet into text — by the messenger where it can, else by a model on this machine; can take minutes. |
| `--model <model>` | which downloaded speech model hears them, with --transcribe; `models list` shows them. |
| `--new` | what changed since the last `review --new`, a point per chat — for scheduled runs. |

**Returns:** message summary — ref, chat_id, timestamp, sender_name, sender_is_me, outgoing, text, attachments, and 4 more; every field: max commands info review

**Next usually:** `max messages links <chat> <message>`, `max messages transcribe <chat> <message>`, `max stats messages evidence <message>`

**Example:** `max personal review "date>2h"`

## `max replies` [#max-replies]

rules that answer messages for you, kept in a file of this profile

### `max replies add` [#max-replies-add]

add a rule with every default written out, off until you edit and enable it

**Changes something only on this computer.**

```sh
max replies add <id>
```

| Argument | | Meaning |
|---|---|---|
| `id` | required | lower-case letters, digits and -; unique in this profile. |

**Returns:** add a rule with every default written out, off until you edit and enable it

**Example:** `max personal replies add 1`

### `max replies on` [#max-replies-on]

enable one reply rule; its template must be ready

**Changes something only on this computer.**

```sh
max replies on <id>
```

| Argument | | Meaning |
|---|---|---|
| `id` | required | the rule's id. |

**Returns:** enable one reply rule; its template must be ready

**Example:** `max personal replies on 1`

### `max replies off` [#max-replies-off]

disable one reply rule

**Changes something only on this computer.**

```sh
max replies off <id>
```

| Argument | | Meaning |
|---|---|---|
| `id` | required | the rule's id. |

**Returns:** disable one reply rule

**Example:** `max personal replies off 1`

### `max replies edit` [#max-replies-edit]

change only the named fields of a reply rule; lists replace the whole list

**Changes something only on this computer.**

```sh
max replies edit <id> [options]
```

| Argument | | Meaning |
|---|---|---|
| `id` | required | the rule's id. |

| Option | Purpose |
|---|---|
| `--do <actions>` | actions: reply, task, or both, comma-separated. |
| `--kinds <kinds>` | chat kinds: dialog, group; comma-separated, empty for any. |
| `--allow-chats <ids>` | only these chat ids, comma-separated; empty for any. |
| `--deny-chats <ids>` | leave these chat ids out, comma-separated; empty clears. |
| `--words <words>` | match any of these whole words, comma-separated; empty clears. |
| `--question` | match only questions. |
| `--no-question` | do not require a question. |
| `--mentions-me` | require a mention of you or a reply to you. |
| `--no-mentions-me` | do not require a mention of you or a reply to you. |
| `--allow-people <ids>` | only these sender ids, comma-separated; empty for any. |
| `--deny-people <ids>` | leave these sender ids out, comma-separated; empty clears. |
| `--contacts-only` | match only contacts. |
| `--no-contacts-only` | do not require a contact. |
| `--template <text>` | the reply template. |
| `--template-mode <mode>` | legacy template mode: fill-only or may-reword; use ai blocks instead. |
| `--as-reply` | send as a reply to the matched message. |
| `--no-as-reply` | send without linking to the matched message. |
| `--per-chat <limit>` | at most this many per chat, such as 1/12h. |
| `--per-person <limit>` | at most this many per person, such as 1/1d. |
| `--outside <hours>` | answer outside this 24-hour window, such as 09:00-19:00. |
| `--days <days>` | days of the working window, such as mon-fri or sat,sun. |
| `--timezone <zone>` | the IANA timezone for the working window. |
| `--no-hours` | clear the working window. |

**Returns:** change only the named fields of a reply rule; lists replace the whole list

**Example:** `max personal replies edit 1`

### `max replies audience` [#max-replies-audience]

show the reply audience, who the rules may answer, or replace its named fields; a new file answers everyone a rule matches

**Changes something only on this computer.**

```sh
max replies audience [options]
```

| Option | Purpose |
|---|---|
| `--reply <mode>` | answer all or only listed senders and chats: all, listed. |
| `--allow-people <ids>` | replace allowed sender ids, comma-separated; empty clears. |
| `--allow-chats <ids>` | replace allowed chat ids, comma-separated; empty clears. |
| `--deny-people <ids>` | replace denied sender ids, comma-separated; empty clears; deny wins. |
| `--deny-chats <ids>` | replace denied chat ids, comma-separated; empty clears; deny wins. |

**Returns:** show the reply audience, who the rules may answer, or replace its named…

**Example:** `max personal replies audience`

### `max replies consents` [#max-replies-consents]

consent for reply models once per profile and endpoint, with chat opt-outs

#### `max replies consents show` [#max-replies-consents-show]

show the reply model consent and chat opt-outs; never calls a model

```sh
max replies consents show
```

**Returns:** show the reply model consent and chat opt-outs; never calls a model

**Example:** `max personal replies consents show`

#### `max replies consents grant` [#max-replies-consents-grant]

allow incoming message data to go to the configured reply model for this profile; chat opt-outs remain

**Changes something only on this computer.**

```sh
max replies consents grant
```

**Returns:** allow incoming message data to go to the configured reply model for this…

**Example:** `max personal replies consents grant`

#### `max replies consents revoke` [#max-replies-consents-revoke]

revoke the profile's reply model consent immediately; chat opt-outs remain

**Changes something only on this computer.**

```sh
max replies consents revoke
```

**Returns:** revoke the profile's reply model consent immediately; chat opt-outs remain

**Example:** `max personal replies consents revoke`

#### `max replies consents deny` [#max-replies-consents-deny]

keep this chat's incoming data away from the reply model

**Changes something only on this computer.**

```sh
max replies consents deny <chat>
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | the native chat id, used as written; never resolved over the network. |

**Returns:** keep this chat's incoming data away from the reply model

**Example:** `max personal replies consents deny Team`

#### `max replies consents allow` [#max-replies-consents-allow]

remove this chat's model opt-out; does not grant profile consent

**Changes something only on this computer.**

```sh
max replies consents allow <chat>
```

| Argument | | Meaning |
|---|---|---|
| `chat` | required | the native chat id, used as written; never resolved over the network. |

**Returns:** remove this chat's model opt-out; does not grant profile consent

**Example:** `max personal replies consents allow Team`

### `max replies test` [#max-replies-test]

what the rules would have answered in the stored messages, to whom and why — sends nothing, changes nothing, never connects

```sh
max replies test [rule] [options]
```

| Argument | | Meaning |
|---|---|---|
| `rule` | optional | only this rule, by its id; every rule in file order if not given. |

| Option | Purpose |
|---|---|
| `--since-time <time>` | from this ISO 8601 time, or 2h / 1d ago; 7d ago if not given. |
| `--ai` | call the configured reply model with stored message data; requires reply consent, otherwise uses fallback. |

**Returns:** what the rules would have answered in the stored messages, to whom and why —…

**Example:** `max personal replies test`

### `max replies pause` [#max-replies-pause]

stop every reply rule of this profile at once, a running serve too; resume undoes it

**Changes something only on this computer.**

```sh
max replies pause
```

**Returns:** stop every reply rule of this profile at once, a running serve too; resume…

**Example:** `max personal replies pause`

### `max replies resume` [#max-replies-resume]

let the reply rules answer again after pause

**Changes something only on this computer.**

```sh
max replies resume
```

**Returns:** let the reply rules answer again after pause

**Example:** `max personal replies resume`

### `max replies status` [#max-replies-status]

whether the rules may send, which are on, and who they may answer

```sh
max replies status
```

**Returns:** whether the rules may send, which are on, and who they may answer

**Example:** `max personal replies status`

## `max schedule` [#max-schedule]

run a max command or an agent later or on a timer (systemd, launchd, Task Scheduler); an agent cannot send

### `max schedule command` [#max-schedule-command]

run max <args…> on a timer — reads save what they read, so this is how a chat's history fills the store

**Changes something only on this computer.**

```sh
max schedule command <name> <args> [options]
```

| Argument | | Meaning |
|---|---|---|
| `name` | required | lowercase letters, digits and dashes. |
| `args` | required | the max command after its name, e.g. -- messages list <chat> --limit 50. |

| Option | Purpose |
|---|---|
| `--every <duration>` | repeat: 30m, 2h, 1d. |
| `--at <HH:MM>` | every day at this local time; 'mon 09:00' once a week, 'mon,fri 09:00' on several days (mon, tue, wed, thu, fri, sat, sun); repeat it for more times. |
| `--at-time <time>` | one run: 30m, 2d from now, or an ISO time; the schedule removes itself after it. |
| `--notify-on <when>` | desktop notice after a run (default failures for an agent that repeats with --every, else always). One of: `always`, `failures`, `never`. |
| `--deliver-to <route>` | also send the result, when --notify-on says so, by the owner's own tg or mail: telegram-bot:<profile>/<chat id or user:id>, or email:<profile>/<address>; repeat it for more. |

**Returns:** run max <args…> on a timer — reads save what they read, so this is how a…

**Example:** `max personal schedule command health --every 1h -- doctor`, `max personal schedule command morning-check --at 08:00 -- doctor`

### `max schedule agent` [#max-schedule-agent]

start an agent (claude or codex) with a prompt on a timer; it runs with MAX_READ_ONLY=1, so it reads and drafts and cannot send — its answer is kept and you are notified

**Changes something only on this computer.**

```sh
max schedule agent <name> <harness> <prompt> [options]
```

| Argument | | Meaning |
|---|---|---|
| `name` | required | lowercase letters, digits and dashes. |
| `harness` | required | the agent to start. One of: `claude`, `codex`. |
| `prompt` | required | what to do, e.g. "run the daily follow-up review: max skill show follow-ups". |

| Option | Purpose |
|---|---|
| `--model <model>` | the model it runs on: an alias such as sonnet, or a model id; "" for the harness's default (default sonnet for claude, codex's own for codex, or the config file's). |
| `--max-cost <usd>` | claude only: stop a run that costs more than this, in US dollars. |
| `--max-cost-per-day <usd>` | claude only: start no run for the rest of the day once its runs cost this much, in US dollars; 0 for no cap (default 5, or the config file's). |
| `--every <duration>` | repeat: 30m, 2h, 1d. |
| `--at <HH:MM>` | every day at this local time; 'mon 09:00' once a week, 'mon,fri 09:00' on several days (mon, tue, wed, thu, fri, sat, sun); repeat it for more times. |
| `--at-time <time>` | one run: 30m, 2d from now, or an ISO time; the schedule removes itself after it. |
| `--notify-on <when>` | desktop notice after a run (default failures for an agent that repeats with --every, else always). One of: `always`, `failures`, `never`. |
| `--deliver-to <route>` | also send the result, when --notify-on says so, by the owner's own tg or mail: telegram-bot:<profile>/<chat id or user:id>, or email:<profile>/<address>; repeat it for more. |

**Returns:** start an agent (claude or codex) with a prompt on a timer; it runs with…

**Example:** `max personal schedule agent review claude "review what came in overnight and draft replies" --at 08:30`, `max personal schedule agent triage codex "list what needs an answer today" --every 2h --max-cost 1`, `max personal schedule agent weekly claude "review the week's open threads" --at 09:00 --model opus`

### `max schedule list` [#max-schedule-list]

the schedules, when they run and how their last run went

```sh
max schedule list [query]
```

| Argument | | Meaning |
|---|---|---|
| `query` | optional | field:value terms that narrow the list — the fields are below. |

**Returns:** scheduled job — name, kind, when, last, paused, notify, deliver_to, spent_today_usd, and 2 more; every field: max commands info schedule list

**Example:** `max personal schedule list`, `max personal schedule list kind:agent`

### `max schedule run` [#max-schedule-run]

run a schedule now, as its timer would, and wait for it; a paused one runs too

**Changes something outside this computer: in MAX or in an external service.**

```sh
max schedule run <name> [options]
```

| Argument | | Meaning |
|---|---|---|
| `name` | required | the schedule's name, as `schedule list` shows it. |

| Option | Purpose |
|---|---|
| `--no-notify` | keep the result here: send it along none of its routes. |
| `--deliver-to <route>` | send it along only this one of its own routes; repeat it for more. |

**Returns:** run a schedule now, as its timer would, and wait for it; a paused one runs too

**Example:** `max personal schedule run health`

### `max schedule remove` [#max-schedule-remove]

stop a schedule and remove its timer; its past output stays

**Changes something only on this computer.**

```sh
max schedule remove <name>
```

| Argument | | Meaning |
|---|---|---|
| `name` | required | the schedule's name, as `schedule list` shows it. |

**Returns:** stop a schedule and remove its timer; its past output stays

**Example:** `max personal schedule remove health`

### `max schedule pause` [#max-schedule-pause]

take a schedule off its timer and keep it; run runs it, resume puts it back

**Changes something only on this computer.**

```sh
max schedule pause <name>
```

| Argument | | Meaning |
|---|---|---|
| `name` | required | the schedule's name, as `schedule list` shows it. |

**Returns:** take a schedule off its timer and keep it; run runs it, resume puts it back

**Example:** `max personal schedule pause health`

### `max schedule resume` [#max-schedule-resume]

put a paused schedule back on its timer

**Changes something only on this computer.**

```sh
max schedule resume <name>
```

| Argument | | Meaning |
|---|---|---|
| `name` | required | the schedule's name, as `schedule list` shows it. |

**Returns:** put a paused schedule back on its timer

**Example:** `max personal schedule resume health`

### `max schedule exec` [#max-schedule-exec]

what a timer runs, given the schedule's file; to run one by hand, use run

**Changes something outside this computer: in MAX or in an external service.**

```sh
max schedule exec <file>
```

| Argument | | Meaning |
|---|---|---|
| `file` | required | the schedule's schedule.json in the state folder, as the timer passes it. |

**Returns:** what a timer runs, given the schedule's file; to run one by hand, use run

**Example:** `max personal schedule exec ~/.local/share/max-cli/schedules/health/schedule.json`

## `max guide` [#max-guide]

scenarios: the commands for a common task, in order, and why each

```sh
max guide [name]
```

| Argument | | Meaning |
|---|---|---|
| `name` | optional | one scenario; without it, the list. |

**Returns:** scenarios: the commands for a common task, in order, and why each

**Example:** `max guide`, `max guide agent-on-a-timer --json`

## Exit codes [#exit-codes]

Scripts should branch on the code, not the message: wording may change, codes remain stable.

| Code | Meaning |
|---|---|
| `0` | Success |
| `2` | `validation_error` |
| `3` | `configuration_error` |
| `4` | `authentication_error` |
| `5` | `permission_error` |
| `6` | `not_found` |
| `7` | `confirmation_required` |
| `8` | `rate_limited` |
| `9` | `timeout` |
| `10` | `network_error` |
| `11` | `provider_error` |
| `12` | `provider_unavailable` |
| `13` | `invalid_response` |
| `14` | `outcome_unknown` |
| `15` | `conflict` |
| `130` | `cancelled` |
| `1` | Any other error |

`0`, and only `0`, means the operation succeeded. `14` — `outcome_unknown` — means the message **may** have been sent: its outcome is neither confirmed nor failed. Retry only with the same `--operation-id`.
