mercury-agent
Configure and operate Mercury, its engines and Observatory.
- License 许可
- MIT
- 最近更新
- 2026-10-09
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- mercury-agent
- author
- Hermes Agent + Teknium
- license
- MIT
- version
- 4.0.0
- metadata
- { "mercury": { "tags": [ "hermes", "setup", "configuration", "multi-agent", "spawning", "cli", "gateway", "bots", "bot-mode", "features", "themes", "skins", "desktop-plugins", "tui-widgets", "petdex", "development" ], "homepage": "https://github.com/fengwhang/mercury", "related_skills": [ "claude-code", "codex", "opencode" ] } }
- platforms
- [ "linux", "macos", "windows" ]
- description
- Configure and operate Mercury, its engines and Observatory.
02 资源文件 22
- 参考文档references/background-systems.md3.7 KB
- 参考文档references/cli-reference.md6.7 KB
- 参考文档references/configuration.md5.3 KB
- 参考文档references/contributor-guide.md6.4 KB
- 参考文档references/desktop-plugins.md11.9 KB
- 参考文档references/engine-tools.md3.1 KB
- 参考文档references/native-mcp.md11.8 KB
- 参考文档references/petdex.md3.2 KB
- 参考文档references/portal-auth-for-third-party-apps.md6.4 KB
- 参考文档references/profiles.md4.7 KB
- 参考文档references/project-context-files.md1.7 KB
- 参考文档references/providers-and-models.md3.7 KB
- 参考文档references/security-privacy.md3.8 KB
- 参考文档references/slash-commands.md6.0 KB
- 参考文档references/themes.md6.7 KB
- 参考文档references/troubleshooting.md3.6 KB
- 参考文档references/tui-widgets.md6.3 KB
- 参考文档references/webhooks.md7.7 KB
- 参考文档references/windows-quirks.md2.4 KB
- 脚本templates/clock.mjs1.4 KB
- 脚本templates/plugin.js3.1 KB
- 参考文档templates/skin.yaml1.4 KB
03 SKILL.md 正文
Mercury
Mercury combines its Hermes conversation engine and its omp coding engine with shared model settings, credentials, skills, and an Observatory. mLounge is the browser frontend fork of The Lounge; MIRC is Mercury's chat transport fork.
Verify the fork first
Use mercury --help, the relevant subcommand's --help, /help, and the
Mercury source/README at https://github.com/fengwhang/mercury. For nightly,
use mercury-nightly consistently, including configuration and profile commands.
Upstream Hermes and omp documentation explains inherited features, but Mercury's
source takes precedence for profiles, delegation, approvals, models, and services.
Do not install stock Hermes or omp to repair a Mercury installation.
Everyday commands
mercury setup
mercury model
mercury doctor
mercury chat -q "Research this issue"
mercury omp
mercury setup observatory
mercury observatory login
mercury observatory doctor
mercury observatory restart
The login card gives the web URL and MIRC connection settings. A Tailscale MIRC
host uses its MagicDNS name when available; enter that host without http://.
!restart in the managed gateway room restarts the full Observatory, including
when mLounge is not installed. Observatory agent sessions persist until !exit;
transport reconnects and closing a browser are not session termination commands.
Paths and profiles
$MERCURY_HOME is the installation home: normally ~/.mercury for stable or
~/.mercury-nightly for nightly. $HERMES_HOME is the selected Hermes runtime
home. The launchers set these variables; do not overwrite them in a shell tool.
mercury config pathidentifies the selected YAML configuration.mercury config env-pathidentifies the shared secrets file.- Both engines read
$MERCURY_HOME/skills/in the default profile and the selected named profile'sskills/directory otherwise. Fresh profiles get stock Mercury skills; clones copy the source profile's skills. - Default Markdown instructions live in
$MERCURY_HOME/config/. - Named profiles live in
$MERCURY_HOME/hermes/profiles/<name>/, with their ownconfig.yaml, runtime state, andconfig/instruction folder.
Read references/profiles.md for creation, cloning, prompt files, and launching either engine. Read references/project-context-files.md when choosing between profile instructions and repository rules.
For durable memory, load mnemosyne-memory. Hermes uses mnemosyne_remember
and mnemosyne_recall; OMP uses retain and recall. Both engines share one
Mnemosyne bank within a profile, with separate banks for other profiles.
mercury[-nightly] -p <name> memory remember|recall offers a profile-aware CLI
fallback and verified write receipts.
Models, reasoning, and permissions
Setup selects default, fallback, delegate, and delegate fallback, with reasoning
and context-window selection immediately after each model selection. Extra retry models require editing
models.fallback_chain or models.delegate_fallback_chain in the selected
config. Each of the four models can use a different provider. Both engines honor provider-advertised effort choices and mandatory
reasoning; do not invent effort tiers when the API exposes no selector.
Unknown/offline effort metadata retains compatibility behavior. Context choices
use the serving provider's advertised default/maximum: a single advertised
window gets Default/Custom, and missing metadata gets automatic detection or
Custom. models.context_windows shares per-model budgets across both engines.
Compaction is enabled by default. mercury setup context selects 50%, 75%, or
a custom percentage shared with OMP. The Context Engine Plugin Tools checkbox
controls plugin tools, not the built-in compressor.
omp has exactly one model role, task. Task descriptions and profile personas
are not additional model roles. Do not add planner, reviewer, leaf, or
orchestrator model roles to omp configuration.
Hermes and omp approval options are distinct. Use mercury setup approvals, or
mercury setup hermes-approvals / mercury setup omp-approvals. Read
references/security-privacy.md before changing
permissions. A child's approval travels through its ancestors to the user,
including across engine boundaries; delegation does not bypass permissions.
Delegation and long-running work
Hermes delegate_task runs Mercury omp children. Use the live tool schema for
single, batch, background, and follow-up operations. Children inherit the selected
profile's model settings and instruction files. Read
references/background-systems.md for the
current delegation contract, cron, and skill curation.
For a separate interactive profile, run mercury -p coder chat or
mercury omp -p coder. In the managed MIRC gateway room, use
!spawn reviewer -p coder or !spawnomp reviewer -p coder. Delegated code writers
follow the repository's worktree rules; do not share an editing checkout across
concurrent workers.
Detailed references
Load the relevant reference when its details matter; verify uncertain behavior against the current fork rather than inferring it from an upstream manual.
| Task | Reference |
|---|---|
| CLI commands and flags | cli-reference.md |
| In-session commands | slash-commands.md |
| Profiles and prompt isolation | profiles.md |
| Providers and model aliases | providers-and-models.md |
| Engine configuration, toolsets, voice | configuration.md |
| Profile and project instructions | project-context-files.md |
| Permissions and privacy | security-privacy.md |
| Shared skills and engine tool mappings | engine-tools.md |
| Delegation, cron, curator | background-systems.md |
| MCP servers | native-mcp.md |
| Webhooks | webhooks.md |
| Themes | themes.md |
| Desktop extensions | desktop-plugins.md |
| TUI widgets and pets | tui-widgets.md, petdex.md |
| Troubleshooting | troubleshooting.md, windows-quirks.md |
| Contributions | contributor-guide.md |
| Nous Portal access by another app | portal-auth-for-third-party-apps.md |
Operating constraints
Keep system prompts stable within a conversation. Updated profile Markdown is
loaded for a new session; do not rewrite a running agent's cached prompt.
Put credentials in the secrets file and behavior in configuration. Use the
selected engine's actual tool schema: Hermes names such as terminal and
read_file are not universal omp tool names. Preserve upstream SDK identifiers
and provider IDs when they are the real integration contract.
04 同仓库更多 Skills
greet
A greeting skill for testing
valid-skill
A valid skill for testing purposes.
unknown-field
A skill with an unknown frontmatter field.
no-frontmatter
暂无简介
child-skill
A nested skill in a subdirectory.
different-name
A skill with a name that doesn't match the directory.