New advertisers: 50% off your first month with code FIRSTMONTHSee slots
reason-machines avatar

Mac Code Local Ai Agent

Run a free 35B coding agent locally on Apple Silicon with llama.cpp or MLX backends.

skills.sh installs
800
GitHub stars
98
last updated
Jul 14, 2026
View on GitHub

What it does

  • Covers local LLM setup for Apple Silicon Macs, including model downloads, llama-server flags, and backend selection between llama.cpp and MLX
  • Includes an agent REPL that routes prompts to search, shell, or chat tools, with commands such as /agent, /raw, /model 9b, and /bench
  • Provides a REST API for persistent KV cache save and load, context compression, and optional Cloudflare R2 sync on the MLX backend
  • Designed for Mac users with 16 GB of RAM who want a local alternative to cloud coding assistants

Install

$ npx -y skills add reason-machines/trending-skills --skill mac-code-local-ai-agent -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

mac-code — Free Local AI Agent on Apple Silicon

Skill by ara.so — Daily 2026 Skills collection.

Run a 35B reasoning model locally on your Mac for $0/month. mac-code is a CLI AI coding agent (Claude Code alternative) that routes tasks — web search, shell commands, file edits, chat — through a local LLM. Supports llama.cpp (30 tok/s) and MLX (64K context, persistent KV cache) backends on Apple Silicon.


What It Does

  • LLM-as-router: The model classifies every prompt as search, shell, or chat and routes accordingly
  • 35B MoE at 30 tok/s via llama.cpp + IQ2_M quantization (fits in 16 GB RAM)
  • 35B full Q4 on 16 GB via custom MoE Expert Sniper (1.54 tok/s, only 1.42 GB RAM used)
  • 9B at 64K context via quantized KV cache (q4_0 keys/values)
  • MLX backend adds persistent KV cache save/load, context compression, R2 sync
  • Tools: DuckDuckGo search, shell execution, file read/write

Installation

Prerequisites

brew install llama.cpp
pip3 install rich ddgs huggingface-hub mlx-lm --break-system-packages

Clone the repo

git clone https://github.com/walter-grace/mac-code
cd mac-code

Details

Repository
github.com/reason-machines/trending-skills
Categories
AI Agents & LLM Apps, CLI & Terminal
First seen
May 16, 2026

More from reason-machines/trending-skills

All 163

Similar to Mac Code Local Ai Agent

More AI Agents & LLM Apps