# Compare: Diagram element for AI agents

> Two options in columns with up to five comparisons in the middle, the better value in butter; rows are set down on their cues.

Canonical page: https://agentframes.ai/elements/mise/compare/
Markdown: https://agentframes.ai/elements/mise/compare.md

## Overview

- Name: Compare (`compare`), an element: one HyperFrames block per size
- Part of: the [Mise](https://agentframes.ai/packs/mise.md) pack (45 of 53). Available only through the All-access subscription.
- Category: Diagram
- Purpose: Two options in columns with up to five comparisons in the middle, the better value in butter; rows are set down on their cues.
- Pack: [Mise](https://agentframes.ai/packs/mise.md), included in All-access (from $14/month billed annually ($168/year), or $19 monthly)
- Subscribe: POST https://agentframes.ai/api/checkout/subscribe with interval=month or interval=year (optional currency=USD|GBP|EUR|AUD|CAD; 303 redirect to Stripe checkout; a human pays there). Then download any pack with the subscriber key: https://agentframes.ai/account.md
- Aspects: 16:9 (native), 9:16 (native), 4:5 (native), 1:1 (native)
- Canvases: works on none; avoid none
- Typical duration: 5s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/mise/compare.mp4
- Poster: https://agentframes.ai/media/mise/compare.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Mise pack. Add a `compare` beat to plan.json on a `k` canvas with slots `kicker`, `title`, `a`, `b`, `rows` and `cues` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `kicker` | string | kicker | {"type":"string","minLength":0,"maxLength":14} |  |
| `title` | string | title | {"type":"string","minLength":1,"maxLength":32} | Butter vs *oil* |
| `a` | string | a | {"type":"string","minLength":1,"maxLength":8} | Butter |
| `b` | string | b | {"type":"string","minLength":1,"maxLength":8} | Oil |
| `rows` | string | rows | JSON string. {"type":"array","minItems":2,"maxItems":5,"items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":14},"a":{"type":"string","minLength":1,"maxLength":5},"b":{"type":"string","minLength":1,"maxLength":5},"lower":{"type":"boolean"}},"required":["name","a","b"]}} | [{"name":"Flavour","a":"9","b":"6"},{"name":"Smoke pt","a":"5","b":"8"},{"name":"Browning","a":"9","b":"7"},{"name":"Cost","a":"7","b":"4","lower":true}] |
| `cues` | string | cues | JSON string. {"type":"array","items":{"type":"number","minimum":0,"maximum":30},"maxItems":14} | [] |

## What your agent can change

**Compare**. Native 1920×1080, 5s at 30fps. A full-frame card on the kitchen tiles.

Two options in columns with up to five comparisons in the middle, the better value in butter; rows are set down on their cues.

**Motion.** Boards and pills are set down on the table: up from below, 0.94x, a soft settle (no clip; words are never cut).
**Why it moves.** clarity: the matchup in numbers.

### Mount

Copy every manifest file into your project (plus `af-mise-runtime`). Mount with a unique host id, `data-composition-id="af-mise-compare-16x9"`,
`data-composition-src="compositions/af-mise-compare-16x9.html"`, `data-duration` and `data-variable-values`. A longer `data-duration` than 5s
extends the hold (the exit moves to the end of the mount). Use the variant whose size matches your project: each is laid out natively, never scaled.

### Content slots

Nested slots are JSON strings. Every slot is checked against `constraints.json` and measured against the layout before anything
draws; the block stops with a message naming the slot and the fix (it never truncates or shrinks text).

- `kicker`: {"type":"string","minLength":0,"maxLength":14}
- `title` (required): {"type":"string","minLength":1,"maxLength":32}
- `a` (required): {"type":"string","minLength":1,"maxLength":8}
- `b` (required): {"type":"string","minLength":1,"maxLength":8}
- `rows` (required): {"type":"array","minItems":2,"maxItems":5,"items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":14},"a":{"type":"string","minLength":1,"maxLength":5},"b":{"type":"string","minLength":1,"maxLength":5},"lower":{"type":"boolean"}},"required":["name","a","b"]}}
- `cues`: {"type":"array","items":{"type":"number","minimum":0,"maximum":30},"maxItems":14}

- `lower: true` marks a row where lower is better. `cues`: one block-relative time per row (from your transcript); leave it empty to space them 0.25 s apart.

### Brand and layout

Brand variables (defaults from `brand.json`): `colourway`, `accent`, `creator`, `handle`, `channel`, `tagline`, `monogram`, `avatar`, `ctaFollow`, `ctaLink`, `ctaCode`. Layout: `exit` (clear or hold).

### Example

```json
{
  "kicker": "",
  "title": "Butter vs *oil*",
  "a": "Butter",
  "b": "Oil",
  "rows": "[{\"name\":\"Flavour\",\"a\":\"9\",\"b\":\"6\"},{\"name\":\"Smoke pt\",\"a\":\"5\",\"b\":\"8\"},{\"name\":\"Browning\",\"a\":\"9\",\"b\":\"7\"},{\"name\":\"Cost\",\"a\":\"7\",\"b\":\"4\",\"lower\":true}]",
  "cues": "[]"
}
```

## FAQ

### What can my AI agent change in Compare?

Your agent fills the `kicker`, `title`, `a`, `b`, `rows` and `cues` slots through the block's data-variable-values (or the starter project's variables). Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Mise look.

### Which aspect ratios does Compare support?

Compare is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 5s.

### How do I get Compare?

Compare is included in the Mise pack, which is part of the AgentFrames All-access subscription along with 52 other templates in this pack and every other pack on the store. You get the full source, the editing contracts and the agent instructions.

## More in Mise

- [Top Five (numbered rows)](https://agentframes.ai/elements/mise/top-five.md): Up to five rows under a butter title bar on a board, each set down on its cue.
- [Cook Timeline](https://agentframes.ai/elements/mise/cook-timeline.md): The recipe as a line from 0 to its length with steps dropped on their minutes (prep, cook, rest, serve), each on its cue.
- [Method Steps](https://agentframes.ai/elements/mise/method-steps.md): Up to four numbered method boards, side by side in 16:9 and stacked in the other sizes, each on its cue.
- [Ranking Board](https://agentframes.ai/elements/mise/ranking.md): Up to six ranked rows (position, name, two columns such as time and cost), the pick in butter, each set down on its cue.

## Community

Coming soon.
