Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

Grok Bot's motion and harness logos in usage

leepokai344db41b7e16
diff --git a/apps/ios/Views/UsageView.swift b/apps/ios/Views/UsageView.swift
index 94de0ab0..53e32dab 100644
--- a/apps/ios/Views/UsageView.swift
+++ b/apps/ios/Views/UsageView.swift
@@ -44,7 +44,7 @@ private struct ProviderCard: View {
var body: some View {
VStack(alignment: .leading, spacing: 14) {
HStack(spacing: 12) {
- ProviderMascot(provider, size: 40)
+ AgentIcon(registry: provider.registry, size: 28)
.frame(width: 52, height: 52)
.background(provider.tint.opacity(0.12), in: RoundedRectangle(cornerRadius: 14, style: .continuous))
Text(provider.name).font(.title3.weight(.semibold)).foregroundStyle(Palette.text)
diff --git a/kit/Sources/CodyncKit/Design/Motion.swift b/kit/Sources/CodyncKit/Design/Motion.swift
new file mode 100644
index 00000000..b3d76822
--- /dev/null
+++ b/kit/Sources/CodyncKit/Design/Motion.swift
@@ -0,0 +1,38 @@
+import SwiftUI
+
+/// Grok Bot's motion, taken from its stylesheet and motion constants so ours feels the same.
+/// With Reduce Motion on, Grok drops every duration to 0; use `Motion.reduced(_:)` for that.
+public enum Motion {
+ /// Hover and selection fills, tabs, chips, switch knob: `background-color .12s ease`.
+ public static let hover = Animation.timingCurve(0.25, 0.1, 0.25, 1, duration: 0.12)
+ /// A view switched in (the transcript on a new selection): `opacity .12s`.
+ public static let fade = Animation.timingCurve(0.25, 0.1, 0.25, 1, duration: 0.12)
+ /// Press feedback lands almost at once: `transform 50ms` (`--cursor-duration-instant`).
+ public static let press = Animation.timingCurve(0.25, 0.1, 0.25, 1, duration: 0.05)
+ /// Icon and glyph swaps, the sidebar rail morph: `.2s cubic-bezier(.22,1,.36,1)`.
+ public static let morph = Animation.timingCurve(0.22, 1, 0.36, 1, duration: 0.2)
+ public static let morphCurve = UnitCurve.bezier(startControlPoint: UnitPoint(x: 0.22, y: 1), endControlPoint: UnitPoint(x: 0.36, y: 1))
+ /// Size and layout changes (panels growing, cards resizing): the critically damped
+ /// `.3s` spring Grok writes as a `linear()` curve.
+ public static let layout = Animation.spring(duration: 0.3, bounce: 0)
+ /// Tiles moving into place: `{type: "spring", stiffness: 1000, damping: 63}`.
+ public static let tile = Animation.interpolatingSpring(mass: 1, stiffness: 1000, damping: 63)
+
+ /// `--ui-press-scale`.
+ public static let pressScale: CGFloat = 0.98
+
+ public static func reduced(_ animation: Animation, _ reduce: Bool) -> Animation? {
+ reduce ? nil : animation
+ }
+}
+
+/// Grok's press: shrink to 98% in 50ms, spring back.
+public struct PressScale: ButtonStyle {
+ public init() {}
+
+ public func makeBody(configuration: Configuration) -> some View {
+ configuration.label
+ .scaleEffect(configuration.isPressed ? Motion.pressScale : 1)
+ .animation(Motion.press, value: configuration.isPressed)
+ }
+}
diff --git a/kit/Sources/CodyncKit/Design/UsageBar.swift b/kit/Sources/CodyncKit/Design/UsageBar.swift
index 2bbda69d..a632279d 100644
--- a/kit/Sources/CodyncKit/Design/UsageBar.swift
+++ b/kit/Sources/CodyncKit/Design/UsageBar.swift
@@ -45,6 +45,10 @@ public extension UsageProvider {
}
}
+ /// ACP registry id of the provider's agent, for its logo (`AgentIcon`).
+ /// Claude and Codex run through ACP adapters (`claude-acp`, `codex-acp`); others by their own id.
+ var registry: String { ["claude", "codex"].contains(id) ? "\(id)-acp" : id }
+
/// The character that stands for this provider.
var mascotShape: String { id == "codex" ? "hex" : "blob" }
diff --git a/kit/Sources/CodyncUI/Bots/NewChatView.swift b/kit/Sources/CodyncUI/Bots/NewChatView.swift
index a4e4366a..04ec935a 100644
--- a/kit/Sources/CodyncUI/Bots/NewChatView.swift
+++ b/kit/Sources/CodyncUI/Bots/NewChatView.swift
@@ -147,8 +147,8 @@ private struct PickRow<Icon: View, Label: View>: View {
.background(hovering ? Palette.bubbleAgent : .clear, in: RoundedRectangle(cornerRadius: 12, style: .continuous))
.contentShape(Rectangle())
}
- .buttonStyle(.plain)
- .onHover { hovering = $0 }
+ .buttonStyle(PressScale())
+ .onHover { h in withAnimation(Motion.hover) { hovering = h } }
}
}
diff --git a/kit/Sources/CodyncUI/Marketplace/MarketplaceView.swift b/kit/Sources/CodyncUI/Marketplace/MarketplaceView.swift
index 7ecff118..ed9f58a4 100644
--- a/kit/Sources/CodyncUI/Marketplace/MarketplaceView.swift
+++ b/kit/Sources/CodyncUI/Marketplace/MarketplaceView.swift
@@ -410,7 +410,7 @@ private struct AgentCard: View {
.contentShape(RoundedRectangle(cornerRadius: 18, style: .continuous))
}
.buttonStyle(PressScale())
- .onHover { h in withAnimation(.easeOut(duration: 0.15)) { hovering = h } }
+ .onHover { h in withAnimation(Motion.hover) { hovering = h } }
.help("New bot with \(backend.name)")
}
}
@@ -455,7 +455,7 @@ private struct MarketRow<Icon: View>: View {
.padding(.horizontal, 12)
.padding(.vertical, 10)
.background(hovering ? Palette.bubbleAgent.opacity(0.6) : .clear, in: RoundedRectangle(cornerRadius: 16, style: .continuous))
- .onHover { h in withAnimation(.easeOut(duration: 0.15)) { hovering = h } }
+ .onHover { h in withAnimation(Motion.hover) { hovering = h } }
}
}
@@ -542,15 +542,6 @@ private struct TileIcon: View {
}
}
-/// Slight shrink while pressed.
-struct PressScale: ButtonStyle {
- func makeBody(configuration: Configuration) -> some View {
- configuration.label
- .scaleEffect(configuration.isPressed ? 0.97 : 1)
- .animation(.spring(response: 0.25, dampingFraction: 0.7), value: configuration.isPressed)
- }
-}
-
private struct InstallConnectorSheet: View {
let item: MarketConnector
let done: () -> Void
diff --git a/kit/Sources/CodyncUI/Usage/UsageViews.swift b/kit/Sources/CodyncUI/Usage/UsageViews.swift
index 2cdd5efe..ff8f1e78 100644
--- a/kit/Sources/CodyncUI/Usage/UsageViews.swift
+++ b/kit/Sources/CodyncUI/Usage/UsageViews.swift
@@ -13,13 +13,14 @@ public struct UsageStrip: View {
ForEach(usage.providers) { p in
ForEach(p.windows.prefix(2)) { w in
HStack(spacing: 6) {
+ AgentIcon(registry: p.registry, size: 14)
Gauge(value: min(w.percent, 100), in: 0...100) { EmptyView() }
.gaugeStyle(.accessoryCircularCapacity)
.scaleEffect(0.42)
.frame(width: 22, height: 22)
.tint(Palette.usageTint(w.percent))
VStack(alignment: .leading, spacing: 0) {
- Text("\(p.name) \(w.label)").font(.caption2).foregroundStyle(Palette.tertiary)
+ Text(w.title).font(.caption2).foregroundStyle(Palette.tertiary)
Text("\(Int(w.percent.rounded()))%").font(.caption.bold().monospacedDigit()).foregroundStyle(Palette.text)
}
}