Skip to main content
skill CX Codex

mac-code-local-ai-agent — Claude Code skill: local AI agent on Mac

A skill that walks you through running a coding agent entirely on your Apple Silicon Mac, with no cloud calls and no subscription.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add reason-machines/trending-skills --skill mac-code-local-ai-agent -a claude-code
Open on GitHub

What mac-code-local-ai-agent does

The skill covers setup and use of mac-code, a command-line coding agent that picks its own path for each prompt: a web lookup, a shell command, or a plain answer. The model acts as a router and sorts every request into one of those three buckets. Its tools are DuckDuckGo search, shell execution, and file reads and writes.

Two backends are documented. With llama.cpp you get a 35B MoE model at roughly 30 tok/s using IQ2_M quantization, which fits inside 16 GB of memory; a 9B option reaches a 64K context through a quantized KV cache. MLX adds KV cache save and load, context compression, and sync through Cloudflare R2. R2 sync needs credentials in environment variables, so without them the context download will not run.

Before anything starts, install llama.cpp with Homebrew and the rich, ddgs, huggingface-hub, and mlx-lm packages with pip. Models are pulled from Hugging Face into ~/models. The backend listens on 127.0.0.1:8000, and the agent starts with python3 agent.py. Inside the REPL you get commands such as /model 9b, /search, /bench, and /stats.

What it helps with

  • fit a 35B model into 16 GB of RAM
  • switch between a fast model and a 64K context
  • save a KV cache after reading a large codebase
  • sync context between two Macs over R2
  • benchmark local inference speed

Example prompts for the agent

  • Set up a local AI agent on my Mac with llama.cpp
  • Switch to the 9b model with 64K context
  • Save the project context as my-project

How to install mac-code-local-ai-agent

1Skills CLI (Vercel)

npx skills add reason-machines/trending-skills --skill mac-code-local-ai-agent -a claude-code

2Manually: put the files in place

~/.claude/skills/mac-code-local-ai-agent/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/mac-code-local-ai-agent/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about mac-code-local-ai-agent

How do I install mac-code-local-ai-agent in Claude Code?

Run npx skills add reason-machines/trending-skills --skill mac-code-local-ai-agent -a claude-code. The skill lands in ~/.claude/skills/mac-code-local-ai-agent/SKILL.md.

What does mac-code-local-ai-agent do?

It documents how to run a local coding agent on Apple Silicon, where the model decides between a web search, a shell command, or a direct reply.

Which backends does it support?

llama.cpp and MLX. The first gives a 35B MoE model at about 30 tok/s or a 9B model with 64K context; the second adds KV cache persistence and R2 sync.

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set186

type4me-macos-voice-input Guides building and customizing Type4Me, a macOS voice input tool built in Swift. Useful for adding speech providers and managing local ASR models. CX Codex +1 861installs legalize-es-spanish-legislation Search and inspect Spanish legislation in Markdown files, then trace changes through Git. Useful for finding articles, checking revisions, and reviewing past versions. CX Codex +1 858installs markit-markdown-converter This skill turns files, URLs, and media into Markdown through the markit-ai CLI or SDK. Use it when an agent needs readable content from source material. CX Codex +1 855installs flipoff-split-flap-display A skill for building, restyling and embedding FlipOff, a framework-free split-flap board emulator that runs in any browser. CX Codex +1 849installs caveman-token-optimizer A skill that makes AI agents answer in caveman-speak, dropping pleasantries and filler. It cuts roughly 65% of output tokens while code and technical terms stay exact. CX Codex +1 842installs codex-plugin-cc Runs OpenAI Codex reviews and delegates background fixes directly from Claude Code. Good for getting an outside critique on diffs. CX Codex +1 838installs pump-analyzer-solana A static front end for watching Pump.fun token launches on Solana: a WebSocket feed, price and volume charts, and alerts on your own criteria. CX Codex +1 837installs app-store-screenshots-generator Builds ad-style iOS app screenshots in Next.js and exports PNG files for App Store device sizes. It also handles localized sets. CX Codex +1 818installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor