
Why it mattersA developer who cannot send code to a cloud API can now run an agentic coding tool on a Mac. Inference stays on the device.
Running an agentic coding tool on your own Mac used to mean building the stack. No code leaves the device, so the parts had to fit together. Localcode does it in one install. The repository is at mjwsolo/localcode on GitHub. It holds 164 stars on the day of its Hacker News discussion. The discussion earned 72 points at the time of writing. The project is Apache-2.0 licensed.
The readme states the requirements plainly. A Mac with Apple Silicon. macOS 13 or newer. 16 GB of unified memory or more. Python 3.10 or newer. A developer installs it with uv pip install localcode, runs it inside a project directory, and starts the agent. The agent can also be reached from another local app through an OpenAI-compatible endpoint at /server.
What the tool does
Localcode reads and edits files in a project. It runs tests, builds, Git and shell commands inside the project on its own. It asks the user before touching anything outside the project. It searches code by name, content or structure. It scaffolds and launches apps, then checks that they respond. It remembers the task across messages.
The project lists 12 models and 169 quantisation options. Among them: Gemma 4 12B, Qwen 3.8 27B, Inkling 2 Mini 26B-A5B, North-Mini-Code 30B-A3B, and Kolibri 1 78B-A3B. The largest listed is DeepSeek V4 Flash 284B-A13B. The smallest download is 4.7 GB for Gemma 4 12B. The largest is 161.9 GB for DeepSeek V4 Flash. Models download from Hugging Face in parallel. Downloads resume if interrupted.
The speed tricks
Localcode lists the speed changes it makes on top of the stock model server. The vendor's own drafter guesses tokens ahead. The readme says this is about 2x faster on Gemma 4, Qwen 3.6, Qwen 3.8 and Muse Glimmer. When the model rewrites a file it already read, it copies instead of generating. The readme claims 3.5 to 4x faster on rewrites.
Prompt-cache reuse means the system prompt stays the same every turn. The model only reads what is new. The first request's prompt is read while the model loads, so the first message starts sooner. GPU kernels are precompiled.
Memory is handled with an 8-bit KV cache by default. The readme says this is half the memory of full precision. Inkling 2 uses a 16-bit cache instead. The readme says that cache reads long prompts 1.4 to 1.8x faster. It also needs 3.3 GB less memory at 128K context, per the readme.
Who this is for
The readme is specific about the audience. A developer on a Mac with Apple Silicon and at least 16 GB of memory. The developer wants a Claude Code-style agent that runs without a network call to a provider. That picks out two groups. One is a developer at a company that refuses to send code to a cloud AI. The other is a developer who wants to try agentic coding without paying a per-token bill.
The license is Apache 2.0. The only networked parts listed are model downloads, the web_search and web_fetch tools, and any user-added MCP servers.
Source
This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.
Get AI News in your inbox
New developer tools, model and agent releases, and how teams are actually using them to release software. Short, and only when there is something worth reading.