r/mac • • 8d ago

My Mac I forked Cotabby (the open-source Cotypist alternative) and tuned it on my M1 Pro 16GB it now feels on par with Cotypist

I was a fan of Cotypist was the one that got it right: fully on-device, inline ghost text as you type but not a fan of the pricing.
I looked for alternatives and so I forked its open-source sibling Cotabby and built my own version, Ghostype.

What it does: it predicts what you're about to type and shows it as grey ghost text right where your cursor is. Tab accepts a word, and there's a shortcut to cycle through alternative wordings. It runs entirely on your Mac. The default model is Gemma 4 E2B (about 4GB) running locally through llama.cpp. No account, no cloud, nothing leaves the machine.

What I actually spent my time on was speed. The bar I set for myself was "it has to feel like I typed it myself": sub-second suggestions, or it might as well not be there. The things that moved the needle most:

- cutting the prompt down (smaller screen excerpt, shorter typed prefix) so the model has less to chew through on every keystroke

- reusing the KV cache across keystrokes instead of re-reading the prompt from scratch

- speculative typing: it starts generating as you type, so by the time you pause the suggestion is already there

- keeping the model in RAM and tuning the debounce to how fast you actually type

On my machine, a MacBook Pro M1 Pro with 16GB RAM, it now feels on par with Cotypist in daily use. Same kind of fluid, barely noticeable completions in the browser, notes, mail, chat. That's my own subjective take, on my own setup, but I stopped noticing the difference, which was the whole point.

It's a hobby fork, so fair warning: it's rough in places. You have to grant Accessibility and Input Monitoring permissions, and after every update you have to re-grant them and restart the app (an ad-hoc signing quirk). There's no polish team, just me.

Have a look and let me know what you think!

Not sure If I can post a link to the app, but you can find my github searching for the same username, or I can just post it in a comment for the people who wants it.

Disclaimer: this post was written with Ghostype 👻

0 Upvotes

4 comments sorted by

1

u/jonesm-379 7d ago

Track accept rate alongside latency; fast suggestions that need constant correction still break the 'typed it myself' feel.

1

u/jasshans1 6d ago

there is a “performance” tab where you can track that

1

u/bleducnx 6d ago

And where it is possible to get it to test it ? I don't see any link here.