Featured answer
Give me an overview of mercury-agent
mercury-agent is an open-source AI agent, written mainly in TypeScript, that runs on your own machine and keeps working after you close the terminal. It keeps durable memory on disk and checks file access, shell commands and outbound requests against permission rules you set, plus a daily token budget. Messages arrive through channels (the terminal, Telegram, Discord, Slack, Signal and a local web dashboard), and a single background process owns those channels so a terminal session attaches to it. The repository has 733 files across layers including UI (64), Application (192), CLI (18), API (15), Service (34), Utility (31), Config (5), Data (2), Types (5) and Docs & Tooling (206). To start reading, begin with src/index.ts for the entry point, src/channels/cli.ts for the terminal channel, and src/core/agent.ts for the agent logic, then src/bots for the scheduled specialists.
| Layer | Files |
|---|---|
| UI | 64 |
| Application | 192 |
| CLI | 18 |
| API | 15 |
| Config | 5 |
| Data | 2 |
| Service | 34 |
| Types | 5 |
| Utility | 31 |
| Docs & Tooling | 206 |
Basis: Inferred · knowledge graph· as of 3e3b44a