---
url: https://docs.mochiexec.io/reference/cli/mochi_ai_insights.md
description: Recommend what to fix, from run history
---

# mochi ai insights

Recommend what to fix, from run history

## Synopsis

Reads aggregate run statistics — success rates, run counts, average durations — and returns prioritized recommendations about reliability and performance. Defaults to every workspace; pass a workspace name to scope it.

```shell
mochi ai insights [workspace] [flags]
```

## Options

| Flag | Type | Description |
|------|------|-------------|
| `-h, --help` |  | help for insights |
| `-n, --limit` | `int` | Maximum number of recommendations (default 5) |
| `-o, --output` | `string` | Output format: text or json (default "text") |

## Options inherited from parent commands

| Flag | Type | Description |
|------|------|-------------|
| `-L, --log-level` | `string` | Log verbosity level (debug, info, fatal) (default "info") |
| `--sync` |  | Sync flow cache and workspaces |

## See also

* [mochi ai](mochi_ai.md) — Describe, explain, and diagnose executables with AI
