Whq02/MercuryCLI
Tentang
Terminal-native agent with a full IDE. Debugger, LSP, syntax-tree edits, multi-model crews
Alat pengembanganPertumbuhan bintang terukur
- dalam 24 jam
- +1
- dalam 7 hari
- +3
- dalam 15 hari
- +5
- dalam 1 bulan
- +9
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliA terminal-native environment for AI coding agents in your own git repos (macOS, Linux, Windows).
English | 简体中文 | 繁體中文 | 한국어 | Deutsch | Español | Français | Italiano | Dansk | 日本語 | Polski | Русский | Bosanski | العربية | Norsk | Português (Brasil) | ไทย | Türkçe | Українська | বাংলা | Ελληνικά | Tiếng Việt
An agent reads and modifies files, runs shell commands, steps through tests and debuggers and checks the results. You get to pick the model provider, model and what the agent is allowed to do. Mercury is used to build Mercury with parallel sessions and models. Each session creates a handoff note at the end. The next session reads it once at startup with your pinned rules. No context poisoning between sessions.

Mercury is open source under Apache License 2.0. So are the sdk/ and sdk-py/ SDKs.
Install
Apple silicon and Intel Macs, Linux x64 and arm64, Windows x64 and arm64 release archives come with Node and ripgrep (the only thing you need separately is git):
curl -fsSL https://mercury-cli.ai/install | sh # macOS and Linux (x64 and arm64)
irm https://mercury-cli.ai/install.ps1 | iex # Windows (x64 and arm64), in PowerShell 7
brew install Whq02/mercury/mercury # Homebrew: macOS and Linux x64
npm install -g mercury-tech-cli # npm; `bun install -g mercury-tech-cli` is the same package
mise use -g npm:mercury-tech-cli # mise, through the npm package
If you want to run a Windows archive without installing it, just extract it and then run mercury\mercury.exe from PowerShell / Command Prompt. You'll find mercury.cmd and mercury.ps1 in there too.
The install addresses keep an approximate count of script requests by source and UTC day (it doesn't count completed installs). The counter doesn't keep any IP address, user-agent string or cookie. Open a new terminal (or run the export PATH=… line from the shell installer's printout), verify mercury --version. Run mercury in a repo. Read docs/INSTALL.md, docs/INSTALL-WINDOWS-FROM-SOURCE.md and AGENTS.md for mercury update, release verification, requirements and build from source.
What is inside
- 24 model providers,
/llmhostand/localsetup: keep all 24 providers signed in at once (OpenAI, Anthropic, Google, DeepSeek, Moonshot, Z.AI, OpenRouter, Hugging Face, xAI, Meta, Mistral, Nous Portal, OpenCode Zen, Qwen, MiniMax, Together AI, Cohere, Groq, Cerebras, Fireworks AI, Melious AI, OrcaRouter, Devin, Amazon Bedrock, or your own local/hosted weights) and switch models mid-chat; new sessions default to your most recently connected provider. Rent or host weights with/llmhostandmercury host(docs/LLM-HOST.md), run a local model on TensorFold with/tensorfold(docs/TENSORFOLD.md), connect Ollama, LM Studio, vLLM or llama.cpp with/localsetup(docs/LOCAL-SETUP.md), and see docs/ENGINES.md for sign-ins and routing. - The daily loop, Session Manager and crewmates: interactive launches open the home screen (New Session, Continue Last Session once session history exists, Logins/Keys, Session Manager, Boot Menu, which holds MCPs & Skills and Agents for the next session, and Profiles; use
/health,/schedule, and/sessionsinside a chat); run parallel sessions on/concourseand delegate to cross-provider crewmates (Crewmate) in isolatedgit worktreecheckouts with project file leases (docs/SESSIONS.md, docs/CREW.md). - Headless CLI and JSON-RPC runner: run one-shot prompts with
mercury run "<prompt>"(--format text|json|rows,--input rows,--partial), or host multi-turn sessions over stdio withmercury runnerand the TypeScript and Python SDKs (docs/AUTOMATION.md, sdk/, sdk-py/). - Mneme hybrid RAG project memory: on-device 118 MB BGE semantic embeddings (
bge-base-en-v1.5, bundled in every release archive, built for its platform) fused with BM25 word ranking, citation tracking, verbatim pinned rules, contradiction checks, session handoff notes, and the/memory pagebrowser graph (docs/MNEME.md, docs/MEMORY-FINDINGS.md). - LSP, 57-language AST, DAP debugger and
Evalcells: anchored multi-file edits (docs/CHANGE-TRANSACTIONS.md), LSP navigation and previewed refactors (docs/LANGUAGE-SERVICE.md), 57-language tree-sitter search and rewrites (docs/STRUCTURAL-PATTERNS.md), Debug Adapter Protocol stepping for failing Python, JS/TS, Go and Rust tests (docs/DEBUGGER.md), and persistent Python and JavaScript code cells with browser samples (docs/EVAL.md, docs/SAMPLES.md). - Keyless
WebSearchand markdownWebFetch: cascades through provider-native search, Brave or Tavily keys, official APIs (Stack Exchange, npm, PyPI, crates.io, GitHub, Hacker News, Wikipedia), SearXNG and keyless DuckDuckGo, and reads public pages as markdown within a 38,000-character call budget (docs/ENGINES.md). - Computer use, Whisper voice, Saturn, video and editor bridges: desktop control with
Computer(docs/COMPUTER-USE.md), on-device Whisper dictation with/voice(docs/VOICE.md), recurring or one-shot schedules with/schedule(docs/SATURN.md), MiniMax video generation (docs/VIDEO.md), and bridges for VS Code (mercury acp), Unity, Blender, Godot and Aseprite.
Check out docs/README.md for the full doc catalogue (docs/TRUST.md, docs/KIT.md, docs/EXTENSIONS.md, docs/HEALTH-CERTIFICATE.md, docs/APOLLO-MODE.md, docs/DURABILITY.md, docs/COMPATIBILITY.md).
Slash commands
/help shows you the interactive commands you can use and /palette searches them (MERCURY_SAMPLES=1 will give you /samples under current work):
| Domain | Commands |
|---|---|
| current work | /run /runs /workbench /diff /goal |
| crew & delegation | /agents /crewmates /crew /swarm /swarmchat /general /team /whisper /daemon /schedule /seats /kill /unkill |
| session & context | /clear /compact /context /rewind /sessions /concourse /rename /title /export /copy /usage /restart |
| memory & goals | /memory |
| model & effort | /model /effort /submodels /advise /caching /tensorfold /copyedit |
| git & review | /review /audit |
| health & introspection | /health /verify /trace /capabilities /lsp |
| config & setup | /config /jev /localsetup /llmhost /imagesetup /permissions /hooks /mcp /extensions /skills /browser /orient /keybindings /keys /vim /mouse /keysetup /bootmenu /voice |
| appearance & cockpit | /appearance /critter /palette /zen /browse |
| account & app | /logins /logout /accounts /defaultprovider /update-notes /feedback /help /exit |
| Command | What it does |
|---|---|
/imagesetup |
Set up local image and video models. |
/llmhost |
Pick a model to rent from Runpod, Vast.ai, Lambda, Hugging Face Inference Endpoints, Hyperstack, Verda or DigitalOcean. Or run it on your own computer. Or connect an existing server. |
/tensorfold |
Run a local model on TensorFold. Install the engine, pull a model, run it on your computer, expose it on your network, rent a GPU for it, switch to it. All on one screen. |
/restart |
Switch this chat to the installed Mercury build (stops running watches and background shells). |
/mcp |
Inspect servers, log in, see the tools and parameters of each server. Reconnect, or turn a server on/off for this chat. |
Author
Developed by Waleed Al Qusous (@dubsthedev). GitHub · mercury-cli.ai
Reporting a problem
For a quick report (OS, what you did, what broke, no health dump) use the tester form or /bug --short <what you tried> in Mercury. Run /bug <what happened> to preview and submit a full report using your signed in GitHub CLI (gh) or open an issue with your --version output, OS, terminal, steps and mercury health --json (node dist/mercury.mjs health --json for a source build). For security issues, please report privately via the repository's Security tab (SECURITY.md). For pull requests and checks, check CONTRIBUTING.md.
Licence
Mercury CLI is licensed under the Apache License 2.0 (Apache-2.0). See LICENSE.md. The TypeScript and Python SDKs are licensed under the same licence (sdk/LICENSE and sdk-py/LICENSE).
The trademark policy covers use of the Mercury name and marks. Bundled third-party licences are listed in THIRD_PARTY_NOTICES.md.
Jelajahi proyek terkait
Memuat…