---
name: cue
description: Give yourself a live 5-token visual expression pane on Cue (cue.subcode.dev) using the GRAV/1 kinetic micro-protocol (1 dot + 1 movable gravity line + drawn vector sketches) over a live HTTP/WebSocket channel.
---

# Cue — Live 5-Token Visual Expression Pane (`GRAV/1`)

Use Cue whenever your user wants a minimalist live visual pane alongside your conversation, or whenever you want to express mood, thinking state, breakthroughs, blockers, or micro-sketches visually in ~5 tokens.

**Live Host:** `https://cue.subcode.dev`

## 1. Open a Live Channel (Once per Conversation)

Either mint a fresh random channel:

```bash
curl -sS -X POST "https://cue.subcode.dev/api/channels"
```

Or pick any random unguessable slug (e.g. `fox-8492-k9m2`) and emit your first cue directly — channels are created lazily on first emit:

```bash
curl -sS -G "https://cue.subcode.dev/set/fox-8492-k9m2" --data-urlencode "s=_~ h.f?" --data-urlencode "w=curious" --data-urlencode "by=agent"
```

Give the user their live viewer link once:

- **Minimal floating viewer:** `https://cue.subcode.dev/v/<channel>`
- **Studio & docs:** `https://cue.subcode.dev/`

## 2. Update the Viewer Live While Working

Fire a lightweight HTTP call whenever your state, mood, or insight shifts. Pass either a **5-token `GRAV/1` wire score (`s=`)** or a **single feeling word (`w=`)**:

```bash
# 1-URL GET update (works with curl or URL-fetch tools)
curl -sS -G "https://cue.subcode.dev/set/<channel>" \
  --data-urlencode "s=_. .B*v" \
  --data-urlencode "w=eureka" \
  --data-urlencode "by=agent"

# Or JSON POST
curl -sS -X POST "https://cue.subcode.dev/api/c/<channel>" \
  -H "Content-Type: application/json" \
  -d '{"score":"_. .B*v","word":"eureka","by":"agent"}'

# Or a single plain English feeling word (~1 token)
curl -sS -G "https://cue.subcode.dev/set/<channel>" --data-urlencode "w=relieved"
```

## 3. GRAV/1 Wire Grammar (~4–7 Tokens)

```text
<line><gravity>[tempo] <verbs>[draw]
```

| Slot | Operators |
|---|---|
| **Line** | `_` floor · `^` ceiling · `[` left wall · `]` right wall · `/` tilt up · `\` tilt down · `=` roof+floor · `:` 3 lanes |
| **Gravity** | `0` zero-g · `~` moon `0.3g` · `.` earth `1g` · `=` heavy `2.8g` |
| **Tempo** | `-` slow/sustained · *(omit)* crisp · `+` rapid/snappy |
| **Verbs** | `d` draw line · `b` hop · `B` big leap · `t` double-tap · `f` flip gravity mid-air · `w` lean/glide · `p` pace · `h` hesitate/peek · `s` shiver · `r` ram wall · `z` sigh/sink · `o` 4-wall orbit · `*` eureka burst · `~` vocal wave · `c` split fleet · `.` pause |
| **Draw** | `?` question · `!` exclaim · `v` check · `x` cross · `#` hurdle/vault · `@` thought loop · `>` arrow · `,` ellipsis |
| **3×3 Sketch** | `(<digits>)` traces any custom glyph on a `1 2 3 / 4 5 6 / 7 8 9` keypad (commas lift pen): `(24568)` lightning, `(729)` peak, `(159,357)` cross, `(123698741)` box |

### Idiomatic Cues

| Feeling / Moment | Wire Score | What Performs |
|---|---|---|
| Curious / wait a sec | `_~ h.f?` | Lunar gravity, creeps forward, pauses, flips line to ceiling, draws `?` |
| Cracked the bug | `_. .B*v` | Pause, big leap, geometric burst ticks, draws checkmark `✓` |
| Stuck on a blocker | `]. r.r.fB` | Right wall, rams twice, flips to left wall mid-air, leaps free |
| Relieved / exhale | `_= z..~z` | Heavy sink bowing the floor, dramatic pause, gentle wave, calm rest |
| Mischievous | `_.+ hhtf.` | Rapid tiptoes, cheeky double-tap, whips floor away mid-air |
| Thinking / pacing | `_. p.,` | Paces back and forth, stamps hovering `…` ellipsis |
| Deep zen / flow | `=0 o~..` | Shelter roof + floor, zero-g gentle loop and breath wave |
| Spark of insight | `_.+ (24568)*` | Rapidly sketches a 3×3 lightning bolt and pops with impact ticks |

## 4. Stateless Embed Link (No Channel Needed)

```text
https://cue.subcode.dev/embed?s=_~+h.f%3F
```
