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

# agent-context

Print a JSON description of the whole adacli command set, for an AI assistant. adacli builds it from its own commands, so it matches the release you run. `agent-context` acts on adacli, so run it without an instance handle: `adacli agent-context`. For how AI assistants use adacli, see [AI assistants](/adacli/use-with-an-ai-assistant).

## Commands

| Command         | What it does                                                                                         |
| --------------- | ---------------------------------------------------------------------------------------------------- |
| `agent-context` | Prints every command, its options, the global options, the exit codes, and the error format as JSON. |

## Examples

Save the description to a file for your AI assistant:

```bash
adacli agent-context > adacli-context.json
```

Count the commands:

```bash
adacli agent-context | jq '.commands | length'
```

Show the exit codes:

```bash
adacli agent-context | jq '.exitCodes'
```

## Details

* The JSON has these top-level fields: `schema_version`, `version`, `usage`, `globalFlags`, `exitCodes`, `errorContract`, `envVars`, `guidance`, `commands`, and `removed`.
* Each item in `commands` has its `path`, `description`, `requiresInstance`, `args`, and `options`.
* `removed` lists the commands and options that a release removed, with the release and the replacement.

For every option, run `adacli agent-context --help`.

## Related commands

* [`docs`](/adacli/commands/docs): print the user guide.
* [`session-tracking`](/adacli/commands/session-tracking): log the intent of an AI assistant.

---

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