Skip to content

AI Assistant ​

Mochi's AI works on what Mochi already knows: your tasks, the scripts behind them, and their run history. So it answers about your projects, not in generalities. It's optional, and you choose where requests go.

Set it up ​

Pick a provider in Settings → AI → Provider, or from a terminal:

OptionWhere requests go
Mochi's managed AIIncluded with Pro, or with a credit pack. Nothing to configure. See AI credits
Your own keyOpenAI, Anthropic, Gemini, or any compatible endpoint
A local modelOllama, on your machine. Nothing leaves it
sh
mochi ai config set provider mochi-gateway                       # managed
mochi ai config set provider anthropic --model <model-name>      # your own key
mochi ai config set provider ollama --model <model-name>         # local
mochi ai config test                                             # check it works

Keys are stored in an encrypted vault, never in a plain config file. See AI providers for every option.

Don't want AI at all? Turn off Enable AI features in Settings → AI → Features, and every AI button, menu item and prompt disappears from the app.

Diagnose a failed run ​

Open a failed run and choose Diagnose. Mochi reads the output together with the task that produced it, and tells you the likely cause, the lines that show it, and what to try.

A diagnosis of a failed test run: the cause, the two log lines that show it, and the steps to try

sh
mochi ai diagnose <run-id>

Explain a task ​

Before you run something unfamiliar, choose Explain on its page. You get what it does, step by step, what it needs, and anything to watch out for, such as a step that deletes files or deploys.

sh
mochi ai explain deploy my-project/infra:prod

Describe and document ​

A task list is easier to use when every task says what it does. Mochi writes the missing one-line descriptions, one at a time with Generate description, or for a whole workspace:

sh
mochi ai document my-project            # preview
mochi ai document my-project --write    # save them

Insights ​

Analyze on the Insights page, or mochi ai insights, turns your run history into a short list of what to fix first: flaky tasks, slow ones, and failures that keep coming back.

Chat ​

Ask questions on the Home page, or with mochi ai chat. The agent can look through your workspaces, tasks and logs to answer, and, with your approval, run tasks and edit files.

You decide how far it can go, from look-ups only to running commands, and how often it asks, in Settings → AI → Agent. By default it asks before writing a file or running a command, and it never runs a task from a workspace you haven't trusted without asking.

Next ​