# Local Coding Agent

Hands narrow coding jobs to a model running on your own machine. A patch lands only after a real test run confirms it.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 11
- Author: pvnc228
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/pvnc228/local-coding-agent
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/mcp/local-coding-agent

## What it does

Local Coding Agent is an MCP server and safety layer that lets a cloud coding agent pass a small task down to a model on your hardware. The caller supplies a goal, a workspace, which files may be touched, and which checks to run. The local model drafts a change; the controller decides whether it holds up.

A change counts as applied only if the edit stayed inside the declared files, cleared static analysis, and an external test runner confirmed the configured checks. When a post-apply check fails, the edit is rolled back, and that rollback is compared against recorded file digests. The local model never gets open shell or write access to your workspace.

Running it takes Python 3.10 or newer, Git on `PATH`, and Ollama or an OpenAI-compatible local model server — live responses need one of those. Commits, tags and releases stay in your hands; the agent does not create them. There is a `local-agent` CLI and a Windows Desktop Harness.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add local-coding-agent -- uvx local-coding-agent
```
uvx runs the command named after the package; if the README names another one, use uvx --from local-coding-agent <command>

### Codex

**Platform CLI**
```bash
codex mcp add local-coding-agent -- uvx local-coding-agent
```
uvx runs the command named after the package; if the README names another one, use uvx --from local-coding-agent <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "local-coding-agent": {
            "command": "uvx",
            "args": [
                "local-coding-agent"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from local-coding-agent <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "local-coding-agent": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "local-coding-agent"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from local-coding-agent <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add local-coding-agent uvx local-coding-agent
```
uvx runs the command named after the package; if the README names another one, use uvx --from local-coding-agent <command>

## When to use it
- delegate a small fix to a local model without exposing the whole repo
- gate a patch behind an external test run before it applies
- roll back a change when post-apply checks fail
- split a large request into smaller coding tasks
- wire a local model into a cloud agent over MCP

## Example prompts
- Connect Local Coding Agent and hand the local model a task: fix error handling in `src/api.py`, check with `pytest tests/test_api.py`
- Break my request into smaller tasks with `local-agent decompose` and show the result
- Run `local-agent doctor` to confirm the local backend is ready

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
