---
title: AgentSpec
description: "A resolved spec: the model it will use and the command prompt runs."
---

A resolved spec: the model it will use and the command `prompt` runs.

## Properties

### agent

```ts
agent: string;
```

`"claude-code"` or `"codex"`.

***

### cliVersion?

```ts
optional cliVersion?: string;
```

The pinned CLI version, or `null` for the registry's latest at build time.

***

### headlessCommand

```ts
headlessCommand: string;
```

The exact command `prompt` runs, with `<TASK>` where the quoted task goes.

***

### model

```ts
model: string;
```

The model this spec resolves to: the override, or the profile's default.

## Provenance

This page is generated from `bindings/microvms-js/index.d.ts` by TypeDoc 0.28.20 and typedoc-plugin-markdown 4.13.1, run from `site/scripts/gen-reference.mjs` on every `pnpm run sync`, so an edit made here is overwritten by the next run.

To change the page, change the doc comment in the binding's Rust source, then regenerate the declarations with `mise run dts`. `mise run dts:check` fails when the committed file no longer matches the source.