A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
Tired of paying for frontier AI models? Break free with this guide to 100% local, private LLM code generation on Apple S
Build, test, and run private AI-assisted coding agent workflows entirely on-device with zero cloud costs or API keys.
This repository contains a comprehensive, step-by-step setup guide and technical walkthrough for configuring a fully local, private AI software engineering agent on an Apple Silicon Mac.
By pairing Ollama (the model server) with Cline (the advanced VS Code agent extension), this guide demonstrates how to break free from frontier model subscriptions and API paywalls. You will configure a highly disciplined, human-in-the-loop agentic workflow tailored precisely for local inference hardware.
🚀 Looking for the code? A fully completed, working reference implementation built by following this guide can be found at https://github.com/rextanka/avi-tree-tutorial-result.git.
.clinerules and a robust Git checkpoint strategy to keep your agent tightly disciplined.The tutorial implements a full-tier development environment featuring:
| Layer | Tool | Purpose |
|---|---|---|
| Agent | Cline | VS Code agent extension with full terminal, read, and write tool access. |
| Model Server | Ollama | Local model engine optimized for macOS unified memory. |
| Local Models | gemma3:12b / qwen3.5:35b-coding | Custom Modelfiles tuned with low temperatures and optimized context windows. |
| Language | C++20 | Modern language target for the worked implementation example. |
| Build System | CMake | Native build coordination. |
| Testing Layers | GoogleTest & PyTest | A strict two-layer testing layout (Unit + Functional) to verify agent progress. |
The companion guide walks you through a structured, multi-phase setup and practical exercise:
Step-by-step installation instructions for Homebrew, CMake, Python, VS Code, and Xcode command line tools.
Learn how to write a persistent Modelfile to configure proper context windows (num_ctx), low temperatures for deterministic code generation, and keep-alive parameters (OLLAMA_KEEP_ALIVE=-1) to prevent annoying cold-start reload lags.
.clinerulesConfigure Cline settings to strictly use an Act-mode human-in-the-loop workflow (avoiding local model failure loops) and bootstrap a local .clinerules file that prevents the agent from running wild across your file system.
To prove the setup works, you will guide the local LLM through building a complete AVL Tree in C++ from scratch using a strict Test-Driven Development (TDD) approach:
local-llm-cline-tutorial.md tutorial document.Contributions, feedback, and model performance benchmarking updates for new Apple Silicon chips are always welcome!
A VSCode plugin to help you quickly configure rules for the Cline / Roo AI programming assistant. With this plugin, you
Cline-Prompts-Tips-and-Tricks: A repository of AI prompt templates, coding best practices, and project organization tips