跳到正文
DEV Community· SPLTek·· 3 小時前AI 評分51

SPLTek 開發 MIT 開源編碼智能體 Harny,支援 VS Code、VSCodium 及本地 LLM

I built Harny: an open-source (MIT) AI Coding Agent for VS Code & VSCodium (works great even with small & local LLMs)

AI 導讀

SPLTek 開發並以 MIT 授權開源 Harny,這是一款可在 VS Code 和 VSCodium 使用、支援雲端及小型和本地 LLM 的 AI 編碼智能體。

正文

SPLTek

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 Enter to queue your next message or Ctrl/Cmd+Enter to steer the run live at the next turn boundary.
  • MCP & Agent Skills Ready: Supports Model Context Protocol servers (stdio & HTTP) and SKILL.md workflows 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:

  1. Open the Extensions view (Ctrl+Shift+X or Cmd+Shift+X) in VS Code or VSCodium, search for Harny, and click Install — or grab it directly from:
  2. Click the Harny icon in the Activity Bar and open a workspace folder.
  3. Click the gear icon (⚙) next to the model selector to add your local server (e.g. http://127.0.0 for 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.

harny screenshot

license VSCodium VS Code

Contents

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!

來源:DEV Community · dev.to