Open-source terminal coding agent with a built-in debugger and syntax-tree rewrites
Mercury CLI is an open-source (Apache-2.0) coding agent for the terminal on macOS, Linux and Windows, by @dubsthedev. When a test fails, the agent can launch it into a Debug Adapter Protocol session with bundled debugpy or js-debug adapters, stop at a breakpoint, and inspect live values. It searches and rewrites code by syntax tree across 57 languages after showing a diff, runs bundled TypeScript and Pyright language servers, supports MCP as a client and server, and connects to cloud providers or local servers (Ollama, LM Studio, vLLM, llama.cpp).
-
A debugger the agent drives: breakpoints, stepping and live values
-
Search and rewrite by syntax tree across 57 languages, with the diff shown first
-
Bundled TypeScript and Pyright language servers
-
Cloud providers or local servers (Ollama, LM Studio, vLLM, llama.cpp), switched mid-chat
-
MCP as a client and as a server
-
Debugging a failing test with breakpoints and live values
-
Rewriting code across files by syntax tree
-
Running a coding agent on local models