Local models and AI coding tools
A local AI workflow has several parts: a model, its runtime, and a tool that receives project context and suggests changes. Running a model on your computer does not itself create a coding agent or make every connected service local. First define the task and the boundaries for data sharing.
Choose a runtime and model
Ollama provides a CLI and API for managing and running models. llama.cpp provides a CPU/GPU runtime and GGUF support. Your choice depends on the model format, available memory, connection interface, and speed on real project context.
Start with a small task: explain a function or suggest a change to one module. Check response time, memory use, and output quality. A larger model may not fit your hardware, and a faster response does not prove the code is correct.
- Check rights to the chosen model weights separately from the runtime license.
- Test context size with a task from your project.
- Do not expose a local API to an external network without a deliberate decision and access controls.
Connect one agent and a workflow you can verify
aider runs in the terminal with a repository map, Git, linters, and tests. goose is a standalone agent with desktop, CLI, API, and MCP extensions. Choose a primary tool and a model endpoint it can access; check the terms and compatibility of the specific connection before starting.
Give the first task a clear completion criterion: a corrected function and a reproducible check. Read the diff, preserve a rollback path, and run project tests. For browser changes, Playwright tests the user workflow but does not make architectural decisions for the developer.
- Limit context to the files needed and keep secrets out of repository data shared with the agent.
- Do not let two agents change the same workspace simultaneously.
- Check the code's actual execution separately from the model's explanation.
Check that the workflow is actually local
A local runtime can work with a remote agent API or remote MCP server. Microsoft Learn MCP, for example, retrieves documentation over the network. This is a useful additional source, but it changes the boundaries of a local workflow. List the actual network connections.
Open source agent and runtime code do not include free hardware or rights to every model. Cloud APIs have their own pricing. This approach suits controlled tasks with result checks; it does not guarantee answer quality or the absence of external data transfer in every configuration.
- Check the provider and endpoint, not just the model name in the interface.
- Disable unnecessary remote extensions for tasks involving local data.
- Keep working checks and a rollback procedure regardless of the chosen agent.
Tools and why to choose them
- Ollama
Run and manage models locally through a CLI and API.
- llama.cpp
Use a CPU/GPU runtime with GGUF and a server API when choosing a compatible model.
- aider
Work with a repository, Git, and checks in the terminal; connect models separately.
- goose
Use a standalone local agent with MCP extensions and a choice of model.
- Playwright
Test browser behavior after an agent changes code.
- Microsoft Learn MCP + Microsoft Docs skills
Check Microsoft APIs against documentation as an additional step; this is a remote network source.