Skip to content

mochi ai chat ​

Ask AI about your workspaces, executables, and runs

Synopsis ​

Asks your AI provider a question. It can look up your workspaces, executables, and run logs, and with your approval edit files or run tasks; mochi ai config set tools sets how far it may go.

In a terminal, Mochi asks before anything that needs approval. With --output json, it stops instead and returns a pending result: continue with --resume-messages (the result's messages) and one --resume-decision per pending call.

shell
mochi ai chat [prompt] [flags]

Options ​

FlagTypeDescription
-h, --helphelp for chat
-o, --outputstringOutput format: text, json, or ndjson (json with a line per progress event) (default "text")
--resume-decisionstringArrayApprove or deny a pending call, as <toolCallId>=approve|deny (repeatable)
--resume-messagesstringContinue a paused answer from this messages file, or - for stdin

Options inherited from parent commands ​

FlagTypeDescription
-L, --log-levelstringLog verbosity level (debug, info, fatal) (default "info")
--syncSync flow cache and workspaces

See also ​

  • mochi ai — Describe, explain, and diagnose executables with AI