aradotso avatar

Mac Code Local Ai Agent

This is a complete local AI coding agent that runs 35B parameter models on a 16GB Mac at 30 tokens per second, using llama.cpp or MLX to stay entirely offline. It routes your prompts to web search, shell commands, or chat automatically, and includes persistent KV cache that can sync across machines via R2. The MLX backend is the real hook here: you can save context from a 50K line codebase, kill the process, reload it in 0.0003 seconds, and pick up exactly where you left off. If you're tired of paying for cloud inference or want to experiment with out-of-core streaming that loads only the active MoE experts from SSD, this is a solid starting point with actual working code for quantized cache and direct I/O on macOS.

skills.sh installs
800
GitHub stars
61
last updated
Jul 14, 2026

Install

$ npx -y skills add aradotso/trending-skills --skill mac-code-local-ai-agent --agent claude-code

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/aradotso/trending-skills
Category
AI & Agent Building
First seen
May 16, 2026

More from aradotso/trending-skills

All 251
1aradotso avatarkali-pentest-ai-agentaradotso/security-skillskali pentest ai agent697skills.sh installs
2aradotso avataropen-multi-agent-orchestrationaradotso/trending-skillsopen multi agent orchestration665skills.sh installs
3yamadashy avataragent-memoryyamadashy/repomixUse this skill when the user asks to save, remember, recall, or organize memories. Triggers on: 'remember this', 'save this', 'note this', 'what did we discuss 465skills.sh installs
4sickn33 avatarmulti-agent-patternssickn33/antigravity-awesome-skillsmulti agent patterns390skills.sh installs
5sickn33 avatarllm-application-dev-prompt-optimizesickn33/antigravity-awesome-skillsllm application dev prompt optimize357skills.sh installs
6molty-assistant avataragent-memorymolty-assistant/agent-memory-skillagent memory341skills.sh installs