Mercury Decide plugin for Agent Zero
Adds Inception Mercury-Decide (System One) decision model to Agent Zero: send a shared state plus typed questions, get calibrated choice/score/yes_no answers with probabilities.
Features
- Agent tool
mercury_decide: call the Mercury-Decide API withstate+ typedquestions, returns calibrated choice/score/yes_no answers. - WebUI: sidebar quick action opens a modal to compose state/questions, run decisions, and view results. Samples included.
- Model: uses
mercury-decidevia the shared Inception API key.
Installation
-
Copy or clone this repository into your Agent Zero user plugins directory:
git clone <repo-url> /a0/usr/plugins/mercury_decide -
Enable the plugin in the Agent Zero Plugins list (it's on by default when present).
-
Reload the web UI.
No external Python dependencies are required — the plugin uses the standard library and the shared Inception API helper.
Configuration
Requires the shared INCEPTION_API_KEY (already used by the Inception provider). No per-plugin configuration is needed.
Usage
Agent tool
Send state (JSON) and questions (JSON mapping question name to {"type": "choice"|"score"|"noul", ...}):
{
"tool_name": "mercury_decide",
"tool_args": {
"state": {"user_tone": "urgent", "issue": "api_down"},
"questions": {
"should_escalate": {"type": "noul"}
}
}
}
WebUI
Open the Mercury Decide modal from the sidebar action, compose the state and questions, run the decision, and view the calibrated results.
External service
This plugin calls the Inception Mercury-Decide API (/v1/decisions). It uses the shared INCEPTION_API_KEY; API usage may count against your Inception plan's limits.
Cleanup / uninstall
- To uninstall, remove the
mercury_decideentry fromusr/plugins/and disable it in the Plugins list. - The plugin stores no secret data; no additional cleanup is required.
Endpoints used
POST /v1/decisions(Inception Mercury-Decide)
Development layout
api/ API handlers (decide, status)
tools/ agent tool (mercury_decide)
prompts/ agent tool prompt docs
webui/ WebUI modal (main.html, store.js)
extensions/ UI extension (model-context-strip-end)
License
MIT — see LICENSE.