38 karma · joined May 8, 2023 (3y ago) · 14 submissions
comment 3d ago · link · parent
Please do checkout the new version released yesterday, and if you have any feedback/suggestions please do share :)
Release overview vid: https://mjwsolo.github.io/localcode/demo/localcode-release.m...
uv pip install -U localcode
comment 3d ago · link · parent
- Model recommendation now includes more headroom - /bench command that provides a performance overview for the model you're using - Import wizard for Claude and Codex MCPs and Skills - Models that support vision automatically download the vision support
would love to know what you think if you've tried!
Release overview vid: https://mjwsolo.github.io/localcode/demo/localcode-release.m...
uv pip install -U localcode
comment 3d ago · link · parent
Would love to know what you think..
Release overview vid: https://mjwsolo.github.io/localcode/demo/localcode-release.m...
uv pip install -U localcode
comment 1w ago · link · parent
1. Headroom - good point, I think it should bias users toward a smaller model, and honestly there's often not much difference between one quant up or down in terms of performance but the size differences can be considerable
2. Benchmark - I like this idea - we'll add this
3. IDE - how would you want this to work, and what are you solving for? wouldn't using localcode within the VS Code terminal be sufficient?
4. Skills/MCP - Localcode does support this but the usability is quite poor atm - requires user to do config outside of UI. I'll change this
5. Image - did you try /vision command? this enables user to download the relevant vision support doensn't support it out of the box. I think the error message needs to make this more explicit will add this
comment 1w ago · link · parent
- Usability: picking a model and quant that fit your Mac, downloading it, and configuring the server and agent for it. Localcode does that in one command, and when a strong new open model comes out we add it within days, already configured.
- Performance: getting the most out of each model on Apple Silicon. Localcode wires in the model makers' own draft models (roughly 2x faster replies on Gemma and Qwen), copies text the model already read so file rewrites run 3.5 to 4x faster, and patches llama.cpp when a model needs it (Inkling 2's experts were silently running on the CPU, now on the GPU with about 5x faster prompts).
- Reliability: making sure tool calls, images and long sessions actually work for each model. Every Localcode release runs every model through loading, chat, tool calls and images before it ships.
If you already have llama.cpp + pi tuned the way you like, you may not gain much. Localcode is for people who want it to just work, without spending time tinkering on config and setup. Would love to hear what you'd want us to prioritise!
comment 1w ago · link · parent
- File tools: reading or writing outside the project asks for approval.
- Shell commands: before a command runs it's parsed for the paths it mentions, and anything outside the project asks the same way. That only catches paths written in the command itself though, a script or python -c can still reach anything your user account can.
- So the prompts are a guard against mistakes, not a security boundary per se.
If you want a real boundary today, run localcode inside sandbox-exec or a VM.
Proper seatbelt support for shell commands is a good shout though, just created an issue for it https://github.com/mjwsolo/localcode/issues/254.
Would you use it if it were on by default?
comment 1w ago · link · parent
- 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!
comment 1w ago · link · parent
First time I've seen their app, but looks like theirs is a native app with its own engine, impressive that it runs DeepSeek 4.1 Flash on a 64 GB Mac. Ours is an open source CLI built on llama.cpp and opencode that we started back in April.
Curious how fast DeepSeek runs for you on 64 GB?
I tested supporting but the performance wasn't great at the time - can look into this again if folks want it supported though!
comment 1w ago · link · parent
uv pip install localcode
or
pip install localcode
Demo: https://mjwsolo.github.io/localcode/
Why we built it
We think most everyday coding will soon run on open models, on the hardware people and organisations already own.
Our belief stems from a pattern we call Frontier N-1: what the best model can do this year, consumer hardware and open models can do about a year later. The best open model that runs on a single consumer GPU today is as good as the best model in the world was 6 to 12 months ago [1]. So far this pattern keeps holding: this month Inkling 2 Mini was released as open weights, and it runs on a 32 GB Mac.
We're just at the beginning - Localcode is our first step towards the future.
What Localcode does
Setting up a local model means picking a model, a size, a server and an agent, then finding out it doesn't fit in memory. Localcode does all of that for you automatically.
* Localcode offers 12 open models, including Qwen, Gemma and Inkling, and stars the best fit for your Mac (16 GB and up) * The agent edits files, runs your tests and commands, and searches the web when you ask * Paste a screenshot and the vision models (Gemma, Qwen and Inkling) can read it * Once a model is downloaded, it works offline * Other apps can use the same model through an OpenAI-compatible API
Localcode focuses on optimisations to get the best quality and speed from each model:
* The model makers' own draft models roughly double reply speed * File rewrites run 3.5 to 4 times faster, because the agent copies text it has already read * The system prompt stays identical every turn, so the model reuses its cache and only reads what's new * Your first message starts sooner, because the model reads the system prompt while it loads * GPU code ships precompiled, so there's no half-minute wait on first start * An 8-bit KV cache by default halves its memory, so longer context fits on the same Mac * Context is sized from what the model server reports, so long chats compact before they run out of room We test every release on every model before it ships.
Localcode is open source (Apache 2.0) and built on opencode and llama.cpp. We're grateful to both.
We'd love to hear what you think.
14.
Localcode, open source agentic coding on your Mac with one command(github.com ↗)
76 points · by mjwsolo · 1w ago · 26 comments