Patterns from production · Agents

Ask your agent, with the question waiting

One chip, the context in the box, never sent.

Ask your agent, with the question waitingLive demo

Try the controls to see the rule.

The rule

Where a page shows one thing (a stream, a video, a file, a thread), one quiet chip beside Share opens the person’s agent with a sentence about that thing already in its box. It is never sent for them: they read it, change it, and press Send. Signed out, the chip signs in first.

Tokens used

  • radius.pill999px
  • size.tap44px
  • space.md12px
  • motion.duration.base260ms

Native spec · generated from this pattern and the shared token registry

SwiftUI
struct OvAskYourAgent: View {
    let status: String
    @Environment(\.accessibilityReduceMotion) private var reduceMotion
    var body: some View {
        HStack(spacing: OvScale.spaceMd) {
            Text(status).font(.body)
        }
        .frame(minHeight: OvScale.sizeTap)
        .animation(reduceMotion ? .none : .easeOut(duration: OvScale.motionDurationBase), value: status)
    }
}
// Tokens: radius.pill=999px, size.tap=44px, space.md=12px, motion.duration.base=260ms
Compose
@Composable
fun OvAskYourAgent(status: String, reduceMotion: Boolean) {
    Row(
        modifier = Modifier.defaultMinSize(minHeight = OvScale.SizeTap),
        horizontalArrangement = Arrangement.spacedBy(OvScale.SpaceMd),
    ) {
        Text(status, style = MaterialTheme.typography.bodyMedium)
    }
    // Apply motion only when !reduceMotion.
}
// Tokens: radius.pill=999px, size.tap=44px, space.md=12px, motion.duration.base=260ms