> ## Documentation Index
> Fetch the complete documentation index at: https://doc.entelligence.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent Insights and Wrapped from the CLI

> Index and analyze supported coding-agent sessions, preview and schedule sync, and create Entelligence Wrapped.

Agent Insights supports local Claude Code, Codex, and Cursor session data discovered by the installed CLI. Exact source paths and flags can vary by version.

## Local collection workflow

Use the explicit workflow when you want to inspect each stage:

```bash theme={null}
entelligence insights setup
entelligence insights index --source local
entelligence insights analyze
entelligence insights sync --dry-run
entelligence insights sync
```

1. `setup` prepares the local Agent Insights configuration.
2. `index --source local` discovers and indexes supported local session data.
3. `analyze` processes the indexed data into the metrics supported by the installed version.
4. `sync --dry-run` previews synchronization without uploading.
5. `sync` sends the prepared Agent Insights data to the workspace.

Use `entelligence insights --agent` for the combined agent workflow described by the CLI:

```bash theme={null}
entelligence insights --agent
```

Install or update a recurring sync time:

```bash theme={null}
entelligence insights schedule --at 09:00
```

<Note>
  The standard workflow synchronizes structured session and task metrics. Raw transcript upload is a separate opt-in mode where supported. Review `entelligence insights sync --help` and your organization's analytics policy before enabling it.
</Note>

## All Insights commands

| Command                           | Purpose                                                        |
| --------------------------------- | -------------------------------------------------------------- |
| `entelligence insights --agent`   | Run the combined local-agent collection workflow               |
| `entelligence insights sync`      | Synchronize prepared Agent Insights data                       |
| `entelligence insights schedule`  | Manage recurring synchronization                               |
| `entelligence insights me`        | Show the signed-in member's Insights summary                   |
| `entelligence insights index`     | Build or update the supported session index                    |
| `entelligence insights score`     | Run the scoring entry point supported by the installed version |
| `entelligence insights analyze`   | Analyze indexed session data                                   |
| `entelligence insights digest`    | Generate the supported Insights digest                         |
| `entelligence insights refresh`   | Refresh Insights state                                         |
| `entelligence insights serve`     | Start the local Insights service where supported               |
| `entelligence insights dashboard` | Open or serve the Insights dashboard where supported           |
| `entelligence insights setup`     | Prepare local Insights collection                              |

Run `entelligence insights <subcommand> --help` for required arguments and version-specific flags.

## Wrapped

```bash theme={null}
entelligence wrapped
entelligence wrapped --days 90 --force
entelligence wrapped --print
```

Use `entelligence insights me --days 30` for a recent terminal summary.
