暂无描述

Lukas Goldschmidt 0af4bf3964 refactored decision engine by codex 2 周之前
scripts 8157c558d4 Add replay harness and decision tuning docs 3 周之前
simulation fea9d91d0f stable 3 周之前
src 0af4bf3964 refactored decision engine by codex 2 周之前
tests 0af4bf3964 refactored decision engine by codex 2 周之前
.env.example f129a77d0c chore(release): v0.1.1 3 周之前
.gitignore 0af4bf3964 refactored decision engine by codex 2 周之前
DB_SCHEME.md 5c2a0e5e8e Polish Hermes dashboard and polling 3 周之前
HERMES_CONCERNS.md 5c2a0e5e8e Polish Hermes dashboard and polling 3 周之前
HERMES_CYCLE.md 5c2a0e5e8e Polish Hermes dashboard and polling 3 周之前
PROJECT.md 88c569fc7e Initial Hermes MCP scaffold 4 周之前
README.md 7fb1c0c720 Add concern playbooks and dashboard control polish 3 周之前
RELEASE_NOTES.md 7fb1c0c720 Add concern playbooks and dashboard control polish 3 周之前
TRADER_COMPATIBILITY_NOTE.md f56fa028ad Improve Hermes grid-trend switching 3 周之前
UPGRADE_PLAN.md 8157c558d4 Add replay harness and decision tuning docs 3 周之前
hermes.md 302f73a7d0 Add trader compatibility note 4 周之前
hermes_and_strategies.md 302f73a7d0 Add trader compatibility note 4 周之前
killserver.sh 88c569fc7e Initial Hermes MCP scaffold 4 周之前
pyproject.toml 7fb1c0c720 Add concern playbooks and dashboard control polish 3 周之前
requirements.txt 88c569fc7e Initial Hermes MCP scaffold 4 周之前
restart.sh 88c569fc7e Initial Hermes MCP scaffold 4 周之前
run.sh 88c569fc7e Initial Hermes MCP scaffold 4 周之前
tests.sh 88c569fc7e Initial Hermes MCP scaffold 4 周之前
upgrade_0.6.0.md 0af4bf3964 refactored decision engine by codex 2 周之前

README.md

Hermes MCP

Hermes MCP is a FastAPI + MCP supervisor for market interpretation, strategy selection, and Trader control.

What Hermes does

  • builds a market narrative from regime data
  • scores strategy fit for each account/market concern
  • records decision snapshots for audit and dashboarding
  • optionally dispatches Trader control actions through a single guarded write path

Surface

  • MCP transport: /mcp/sse
  • Health: /health
  • Dashboard: /dashboard/
  • Primary tool: report()

The dashboard now includes:

  • overview
  • playbooks
  • concern detail pages
  • decision changes

The report() tool returns the current Hermes state plus a compact per-concern summary including:

  • concern id
  • active playbook
  • active assigned strategies
  • balances
  • total value

Hermes to Trader control path

Hermes reads Trader state via strategy snapshots and writes only through Trader's canonical action tool:

  • apply_control_decision(payload)

Dispatch is gated locally by:

  • HERMES_ALLOW_ACTIONS

When the gate is false, Hermes still makes and records decisions, but returns a blocked dispatch result instead of changing Trader state.

Run

./run.sh 8590

Test

./tests.sh

Replay decisions

Hermes now stores a full replay_input bundle with each new decision, so stored decisions can be replayed against the current decision engine.

Replay recent decisions:

python3 scripts/replay_decisions.py --limit 20

Only show changed outcomes:

python3 scripts/replay_decisions.py --limit 50 --only-changed

JSON output:

python3 scripts/replay_decisions.py --limit 50 --json

Optional filter by concern:

python3 scripts/replay_decisions.py --concern-id <concern-id>

Note: decisions created before this replay capture existed will not have replay_input yet.