About the project
Inspiration
There are plenty of AI tools that can help you write faster, rephrase your words, and convert speech to text. But it usually means one app for autocomplete, one for rewriting, and one for dictation, each with its own settings and often its own subscription. I wanted one assistant with one set of preferences. I couldn't find one that combines all of that, lets you connect almost any LLM, and is free and open source. So I built BOB.
Privacy mattered just as much. A writing assistant sees some of the most private things on your computer, so I wanted one that works on your own Mac by default and asks before it sees more.
A ghost seemed like the right shape for something that stays near your cursor and out of the way. That became BOB: Bring Your Own Brain.
Kiroween's Frankenstein category was a perfect match. BOB stitches Swift, Rust, React, llama.cpp, and whisper.cpp together into one creature. It just turned out to be a friendly one.
A ghost seemed like the right shape for something that stays near your cursor and out of the way. That became BOB: Bring Your Own Brain.
What it does
- Ghost Text suggests the next words at your cursor in the apps you type in.
- Selection Actions rewrite selected text in place.
- Voice Dictation types what you say, with your own text replacements and vocabulary. Speech is recognized on your Mac.
- Brains are the models behind it: a built-in local model, or a local or cloud AI service you connect. Personal context goes only to the brains you allow.
- The Wisp is an optional floating ghost. You can ask it about whatever you attach. With tools on, it can act, but every change and every screen read by a tool waits for you to click Allow. It can also run background tasks and, after you approve it once, watch a window for you.
- MCP lets Kiro or any other MCP client use BOB's rewrite, completion, and settings tools. It is off by default.
How I built it
A Rust core (Tauri 2) handles the engines, brains, and settings. A Swift helper handles Accessibility, key events, overlay panels, and the microphone. llama.cpp runs as a sidecar on a private Unix socket, and whisper.cpp runs inside the Swift helper. The settings UI is built with React and TypeScript.
Kiro structured the work: ten specs with EARS requirements, steering files for privacy and performance budgets, hooks, custom agents, the MCP server, and property-based tests. Requirement IDs were turned into named tests, so coverage gaps were easy to see. A few Wisp checks still need a person at a real Mac. Optimizations followed one rule: measure, change one thing, measure again.
What I learned
- Measuring settles arguments. In my benchmark, the first suggestion appears about 90 ms after typing stops.
- Prompt injection can be limited but never fully removed.
- In my tests, the bigger models followed planted instructions more often.
- Thinking models spent short answer budgets on hidden reasoning and returned nothing, so thinking on the built-in server is now off except for tool steps.
Challenges
- Models had to be selected carefully and tested extensively to find the right ones.
- Personalization is useful, but the context window should not be overfilled.
- Apps report caret positions differently. Chromium and Electron needed their own path, and editors that report text late caused wrong accepts.
- Background work needed hard limits: 25 steps and 10 minutes per task, 30 minutes per window watch, and only one at a time.
Built With
- ai
- github
- kiro
- llm
- rust
- swift
- typescript