hermes-agent/gateway
Teknium 49e4e5e691
feat: Prime-Agent parity cluster — goal quality gates, /heartbeat, /refine
Integrates the three Prime-Agent (PrimeIntellect-ai/prime-agent) harness
features that fit Hermes' architecture, adapted rather than ported:

- /goal gate add <cmd>: deterministic quality gates on the goal loop.
  Gates run at turn boundary BEFORE the LLM judge; a failing gate's
  bounded output becomes the continuation prompt, unchanged workspaces
  (git fingerprint) are not re-run, retries are bounded with auto-pause.
- /heartbeat every <interval> <prompt>: one recurring re-entry prompt
  per session, injected as a plain user turn only when idle; missed
  ticks coalesce; state persists in SessionDB and migrates across
  compression rotations. CLI watchdog thread + gateway-wide poller.
- /refine [focus]: user-triggered run of the existing background
  memory/skill review fork, with optional focus instructions appended
  to the review prompt. Automatic reviews are byte-identical to before.

RLM (IPython-only tool surface) deliberately excluded per request; the
daemon/worker detach layer and root-session A2A messaging are covered
by the gateway, sessions DB, delegation, and send_message and were not
duplicated.

All three features are cache-safe (plain user-role injections, no
system-prompt mutation) and alternation-safe.
2026-08-05 14:06:40 -07:00
..
assets
builtin_hooks
platforms refactor(gateway): route session event stream through _sse_frame (ensure_ascii=False) 2026-08-04 13:07:44 +05:30
relay fix(gateway): bound go_dormant ws.close with teardown timeout 2026-08-04 11:17:11 +05:30
__init__.py
authz_mixin.py fix(secrets): route authz gate and pairing allowlist reads through the profile secret scope 2026-08-02 10:02:33 -07:00
cgroup_cleanup.py
channel_directory.py feat(gateway): simplex channel enumeration + show configured platforms in hermes send --list 2026-08-02 15:08:45 -07:00
code_skew.py
config.py
cwd_placeholder.py
dead_targets.py
delivery.py
delivery_ledger.py
display_config.py
drain_control.py
hooks.py
kanban_watchers.py fix: use lazy logging with %s formatting in logger calls 2026-08-02 23:17:40 +05:30
lifecycle_ledger.py
memory_monitor.py
message_timestamps.py
mirror.py
pairing.py fix(secrets): route authz gate and pairing allowlist reads through the profile secret scope 2026-08-02 10:02:33 -07:00
platform_registry.py fix(teams): suppress SDK import-time dotenv instead of clearing environ 2026-08-01 15:34:19 -07:00
profile_routing.py
readiness.py
response_filters.py
restart.py fix(gateway): defer in-band restart until active turns finish (#77184) 2026-08-03 09:57:58 +05:30
restart_loop_guard.py
rich_sent_store.py
run.py feat: Prime-Agent parity cluster — goal quality gates, /heartbeat, /refine 2026-08-05 14:06:40 -07:00
runtime_footer.py feat(gateway): add opt-in 'latency' runtime footer field 2026-08-03 17:16:57 +05:30
scale_to_zero.py
session.py perf: replace COUNT(*) with LIMIT-based existence checks 2026-08-03 17:31:29 +05:30
session_context.py fix(cron): scope cron approval context per session 2026-08-03 00:25:20 +05:30
session_stall.py feat(gateway): session activity watchdog, stall notify, compress timeout (#72424) 2026-08-02 16:16:36 -07:00
session_state.py
shutdown_flush.py
shutdown_forensics.py
shutdown_watchdog.py
slash_access.py
slash_commands.py feat: Prime-Agent parity cluster — goal quality gates, /heartbeat, /refine 2026-08-05 14:06:40 -07:00
status.py fix(windows): native Windows correctness for CLI, gateway status, banner, and WSL browser paths 2026-07-29 23:16:18 -07:00
status_phrases.py
sticker_cache.py
stream_consumer.py fix(gateway): stop stale streamed finalize from suppressing the complete Telegram response 2026-08-01 10:51:55 -07:00
stream_dispatch.py
stream_events.py
streaming_tts_consumer.py
systemd_notify.py
turn_context.py fix(gateway): reap only the background processes an abandoned turn created 2026-08-02 14:23:55 +05:30
turn_lease.py
wake.py
whatsapp_identity.py