· via Hacker News – Front Page (native)
Localcode runs open-source agentic coding with local models on Apple Silicon Macs
An Apache 2.0 project that hit Hacker News's front page offers an agentic coding assistant whose models run entirely on Apple Silicon Macs, with an OpenAI-compatible endpoint for other apps.
An open-source project called Localcode has surfaced on the front page of Hacker News with a simple pitch: an agentic coding assistant whose language models run entirely on the user's own machine. Built for Apple Silicon Macs, it installs as a Python package, launches with a single command inside a project directory, and keeps inference local.
What the agent can do
According to the project's GitHub README, Localcode reads and edits files in a project, runs tests, builds, Git and shell commands on its own initiative, and asks for confirmation before touching anything outside the project folder. It can search code by name, content or structure, scaffold and launch applications and then verify that they respond, and carry a task across multiple messages. A plan panel maintains a running checklist that the model is reminded to keep current. Beyond the terminal interface, the tool serves an OpenAI-compatible endpoint, reachable through a built-in server screen or a dedicated API command, so other applications on the machine can query whichever model is already loaded.
Hardware and model choices
The stated requirements are an Apple Silicon Mac on macOS 13 or newer, at least 16 GB of unified memory, and Python 3.10 or later, plus disk space for the models. The README lists twelve models in 169 quantisation variants, downloaded from Hugging Face; downloads run in parallel, resume if interrupted, and continue while another model is in use. A picker marks the strongest option that fits the machine's available memory. Footprints vary widely: the smallest Gemma 4 12B build is a 4.7 GB download, while the largest DeepSeek V4 Flash configuration reaches 161.9 GB. The roster also includes Qwen 3.6 and 3.8, Muse Glimmer, Inkling 2 Mini, North-Mini-Code, Flint, Gemma 4 Diffusion, Kolibri 1 and OpenJev 27B, with that last one earmarked for typed decision-making rather than code generation.
Speed and memory engineering
The README describes a layer of optimisations added on top of a stock model server. Vendor-provided speculative drafters roughly double reply speed on Gemma 4, Qwen 3.6, Qwen 3.8 and Muse Glimmer. When the model rewrites a file it has already read, the text is copied rather than regenerated, which the project says makes rewrites 3.5 to 4 times faster. The system prompt is cached so only new content is processed each turn, the first request is warmed up while the model loads, and GPU kernels ship precompiled to avoid a slow first start. For Inkling 2, moving experts that had silently run on the CPU onto the GPU, along with banded attention and a fused activation operation, roughly halves GPU memory use and reads prompts 20 to 30 percent faster. An 8-bit KV cache is the default to fit longer context; Inkling 2 instead keeps a 16-bit cache that its attention reads directly, which the project says saves 3.3 GB at 128K context and speeds up long prompts by 1.4 to 1.8 times.
Reliability and testing
Hidden reasoning is switched off by default so answers arrive immediately, and a model that gets lost in its own thinking is recovered rather than left to fail. Stuck detection nudges an agent that makes no progress or repeatedly fails the same check to change approach, and eventually stops it so it can report what it accomplished. The project also says every release is tested live against every supported model, covering loading, replies, tool calls and image input, before it ships.
Network boundary
Inference happens on the machine. Only three things touch the network: model downloads, the bundled web search and fetch tools, and any MCP servers the user adds.
Why it matters
Most agentic coding tools today depend on hosted models, which means code, prompts and project context leave the developer's machine. Localcode is an attempt to show that a capable coding agent can run on a laptop, under an Apache 2.0 licence, with no inference in the cloud. The OpenAI-compatible endpoint is the quietly significant part: it turns a Mac into a private model server that other local tools can reuse, not just a standalone assistant. The trade-offs are real — a 16 GB memory floor and downloads that can exceed 160 GB for the largest models — but for anyone who wants coding agents without the cloud round-trip, this is a concrete, inspectable starting point.
- #open-source
- #agentic-coding
- #local-llms
- #macos
- #developer-tools