> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ada.cx/llms.txt.

# session-tracking

Log what an AI assistant tries to do with adacli, in plain English. Each command that the assistant runs after that carries the same session ID, so Ada can connect the intent to the commands. For how AI assistants use adacli, see [AI assistants](/adacli/use-with-an-ai-assistant).

## Commands

| Command                   | What it does                                                              |
| ------------------------- | ------------------------------------------------------------------------- |
| `session-tracking start`  | Starts a session with its first intent, and prints the session ID.        |
| `session-tracking update` | Records why the last intent ended or changed, and an optional new intent. |

## Examples

Start a session, and print only its ID:

```bash
adacli acme session-tracking start --intent "Fix the refund playbook" --quiet
```

Add the session ID to each command after that:

```bash
adacli acme playbooks list --session k3x9q2mf
```

Record that the intent changed:

```bash
adacli acme session-tracking update --session k3x9q2mf --reason refined \
  --intent "Fix the refund playbook for EU customers only"
```

Record that the intent is done:

```bash
adacli acme session-tracking update --session k3x9q2mf --reason completed
```

## Details

* The reasons are `completed`, `refined`, `new-task`, `blocked`, `abandoned`, and `handed-to-user`.
* An intent has a maximum of 200 characters. Notes have a maximum of 500 characters.
* adacli sends the intent and the notes to Ada as usage data. Do not put credentials or customer data in them.
* adacli refuses text that looks like a credential, and exits with code `2`. It sends none of the refused text.
* `--session` works on every command, in any position on the line.
* adacli does not store the session ID. Each assistant keeps its own ID. A command with an ID that is not valid runs as usual, and adacli shows a warning.

For every option of a command, run it with `--help`, for example `adacli acme session-tracking update --help`.

## Related commands

* [`skills`](/adacli/commands/skills): install the adacli skills for your AI assistant.
* [`agent-context`](/adacli/commands/agent-context): get the whole command list as JSON.

---

Have any questions? Contact your Ada team, or email us at [](mailto:help@ada.cx?subject=Help%20Docs%20inquiry).