Ideal Local Coding Agent on an M1 Pro

It is such an incredible point in human history to be deeply interested in technology and software engineering. As a veteran generalist with a relatively deep understanding of internet infrastructure, operating systems, security, software engineering, design, product ownership, and human collaboration, I have never been as excited about our future as I am today. Sure, there are substantial downsides to artificial intelligence, but in my opinion the reward potential far exceeds the drawbacks we have yet to overcome (i.e., copyright, environmental, misuse, abuse).

Today’s cloud coding harnesses and models are truly awesome. I have spent so many hours with claude, copilot, and agy. The problem we all end up running into is monthly subscription/token spends, hitting rate limits mid-task, or the inability to use these tools when you’re working on a codebase or task that can’t leave your local machine.

If you’re running Apple Silicon with a decent amount of unified memory, local models have reached the point where they can power an agentic terminal harness without feeling like you’re driving a Model T. Personally, I am still using an old 2021 MacBook Pro M1 Pro with 32 GB of RAM. The sweet spot for me seems to be a sparse Mixture-of-Experts (MoE) model that is large enough to hold the framework knowledge, but activating only a few billion parameters per token so generation is as fast as possible on the M1 Pro’s slower 200 GB/s memory bandwidth.

Out of everything I have read and tested, my current local setup consists of:

  1. LM Studio — as the local OpenAI-compatible inference server, running its native Apple Silicon MLX backend.
  2. Google’s gemma-4-26b-a4b-qat (4-bit MLX) — 25.2B total / 3.8B active Mixture-of-Experts (MoE) model with 128 routed experts, native thinking mode, vision support, and reliable function calling that fits comfortably inside my 32 GB memory restrictions.
  3. Pi — a fast, minimal terminal coding agent that doesn’t burn 6,000 tokens of system prompt boilerplate on every turn.

If you’re interested in finding out exactly how to run this, including my recommended model tuning options, please continue reading.

Continue Reading…