HaughtAI
HaughtAI

Compose

Personas

The file format, the identity, and what belongs in a persona.

Anatomy of a persona

A persona is one identity plus the skills it carries and the Connectors it can reach. Everything it can do comes from one of those three places.

FieldWhat it does
nameWhat it is called. Shown wherever a persona is listed.
identityThe instructions. Sent as the system message. May be empty, and is the single most important field.
emojiA visual hint. Omit it rather than sending a null.
sourceIDA label from the app that exported the file. It is not identity, and it is not an account.
skillsThe procedures this persona follows. Instructions, not code.
connectionsThe addresses of the servers it may call tools on. Addresses only — adding one is a step in HaughtStudio.
builtInToolsThe studio's own tools, by name. A closed list, below.

A persona file records the addresses of the servers it expects. It does not install them, carry their keys, or prove they answer. Connecting each one is a step in HaughtStudio — see Connectors in HaughtStudio.

Writing the identity

The identity becomes the system message, so it is read on every turn. That has two consequences: keep it short, and write it as an instruction rather than a description.

Say what the job is, not who the character is

A biography spends tokens on every turn and tells the model very little about what to do. State the role, the constraints, and the shape of a good answer:

You are a research assistant. Answer in prose, cite the source of
every factual claim, and say plainly when you could not find one.
Never invent a citation. If the answer is a number, give the unit.

Do not restate the skills

The identity sets the tone and the standing rules. Procedures belong in skills, which are only opened when the model asks for them. An identity that repeats every skill makes every turn as expensive as the whole persona.

Decide what it does when it cannot

The most common failure in a persona is not a wrong answer — it is a confident one. Say what should happen when a Connector is unavailable, a source is missing, or the request is out of scope. A sentence here is worth more than another paragraph of capability.

One persona, one job

When a persona starts needing a second set of rules for a different kind of task, that is two personas. Splitting them keeps each identity short, keeps the skill list readable, and keeps the Connector list under its limit.

The file

A persona exports as a UTF-8 JSON file with the extension .hspersona. The gate is the format inside the bytes, never the extension — a renamed .json reads the same.

{
  "format": "haughtstudio.persona",
  "version": 1,
  "exportedAt": "2026-10-04T09:12:00Z",
  "app": "HaughtStudio",
  "personas": [
    {
      "name": "Research desk",
      "emoji": "🔬",
      "identity": "You are a research assistant. Answer in prose, cite the source of every factual claim, and say plainly when you could not find one.",
      "sourceID": "8C2F1E4A-1B3D-4E5F-9A7B-2C4D6E8F0A1B",
      "skills": [
        {
          "id": "3U729O",
          "name": "Source check",
          "description": "Use before stating any fact you have not already verified.",
          "definition": "# Source check\n\n1. Name the claim you are about to make.\n2. Find the primary source.\n3. Quote the sentence that supports it.\n4. If there is no primary source, say so and stop.\n"
        }
      ],
      "connections": [
        {
          "name": "HaughtSearch",
          "url": "https://api.haughtai.com/mcp/83edf476-c55f-4361-94d4-d1e574156954"
        }
      ],
      "builtInTools": ["web_fetch"]
    }
  ]
}

The envelope

KeyRequiredRules
formatYesExactly haughtstudio.persona.
versionYesThe integer 1. A higher number is refused rather than guessed at.
personasYesAn array, even when there is only one, and never empty.
exportedAtNoProvenance only. Not checked against anything.
appNoProvenance only.
signatureNoPresent only on a signed file. See Signing.

Keys you do not recognise should be ignored, not refused. Write the three arrays even when they are empty.

The smallest valid file

{
  "format": "haughtstudio.persona",
  "version": 1,
  "personas": [
    {
      "name": "Ada",
      "identity": ""
    }
  ]
}

An empty identity is legal, and it means the model answers with no instructions beyond the studio's own. It is rarely what you want, but it is a useful starting point when you are testing whether a Connector works.

Limits

These are checked when a file is read. Exceeding a per-persona limit skips that one persona rather than failing the whole file, so a tall export with one bad record still imports the rest.

LimitValue
Personas in one file200
Skills on one persona200
Connectors on one persona10
Characters in one identity or skill definition200000

Ten Connectors is the limit worth planning around: it is low enough that a persona reaching for everything at once will hit it, and a persona that needs more than ten is usually two personas. See tool names for what happens when several are attached at once.

Signing an export

Signing does not encrypt anything and does not change what the persona can do. It records which account first published a particular file, so a recipient can ask whose it is.

How the digest is taken

  1. Parse the JSON. The top level must be an object.
  2. Remove the top-level signature key.
  3. Re-serialise canonically: keys sorted, no whitespace, UTF-8 with non-ASCII characters written literally.
  4. Take the SHA-256 of those bytes, as lower-case hex.

Formatting therefore does not matter. Pretty-printed and minified versions of the same persona have the same digest, and adding a signature block does not change it.

The signature block

"signature": {
  "algorithm": "sha256",
  "hash": "b217c89bd9ad635b4be11731c9a36f912020f3d1eefca015e0e1013997a06f51",
  "registered": true,
  "signedAt": "2026-10-04T09:12:00Z"
}

Any algorithm other than sha256 is read as unsigned rather than broken. The same is true of a malformed block: the file still imports, it simply is not signed.

Registering the digest

A signed file's digest can be registered to your account, which is what makes "whose file is this?" answerable later. Registration is one POST with the file as the file part of a multipart body and your account key as a bearer token. The answer is the digest and your handle.

  • A digest can be registered once. A second account gets a refusal.
  • The same account registering the same file again is a no-op.
  • Nothing in the file is stored — only the digest and the fact that you claimed it.