Try it now
npx @cosmicstack/mercury-agent
Permission-aware. Memory-backed. Always on.
Mercury Agent is a soul-driven AI agent that asks before it acts, remembers what matters, and stays reachable from the CLI or Telegram without turning into a black-box automation bot.
$ npx @cosmicstack/mercury-agent
$ mercury doctor
$ mercury up
Memory: SQLite + FTS5
Channel: CLI / Telegram
Mode: permission-hardened
State: runs 24/7
Quick Start
The public README starts with a lightweight setup flow: run the package, finish the wizard, and promote it to a background service only when you want the agent to stay up.
Try it now
npx @cosmicstack/mercury-agent
Install globally
npm i -g @cosmicstack/mercury-agent
Keep it running
mercury up
Why Mercury
Most AI agents can read files, run commands, and call tools. Mercury Agent turns those abilities into a safer operating model: approvals before action, persistent user context, a personality you own, and daemon controls that make 24/7 usage practical.
Fast thesis
Instead of presenting tool use as invisible magic, Mercury keeps the loop legible. Setup is quick, permissions are explicit, and the memory layer is not an afterthought.
Reading lens
The public repo highlights shell blocklists, scoped read and write boundaries, token budgets, structured memories, and boot-time services because those are the mechanics that decide whether an agent is usable day after day.
01
Mercury asks before it acts, blocks dangerous shell patterns, and keeps access scoped instead of assuming blanket authority.
02
Preferences, goals, habits, and other structured memories live in SQLite with FTS5 so context can persist beyond a single session.
03
Personality is defined by markdown files you own, including soul.md,
persona.md, taste.md, and heartbeat.md.
04
Daily budgets and an in-chat /budget command keep Mercury aware of
resource limits instead of pretending usage does not matter.
05
Mercury can start locally, stream replies in the terminal, and optionally open up a Telegram channel for remote access.
06
mercury up installs the right service model for the platform, starts the
agent, and gives you a practical way to keep it online.
How It Works
Start with npx @cosmicstack/mercury-agent or add the global
mercury command for repeated use.
First run asks for your name, an API key, and optionally a Telegram bot token. The repo positions this as a roughly 30-second step.
Mercury is designed around explicit approvals, pending access, and bounded file or shell behavior instead of silent execution.
Structured memory allows recurring preferences, goals, and habits to survive across conversations.
Use mercury up when you want Mercury to run continuously with crash
recovery, service management, and remote reachability.
FAQ
The core difference is operational discipline: Mercury foregrounds approvals, scoped access, persistent memory, and daily token budgets instead of treating those concerns as optional.
No. The project includes daemon mode, status and logs commands, and service installation for macOS, Linux, and Windows workflows.
No. Telegram is optional. The first-run path works from the CLI, and Telegram can be added later if you want a remote channel.
The repository describes a SQLite-backed Second Brain with FTS5 full-text search and multiple memory types for preferences, goals, habits, and related context.
The service layer documented in the public repo covers macOS LaunchAgent, Linux systemd user units, and Windows Task Scheduler.
No. This page is an independent explainer built around the public Mercury Agent repository. The GitHub repo remains the source of truth for releases and docs.