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.

372 B
Raw Blame
export function composerEnter(event: {
  key: string; shiftKey: boolean; altKey: boolean; repeat: boolean
  isComposing: boolean; keyCode: number
}): 'send' | 'newline' | 'ignore' {
  if (event.key !== 'Enter' || event.isComposing || event.keyCode === 229) return 'ignore'
  if (event.shiftKey || event.altKey) return 'newline'
  return event.repeat ? 'ignore' : 'send'
}