Most AI coding agents only perform well when connected to massive, expensive cloud models — and struggle or get stuck in loops when paired with smaller or local LLMs.
So I built Harny — an open-source (MIT) AI Coding Agent that lives in a panel in your VS Code or VSCodium Activity Bar. It speaks the OpenAI Chat Completions protocol so it works seamlessly with frontier cloud APIs and is also specifically tuned to run reliably on small and local LLMs (Ollama, LM Studio, llama.cpp, MLX).
What makes Harny different?
- Analyze & Build (Preview before writing): Every new session starts in Analyze mode, where file tools run in dry-run and show you the exact unified diff without touching your disk. Switch to Build only when you're ready to apply changes.
- Great with Any Model — Even Small & Local LLMs: Connects to OpenAI, Anthropic, OpenRouter, or local servers (Ollama, LM Studio, llama.cpp) from a single dropdown — with automatic context compaction, observation masking, and a built-in Loop Guard that detects and breaks reasoning or tool loops before they waste tokens.
- Real Parallelism (Sub-Agents): Turn on Parallel and Harny becomes an orchestrator that splits independent tasks across concurrent sub-agents, each streaming live in its own bubble.
- Queue & Steer Mid-Run: Keep typing while the agent works — press
Enterto queue your next message orCtrl/Cmd+Enterto steer the run live at the next turn boundary. - MCP & Agent Skills Ready: Supports Model Context Protocol servers (stdio & HTTP) and
SKILL.mdworkflows out of the box, with session history stored cleanly in a central SQLite database outside your repo.
Quick Start (1-Click Install)
You can install Harny directly inside your editor in seconds:
- Open the Extensions view (
Ctrl+Shift+XorCmd+Shift+X) in VS Code or VSCodium, search forHarny, and click Install — or grab it directly from:- 🧩 VS Code Marketplace: Install on Visual Studio Marketplace
- 🔓 Open VSX (VSCodium, Cursor, Windsurf, Theia): Install on Open VSX Registry
- Click the Harny icon in the Activity Bar and open a workspace folder.
- Click the gear icon (⚙) next to the model selector to add your local server (e.g.
http://127.0.0for Ollama) or cloud API key, and start coding!
Links & Source Code
- 🌐 Website & Docs: harny.dev
- 💻 Source Code (MIT License — 3,000+ unit tests):
Harny
Your AI coding agent, inside VSCodium and VS Code. Bring your own model — local or cloud.
Contents
- What is Harny
- What you can do with it
- Why Harny
- Supported providers
- Install
- Quick start
- Setup
- How it works
- Technical reference
- License
What is Harny
Harny is a full AI coding agent that lives in a panel in your Activity Bar. It reads your project, edits files, runs commands, searches the web and keeps a persistent conversation per folder — with tool calling and live streaming.
It speaks one protocol, the OpenAI Chat Completions API. That single choice is what lets it talk to almost anything: a cloud model, a model on your laptop, or a server you run yourself.
What you can do with it
- "Fix this bug" → it reads the relevant files, proposes the edit, you review the diff, then it writes.
- "Add tests for…
I'd love your feedback! Do you usually code with cloud APIs or local LLMs (like Qwen, Llama, DeepSeek, or Gemma)? Let me know in the comments how Harny handles your setup!


