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.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
@testable import CodyncUI
import Testing
/// Replies are read aloud in clips that each fit one channel message.
@MainActor @Test func speechClipsKeepSentencesUnderTheLimit() {
let clips = CloudSpeechEngine.clips("第一句。第二句很長很長。Third one! " + String(repeating: "x", count: 25), limit: 10)
#expect(clips.allSatisfy { $0.count <= 10 })
#expect(clips.first == "第一句。")
#expect(clips.joined().replacingOccurrences(of: " ", with: "") ==
("第一句。第二句很長很長。Third one! " + String(repeating: "x", count: 25)).replacingOccurrences(of: " ", with: ""))
#expect(CloudSpeechEngine.clips("", limit: 10).isEmpty)
}