---
title: "It's customizable · Tempo AI Platform docs"
description: "How a persona names an agent's harness, model, effort and instructions once, so every agent started from it, yours or your team's, works the same way."
url: "https://gateway.tempo-dev.workers.dev/docs/guides/personas"
---

> Every page of the Tempo AI Platform is Markdown at its URL with .md, or with Accept: text/markdown. The index of every page is https://gateway.tempo-dev.workers.dev/llms.txt, the API https://gateway.tempo-dev.workers.dev/openapi.json and the MCP server https://gateway.tempo-dev.workers.dev/mcp.

# It's customizable

A persona is a named agent configuration: a harness, a model, a thinking effort and instructions. Save one, and every agent started from it, by you or by your team, runs on that harness and model and reads those instructions on top of the harness's own prompt, so you never retype the same setup.

[Get your Tempo Key](https://gateway.tempo-dev.workers.dev/key.md) · [Agents reference](https://gateway.tempo-dev.workers.dev/docs/agents.md)

## Architecture

```text
POST /v1/personas/set  {name: "support", harness, model, thinking,
                        instructions, team?}
  -> a row in D1, yours alone or your team's
       |
/v1/agents/support/turns, ssh support@..., POST /v1/agents {persona}
  -> no agent named support yet: make one from the persona, with
     its harness, model and thinking unless the request names them
       |
every model call of that lead agent, through the gateway
  Codex's or Claude Code's own system prompt, unchanged
  + # AGENTS.md instructions for persona support
    <INSTRUCTIONS> the persona's instructions </INSTRUCTIONS>
  + the conversation
```

A persona is a row; an agent takes its harness, model and effort when it is made, and its instructions on every model call.

## What a persona holds

- **name**\
  1 to 64 lowercase letters, digits, `_`, `.` or `-`, starting with a letter or digit. It is also the name the agents made from it answer to, so it cannot start with `agt_`, which agent ids use.
- **harness, model, thinking**\
  `codex` or `claude`, a gateway model that calls tools (`GET /v1/models` lists them), and an effort from `none` to `max`. Each is optional and falls back to an agent's defaults.
- **instructions**\
  Up to 32,768 characters, written the way you would write an AGENTS.md: who the agent answers for, what it may do and what it must hand to a person.
- **description**\
  Up to 500 characters, for you and your team when you list personas.

Saving a persona again under the same name replaces it.

## How an agent is made from one

1. A turn to `/v1/agents/support/turns` finds the key's agent named `support`. When there is none and a persona of that name is yours or your team's, it makes the agent from the persona and runs the turn, so the first question needs no setup call. `ssh support@tempo.nanocode.xyz` and `scp` to it make the agent the same way.
2. `POST /v1/agents` with `persona` does the same explicitly: the agent takes the persona's harness, model and thinking unless the request sets them.
3. A persona of your own wins over a team's of the same name. When several of your teams have one, the call answers 409 and asks you to name the team.
4. An agent keeps the harness, model and thinking it was made with, so changing them in a persona applies to agents made after the change. Its instructions are different: they reach agents that are already running (below).

## How the instructions reach the model

The harness's system prompt stays Codex's or Claude Code's own. On every model call of the lead agent, the gateway adds the persona's instructions after it as `# AGENTS.md instructions for persona support`, the way both harnesses add a repository's AGENTS.md: to the Responses `instructions` for Codex and to the Messages `system` for Claude. The instructions are read again at most 30 seconds old, so an edit reaches agents that are already running. Subagents the lead spawns do not get them; the lead tells them what they need.

## Yours or your team's

Without `team` a persona is yours alone. With the address of a team you are in, it is the team's: any member can save one and start agents from it, and only its creator or a team admin changes or deletes it. Deleting a team deletes its personas.

## A customer support agent

Put the help pages where the agent can read them, in key-value storage under the app its agents use:

**a help page**

```sh
curl https://gateway.tempo-dev.workers.dev/v1/kv/set \
  -H "authorization: Bearer $TEMPO_KEY" \
  -H gateway-app:default \
  -H content-type:application/json \
  -d '{"key":"help/returns","value":"Broken on arrival: we send a new one free within 30 days. Reply with a photo of the damage."}'
```

Then save the persona and ask it. Its instructions send it to `help/` through its `kv_get` and `kv_list` tools, and refunds it may not grant go to `tickets/`, where a person reads them with `kv/list`.

**1. Save the persona**

```sh
curl https://gateway.tempo-dev.workers.dev/v1/personas/set \
  -H "authorization: Bearer $TEMPO_KEY" \
  -H content-type:application/json \
  -d '{
    "name": "support",
    "description": "Acme customer support",
    "harness": "claude",
    "model": "vercel/anthropic/claude-sonnet-5.5",
    "thinking": "low",
    "instructions": "Answer for Acme support from the pages in kv under help/, and link the one you used. Never promise a refund: write the case to tickets/ for a person."
  }'
```

**2. Ask it**

```sh
curl https://gateway.tempo-dev.workers.dev/v1/agents/support/turns \
  -H "authorization: Bearer $TEMPO_KEY" \
  -H content-type:application/json \
  -H accept:text/event-stream \
  -d '{"prompt":"Order 1042 arrived broken. What can I do?"}'
```

**Over SSH**

```sh
ssh support@tempo.nanocode.xyz
```

**For your team**

```sh
curl https://gateway.tempo-dev.workers.dev/v1/personas/set \
  -H "authorization: Bearer $TEMPO_KEY" \
  -H content-type:application/json \
  -d '{"name":"support","team":"'$TEAM'","harness":"claude","instructions":"Answer for Acme support from the pages in kv under help/, and link the one you used. Never promise a refund: write the case to tickets/ for a person."}'
```

## What it costs

| Tool            | What it does                                    | Price   |
| --------------- | ----------------------------------------------- | ------- |
| personas_set    | Save a persona, or replace one of the same name | $0.0005 |
| personas_list   | Your personas, then those of your teams         | $0.0005 |
| personas_get    | One persona of yours or of your teams           | $0.0001 |
| personas_delete | Delete a persona                                | $0.0001 |

Each is also a route, `POST /v1/personas/set` and so on. An agent made from a persona pays for its own work like any other agent.

## Go deeper

- [Agents](https://gateway.tempo-dev.workers.dev/docs/agents.md): the agent and persona routes.
- [It's multiplayer](https://gateway.tempo-dev.workers.dev/docs/guides/multiplayer.md#personas): team personas, and the team agents members co-steer.
- [Key-value storage](https://gateway.tempo-dev.workers.dev/docs/memory.md#kv): where the support agent's help pages and tickets live.
- [How a turn runs](https://gateway.tempo-dev.workers.dev/docs/guides/swarms.md): what an agent does with a prompt.

[<- It's context efficient](https://gateway.tempo-dev.workers.dev/docs/guides/code-mode.md) · [It wakes up on its own ->](https://gateway.tempo-dev.workers.dev/docs/guides/triggers.md)
