Good question! The main things Localcode adds on top of opencode + a local server:
- Tuned per model: each model gets its own tested settings (context size for your Mac, thinking on or off, KV cache type, drafter), so tool calls and images work out of the box.
- Agent tuned for local models: reminders to keep the plan updated, stuck detection when the model stops making progress, and compaction timed from the server's measured speed rather than just the token limit.
- Setup: one command picks a model and quant that fit your Mac's memory and downloads it, no config to edit.
- Draft models: Localcode automatically uses the model makers draft models where they exist, roughly 2x faster replies on Gemma and Qwen.
- Faster file rewrites: Localcode copies text the model has already read instead of regenerating it, so rewrites run 3.5 to 4x faster.
- Leaner prompts: the built-in tool descriptions are cut down to a few lines each, since a local model re-reads them on every request.
We haven't benchmarked Localcode against oMLX directly though, and MLX is very fast on Apple Silicon, so for some models it may well be quicker - would love to hear how they compare if you try both!