---
title: "Mercury AI Agent: Multi-Agent Orchestration, Autopilot Loop Detection, and 40+ Tools"
url: https://aideveloper44.com/blog/mercury-open-source-ai-agent-thinks-acts-asks-permission
description: "Mercury is an open-source, soul-driven AI agent with 40+ built-in tools, permission guardrails, multi-agent orchestration, intelligent loop detection, and Telegram integration. Runs 24/7 from your terminal."
lang: en
---

AI Tools (https://aideveloper44.com/blog/tag/ai-tools)

# Mercury: The Open-Source AI Agent That Thinks, Acts, and Asks Permission

Mercury is an open-source AI agent built around three principles: it thinks with intelligent loop detection and 25-step agentic loops, acts with 40+ built-in tools across filesystem, shell, GitHub, and Spotify, and asks — ensuring nothing happens without your explicit permission or AI self-monitoring.

A

AIDeveloper44 Team

May 25, 2026 · 5 min read

Image: Mercury: The Open-Source AI Agent That Thinks, Acts, and Asks Permission (https://media.base44.com/images/public/6a06e0a6db6965c708089f4b/1c8967e35_generated_image.png)

## What Is Mercury?

Mercury (https://mercuryagent.sh/) is an open-source, MIT-licensed AI agent from **Cosmic Stack** that takes a fundamentally different approach to autonomous agents. Rather than blindly executing tasks, Mercury is built around three core principles: **Think**, **Act**, and **Ask** — giving you full control while still letting agents run 24/7 headlessly from your terminal or Telegram.

## Multi-Agent Orchestration

Mercury can spawn parallel sub-agents to tackle concurrent tasks, each running in isolated context windows with reader-writer file locks to prevent conflicts. The system is resource-aware — max concurrent agents are auto-detected from your CPU and RAM — and fully non-blocking, so you can keep chatting while agents work in the background.

## Autopilot: Intelligent Loop Detection

One of Mercury's standout features is **Autopilot**, a loop detection engine that analyzes parameter diversity and success rates to distinguish productive work from stuck patterns:

- **Productive** — high diversity (>60%) and success rate (>70%): Mercury continues without interruption
- **Suspicious** — moderate repetition: AI self-check evaluates progress in Allow All mode, or prompts you in Ask Me mode
- **Stuck** — low diversity and high failure rate: Mercury automatically stops the execution path

## 40+ Built-In Tools, Zero Configuration

Mercury ships with a comprehensive tool library out of the box: filesystem operations, shell execution, git, GitHub PRs and issues, Spotify playback with native DJ mode, markdown skill scheduling, and real-time progress tracking with completion banners and token stats. No configuration required.

## Three Channels, One Agent

Mercury runs identically across three interfaces:

- **CLI** — Ink-based TUI with live progress, slash command autocomplete, workspace IDE mode with file explorer and git panel, and Spotify player integration
- **Web Dashboard** — React SPA at localhost:6174 with Kanban boards, Second Brain memory visualization, and provider/skill management
- **Telegram** — Single pinned status card showing live progress, ephemeral permission prompts, inline keyboards, and organization access with admin/member roles

## Second Brain Memory System

Mercury's memory architecture mimics the human mind with two layers: a **Conscious Mind** for active working memory and immediate recall, and a **Subconscious Mind** for long-term patterns and learned preferences. It auto-consolidates hourly, resolves memory conflicts by confidence score, tracks people you mention with alias resolution and relationship mapping, and keeps all data fully local in SQLite — nothing leaves your machine.

## Permission Modes and Any Provider

Choose between **Ask Me** mode (prompt for every write, command, and scope change) or **Allow All** mode (auto-approve with AI self-monitoring and a safe command whitelist). Mercury supports ChatGPT Web, GitHub Copilot, DeepSeek, OpenAI, Anthropic, Grok, and local Ollama — with automatic provider fallback tracking which one last succeeded.

Install in 60 seconds: `npm i -g @cosmicstack/mercury-agent && mercury`. Full docs and source at https://github.com/cosmicstack-labs/mercury-agent.

Read more: https://mercuryagent.sh/

open source: https://aideveloper44.com/blog/tag/open-source
AI agent: https://aideveloper44.com/blog/tag/ai-agent
CLI: https://aideveloper44.com/blog/tag/cli
multi-agent: https://aideveloper44.com/blog/tag/multi-agent
Telegram: https://aideveloper44.com/blog/tag/telegram
Mercury: https://aideveloper44.com/blog/tag/mercury

### Enjoyed this?

Get more posts like this delivered to your inbox.

← Previous

Cue: The macOS App That Brings AI to Every Text Field
https://aideveloper44.com/blog/cue-macos-app-ai-every-text-field

Next →

Agent Zero v1.16 + A0 CLI v1.10: Computer Use, Modular Speech, and Plugin Overhaul
https://aideveloper44.com/blog/agent-zero-v116-a0-cli-v110-computer-use-modular-speech-plugin-overhaul

## Related Articles

Announcements

### Vercel Adds Spend Management Capabilities to CLI

3 min read
https://aideveloper44.com/blog/vercel-adds-spend-management-cli

Tools

### Google Releases Gemini API CLI: An Experimental Terminal Tool Bringing Google's Latest Reasoning Models, Media Generation, Multimodal Analysis, and Managed Agents Into AI Coding Agents You Already Use

3 min read
https://aideveloper44.com/blog/google-releases-experimental-gemini-api-cli

Announcements

### Microsoft Introduces dotnetup: A Toolchain Manager for .NET

4 min read
https://aideveloper44.com/blog/microsoft-introduces-dotnetup-toolchain-manager

## Structured data

```json
[
  {
    "@context": "https://schema.org",
    "@type": [
      "WebSite",
      "NewsArticle"
    ],
    "name": "AIDeveloper44",
    "url": "https://aideveloper44.com",
    "isAccessibleForFree": true,
    "isPartOf": {
      "productID": "CAowsfXgCw:openaccess",
      "@type": [
        "Product"
      ]
    }
  },
  {
    "@context": "https://schema.org",
    "@type": "Organization",
    "name": "AIDeveloper44",
    "url": "https://aideveloper44.com",
    "logo": "https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/696b2bd107af20deac4cc200/9f77c0b91_a-digital-illustration-of-a-white-llama-_j4dyH5xoRnKf_3rtw-mvEQ_OdqL2BrSTtKHjJAuhTp_zg.png"
  },
  {
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Home",
        "item": "https://aideveloper44.com/"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Blog / Blog Index",
        "item": "https://aideveloper44.com/blog"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "Blog Article",
        "item": "https://aideveloper44.com/blog/mercury-open-source-ai-agent-thinks-acts-asks-permission"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "@type": "Organization",
    "name": "AINews.sh",
    "alternateName": "AI News",
    "url": "https://ai-dev-pulse-ac4cc200.base44.app",
    "logo": "https://ai-dev-pulse-ac4cc200.base44.app/logo.png",
    "description": "Developer-focused AI product releases, reviews, and news. Your source for the latest AI tools, open-source models, and platform updates.",
    "foundingDate": "2026",
    "slogan": "Stay ahead with AI product intelligence",
    "sameAs": [],
    "knowsAbout": [
      "Artificial Intelligence",
      "Machine Learning",
      "Large Language Models",
      "AI Tools",
      "Open Source AI",
      "AI Frameworks",
      "Developer Tools"
    ]
  },
  {
    "@context": "https://schema.org",
    "@type": "NewsArticle",
    "headline": "Mercury: The Open-Source AI Agent That Thinks, Acts, and Asks Permission",
    "description": "Mercury is an open-source AI agent built around three principles: it thinks with intelligent loop detection and 25-step agentic loops, acts with 40+ built-in tools across filesystem, shell, GitHub, and Spotify, and asks — ensuring nothing happens without your explicit permission or AI self-monitoring.",
    "image": "https://media.base44.com/images/public/6a06e0a6db6965c708089f4b/1c8967e35_generated_image.png",
    "datePublished": "2026-05-25T07:18:00.000Z",
    "dateModified": "2026-05-25T07:20:41.515000",
    "author": {
      "@type": "Person",
      "name": "AIDeveloper44 Team"
    },
    "publisher": {
      "@type": "Organization",
      "name": "AIDeveloper44"
    },
    "mainEntityOfPage": {
      "@type": "WebPage",
      "@id": "https://aideveloper44.com/blog/mercury-open-source-ai-agent-thinks-acts-asks-permission"
    },
    "isAccessibleForFree": true
  }
]
```