Skip to content
项目

AtlasOmnia/EMH-A-Hermes-Diagnostic-Profile

在 GitHub 查看

关于

EMH: a diagnostic Hermes Agent profile (unofficial)

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
+9
15天
+8
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

EMH — A Hermes Diagnostic Profile

A read-only-first diagnostic profile that checks, answers, watches, learns, and helps rescue Hermes Agent.

Part of the AtlasOmnia Hermes Agent toolset → hermesagenttools.com/hermes-agent/

EMH is unofficial and fan-inspired, unaffiliated with Star Trek, Paramount, or any rights holder. It diagnoses software, not people, and provides no medical care. Its original source, skills, documentation, configuration, tests, and artwork are MIT-licensed; see LICENSE. This license does not grant third-party marks.

EMH infographic: how EMH checks, answers, watches, learns, and rescues — read-only first, no secrets, you approve repairs.

For a plain-language introduction, see the user guide.

Distribution version: 0.5.0.

What EMH does

  • Checks — From the repository root, run python skills/emh-triage/scripts/emh_check.py --all-profiles to check every profile and scan bounded logs for redacted problem patterns. Default output is compact plain English; add --verbose for the full table or --json for machine-readable findings.
  • Answers — Ask EMH an everyday question (setup, memory, providers, Telegram/Discord, cron, plugins, MCP). It checks its common-questions guide first, gives a short plain answer, names the check that confirms it, and suggests the next safe step.
  • Watches — The optional no-agent nightly watch compares findings with its last snapshot, stays silent when healthy, and shows new, worse, or resolved findings without a model call.
  • Learns — Community help threads are collected weekly, candidate fixes are checked by an agent, and a human reviews them before they become EMH knowledge.
  • Rescues — An optional rescue USB runs a break-glass collector, compares the current baseline with a saved one, and supports the narrowest approved repair.

What's new in 0.5

  • Ask EMH everyday questions: it now answers the most common Hermes setup, memory, provider, chat-app, schedule, plugin, and MCP questions in plain English before starting a full diagnosis.
  • New checks: memory provider installed, built-in memory full, plugins turned off by an update, Hermes update available, and scheduled messages stuck in the queue.
  • emh_check.py reads files only, but it runs hermes --version, which may do Hermes's own daily update lookup. Add --no-hermes-exec for a strictly offline run.

What's new in 0.4

  • Run python skills/emh-triage/scripts/emh_check.py --all-profiles to check every profile.
  • Default check output is compact plain English; add --verbose for the full table or --json for machine-readable findings.
  • Scan bounded logs for redacted signature findings.
  • Use a free no-agent nightly watch that stays silent when healthy.
  • Explore six focused skills for routing diagnostics.
  • Tests run on macOS, Windows, and Linux.

Start here

Quick start

  1. Clone and install EMH into a disposable Hermes home, keeping HERMES_HOME pointed at it:
git clone https://github.com/AtlasOmnia/EMH-A-Hermes-Diagnostic-Profile.git
REPO_DIR="$PWD/EMH-A-Hermes-Diagnostic-Profile"
TEST_HERMES_HOME="$(mktemp -d)"
export HERMES_HOME="$TEST_HERMES_HOME"
hermes profile install "$REPO_DIR" --name emh -y
hermes --profile emh chat
  1. Start the EMH profile chat, type setup, then describe the problem in plain language. EMH starts with read-only checks and asks for your consent before any action.

  2. Run the all-profile check from the repository root:

python skills/emh-triage/scripts/emh_check.py --all-profiles

Example default output:

EMH Check — 1 fail, 2 warnings, 1 unchecked (42 passed, 6 profiles)
Let's stabilize this first.
FAIL:
- Provider login rejected → Check API keys with hermes auth list.
UNCHECKED (not confirmed healthy):
- Profile roster could not be confirmed → Run hermes profile list.
WARN:
- Provider login expiry (2 profiles) → Refresh expiring tokens; check with hermes auth list.
Details: run again with --verbose | Machine output: --json

Use python skills/emh-triage/scripts/emh_check.py --all-profiles --verbose for the full per-check table, or add --json for schema-versioned findings.

To try the profile with its canonical one-shot greeting, run:

hermes --profile emh chat -q "Please state the nature of your Hermes emergency."

Reading the results

Status Meaning
pass This check found no issue within its scope.
warn Review this finding.
fail This check found a problem.
unknown EMH could not confirm the result; unknown is not healthy.

unsupported means the installed Hermes surface does not provide that check; it is not a pass either. Only consider a fix listed in a finding's fix_plan, and approve it explicitly. EMH does not repair issues automatically.

Free nightly watch

The standalone watch runs daily at 03:00 when you install and schedule it. From the repository root, with HERMES_HOME set to the Hermes home you intend to use, preview the copy plan and then install the files:

python skills/emh-triage/scripts/install_nightly.py --hermes-home "$HERMES_HOME" --dry-run
python skills/emh-triage/scripts/install_nightly.py --hermes-home "$HERMES_HOME"

The installer copies emh_nightly.py, emh_check.py, emh_logscan.py, emh_redact.py, and breakglass_collect.py into <HERMES_HOME>/scripts/, plus log_signatures.json into <HERMES_HOME>/signatures/. It never creates a cron job; review and run the command it prints:

hermes cron create "0 3 * * *" --name emh-nightly --script emh_nightly.py --no-agent --deliver local

This no-agent job makes no model call. It compares findings with the previous snapshot and writes only that snapshot under --state-dir (default: <HERMES_HOME>/emh/state). Only new, worse, or resolved warn/fail findings appear in local cron output; the watch stays silent when healthy or unchanged. --deliver local does not send a proactive notification. On macOS, keep the script and helper files on the internal disk, not an external volume; the gateway may not be able to read external volumes.

Safety and scope

Investigation is read-only first. The checker itself reads files only, but it runs hermes --version, which may do Hermes's own daily update lookup and refresh its update cache; Hermes's help probes may also update its install lock. For a strictly offline, no-write run, add --no-hermes-exec to skip all Hermes subprocesses. The separate --native option may make network calls and a transient write, so it requires its own approval.

Before changing configuration, installing anything, contacting an external service, or sending data, it shows the exact action and asks for explicit consent. Nothing changes until you approve it. EMH does not automatically update or restart Hermes, change providers, models, credentials, or live configuration, delete memories or sessions, repair databases, prune data, remove plugins, run destructive Git commands, upload debug data, send telemetry, publish issues, or install cron jobs, MCP servers, or plugins. Issue, push, PR, and merge remain separate approvals. Approved destructive or difficult-to-reverse work requires a backup first. Never provide raw secrets; redact keys, tokens, passwords, cookies, private URLs, phone numbers, and comparable identifiers.

EMH labels evidence as Observed, Reproduced, Confirmed in installed source, Officially documented, Known upstream fix, or Hypothesis. Live runtime evidence and installed source take priority over general advice.

Optional scheduled checks: cost and data access

Separate from the free no-agent emh-nightly watch above, setup may offer two optional agent-based jobs on the default profile. Each needs separate consent. Every run is a billed model call on the configured provider; the job prompt and its read-only results are supplied to that provider. If both jobs are enabled, expect about 30 nightly runs plus 4-5 weekly runs, approximately 34-35 billed calls per month. The monetary cost depends on the configured provider, model, and usage. The free no-agent watch is not part of those billed calls.

  • Agent-based nightly health review — daily at 03:00 (0 3 * * *). It reads bounded python skills/emh-triage/scripts/emh_check.py --all-profiles --json findings plus bounded excerpts or metadata from MEMORY.md, USER.md, state.db, cron/jobs.json, and cron/executions.db. Retention data is inspected only when both paths are explicitly configured; default Hermes session retention needs no separate prune script or log. It does not duplicate native doctor checks, contact external services, or repair state. Any native connectivity or live check remains a separate opt-in action.
  • Repo update-check — Mondays at 04:00 (0 4 * * 1). It reads the installed distribution version, the recorded source's latest commit, and the CHANGELOG delta, then reports availability without applying updates.

Neither agent-based job is registered unless you consent to that specific job. The provider's actual per-call price is not estimated here.

Development update

After changing this repository, reinstall into a fresh disposable home or update a disposable installation from its recorded source:

HERMES_HOME="$TEST_HERMES_HOME" hermes profile update emh -y

Distribution-owned content is SOUL.md, only the named emh-* skill directories under skills/, and skins/; the installer also rewrites distribution.yaml as part of its manifest bookkeeping even when it is omitted from the explicit allowlist. Generic GitHub operator overlays are not public payload, and operator/builtin sibling skills are preserved. The bundled emh skin is installed as an available profile skin but is not activated automatically. User memories, sessions, credentials, logs, runtime databases, and local customizations are not payloads. Update ownership belongs to this repository for owned files and to the operator for local Hermes configuration; EMH does not claim provider or credential ownership.

Uninstall

HERMES_HOME="$TEST_HERMES_HOME" hermes profile delete emh
rm -rf "$TEST_HERMES_HOME"  # only when the disposable home is no longer needed

For a live profile, review the delete confirmation and preserve backups before approving it. Never run the disposable cleanup command against a real Hermes home.

Source policy

Official documentation is authoritative: https://hermes-agent.nousresearch.com/docs. The concise source index and retrieval ledger live under skills/emh-triage/references/. They separate officially documented behavior from EMH recommendations and warn when docs may be newer than the installed runtime.

Technical reference

Skill inventory and version policy

The distribution contains exactly six class-level skills. Every skill carries the distribution version and moves with each release, so a skill's version always tells you which EMH release it belongs to. The six entrypoints interpret EMH and native Hermes evidence, route to the narrowest relevant domain reference, and avoid re-describing doctor-owned checks. Five of them carry a references/common-questions.md guide with plain answers to frequent questions in their area.

Skill Version Scope
emh-triage 0.5.0 Entry: interpret emh check JSON and native doctor evidence, route common questions to the owning skill, label confidence, choose a safe route, and request consent
emh-runtime 0.5.0 Provider/model/auth, memory/context, interface, environment, delegation, and Kanban edge cases
emh-gateway 0.5.0 Gateway, adapters, profile-scoped cron/delivery, TCC, and external-volume traps
emh-extensions 0.5.0 Skills, backend/Desktop plugins, MCP and tool-call dispatch/approval boundaries
emh-rescue-media 0.5.0 Preservation-first state recovery and standalone rescue-media workflows
emh-release-intelligence 0.5.0 Offline version/regression comparison, update recovery, and bounded community evidence

License

This distribution's original source, skills, documentation, configuration, tests, and artwork are licensed under the MIT License; see LICENSE. The EMH name and any Star Trek, Paramount, or other third-party marks are not granted by this license. EMH remains an unofficial, fan-inspired, and unaffiliated concept.

探索相关项目

加载中…