---
title: "Agent definitions"
seo:
  description: "Inspect and manage reusable agent definitions."
---

Inspect and manage reusable agent definitions.

## `agent list`

List built-in and installed agent definitions. Invalid catalog files are reported and are not used.

```
iso agent list
```

## `agent inspect`

Show one definition without launching it, resolving a credential, or making a network request.

```
iso agent inspect <id> [--json]
```

## `agent add`

Validate a `.json` or `.jsonc` definition, show the canonical copy, and install it under `<data_dir>/agents/<id>.json`. Repository files are not discovered or approved automatically. `-y`/`--yes` confirms installation; replacement also requires `--replace`.

```
iso agent add ./repo-helper.jsonc
iso agent add ./claude-review.jsonc --yes
```

A definition selects an image or profile and a reviewed adapter (`none`, `claude`, or `codex`). It cannot grant mounts, credentials, host commands, or network destinations.

## `agent update`

Update the coding agents (Claude Code and Codex) installed inside a running VM
to their latest versions, without rebuilding the golden image. Both agents are
installed "latest at build time" during `iso setup`, so they can go stale in
long-running VMs and in new VMs created from an old image. To refresh the image
itself instead, rebuild it with `iso setup --rebuild`.

```
iso agent update [NAME] [--claude] [--codex] [--check] [-y]
```

| Argument / Flag | Description |
|-----------------|-------------|
| `NAME` | Instance name (required if multiple instances exist) |
| `--claude` | Update Claude Code |
| `--codex` | Update Codex |
| `--check` | Only report installed vs. latest versions — change nothing |
| `-y`, `--yes` | Skip the confirmation prompt |

With no agent flag, both agents are updated; passing both `--claude` and
`--codex` is the same as passing neither. The VM must be running.

`iso agent update --codex` re-runs OpenAI's native installer as the guest
user, including when migrating an older direct-binary installation. The full
package stays in the user's home directory, with `/usr/local/bin/codex` linked
to `~/.local/bin/codex`. The guest user can also run `codex update` directly
without sudo. Claude Code already auto-updates in the background;
`iso agent update --claude` runs `claude update` now, synchronously — a
convenience rather than a fix.

`--check` reports each agent's installed version and, for Codex, the latest
release on GitHub, changing nothing:

```
$ iso agent update my-project --check
Claude Code  1.2.3            up to date (auto-updates in background)
Codex        0.4.1 → 0.5.0    update available — run: iso agent update --codex
```

```
iso agent update                 # both agents, resolved instance
iso agent update my-project      # both agents, instance "my-project"
iso agent update --codex         # Codex only
iso agent update --check         # report versions, change nothing
```
