What it is
Omniscience is a Hermes Agent plugin that records what the agent does, as it happens, and draws it as a graph you can read at a glance. Sessions, turns, model calls, tool calls, helper agents and lost-event gaps all sit on one canvas. You watch a long run live instead of scrolling a log, then scrub back through the same graph to the step where something went wrong.
Why it's different
The graph is live and the replay is deterministic. Other tools import a finished trace or report on cost after the fact. Omniscience maps the run as it unfolds, then lets you rewind that same graph, step by step, with the same layout every time. It stores metadata only: names, timings, sizes and statuses, never prompts, arguments or outputs.
Features
- Live execution graph. Sessions, turns, model requests, tools, helper agents and
GAPmarkers for lost events, updated from the recorder's SQLite file over a local WebSocket. - Deterministic replay. Drag the replay bar to any step and the graph is rebuilt from the rows up to that point. Nothing is re-run.
- Fold busy turns. A long turn folds into one box such as "60 model calls · 4 tools"; open it when you need the detail.
- Plain-English triage. A verdict line, "Where the time went", Things worth a look, a failure stepper, and explanations built only from recorded fields.
- Five main views — List, Map, Time, Tokens, Usage — plus Flame, Tools, Context, Helpers, Coverage, Latency, Concerns and Privacy.
- Usage page. Tokens per call, cache share, model and provider tables, compactions and Hermes' own cost estimate, clearly labelled as an estimate.
/omni tokensprints the short version in chat. - In-chat turn summary. A short digest at the end of each turn, on by default, with
brief,standardandfulldetail levels. /omnicommand. Triage the current chat, show usage, pause recording for this chat (/omni off), resume it, or delete its recording (/omni forget confirm).- Privacy controls. Recording can be paused per chat; the viewer has a privacy page and can flag a sensitive tool run into a standalone dossier.
- Export and bundles. CSV exports of steps, chats and models; a redacted JSON problem bundle you can preview before writing.
- Local by default. The viewer binds
127.0.0.1, opens the database read-only, and uses a per-launch key. No cloud service, no telemetry endpoint. - Never blocks the agent. Hooks copy metadata onto a bounded queue of 10,000 events; a background thread writes batches to SQLite. Drops are counted, not hidden.
- Hermes dashboard tab.
dashboard/mounts the same live view inside the Hermes dashboard when the plugin is enabled. - History import. Chats that ran before the plugin was enabled are imported from Hermes' own state database, metadata only.
Screenshots
Install
hermes plugins install KeyArgo/hermes-omniscience --yes-deps --enable
Then restart the Hermes gateway once so it loads the plugin. Omniscience never restarts it for you.
Requirements:
- Hermes Agent v0.23.0 or newer (
requires_hermes: ">=0.23.0"inplugin.yaml). - FastAPI and uvicorn for the bundled viewer; Hermes already ships both.
- A WebSocket library (
websocketsoruvicorn[standard]) for the live feed; the top bar shows OFFLINE without one. - Node and npm only if you want to rebuild the web UI from
web/.
The plugin starts its viewer on 127.0.0.1:8797 the first time it loads, answering this computer only, behind a per-launch key that /omni and the dashboard page pass along for you. Recording continues even when the viewer is down.
Quick start
No Hermes needed. This serves the bundled viewer against generated demo data.
git clone https://github.com/KeyArgo/hermes-omniscience
cd hermes-omniscience
python3 -m venv .venv && . .venv/bin/activate
pip install -r requirements-dev.txt
PYTHONPATH=viewer_app python3 -m omniscience_viewer --demo
Open http://127.0.0.1:8797. --demo writes a temporary events database and does not touch ~/.hermes.
To run the viewer against a real Hermes recording instead, omit --demo; it reads
$HERMES_HOME/plugin-data/omniscience/events.db (normally ~/.hermes/plugin-data/omniscience/events.db).
More launch flags and the Windows steps are in docs/INSTALL.md.
How it works
flowchart LR
H["Hermes observer hooks"] --> R["register() in __init__.py"]
R --> S["sanitize.py<br/>allowlist + redaction"]
S --> Q["bounded queue<br/>10,000 events"]
Q --> W["writer thread<br/>batches of 500 / 250 ms"]
W --> D[("events.db<br/>SQLite WAL, mode 0600")]
D -->|"read-only"| V["viewer<br/>FastAPI on 127.0.0.1:8797"]
V --> B["browser<br/>React + React Flow"]
V --> X["/api/v1/* and WS /api/v1/live"]
B --> G["reduce.ts<br/>events to nodes and edges"]
G --> P["deterministic replay<br/>reduce events[0..k]"]
The plugin runs inside Hermes and does no network work on the hook path. Each callback copies a small allowlisted set of fields and pushes an event onto a bounded queue; a daemon thread writes batches to a local SQLite database. The viewer is a separate process that opens that database read-only and serves the React UI plus a REST and WebSocket API. The browser reduces the event rows into nodes and edges with a pure function, so replay at step k is just the same reduction over the first k rows. Lost events appear as GAP markers rather than disappearing.
Named modules: __init__.py, sanitize.py, store.py, schema.py for recording; viewer/omniscience_viewer/app.py and db.py for the API; web/src/graph/reduce.ts for the graph; demo/synth.py for demo data. The full picture, including the event contract and on-disk locations, is in docs/ARCHITECTURE.md.
Documentation
| Document | What it covers |
|---|---|
| docs/README.md | Index of every guide in docs/ |
| docs/ARCHITECTURE.md | Components, data flow, event contract, on-disk data |
| docs/INSTALL.md | Install, upgrade, uninstall, viewer flags |
| docs/CONFIGURATION.md | Every environment variable and stored setting |
| docs/DEVELOPMENT.md | Repository layout, suites, CI and documentation stamps |
| docs/USAGE.md | A walkthrough of the viewer and the /omni command |
| docs/REFERENCE.md | Hooks, events, HTTP routes, CLI, rules and config keys |
| docs/TROUBLESHOOTING.md | Real failure modes and what to do |
| docs/USER-GUIDE.md | How to read the viewer in depth |
| docs/UI-GUIDE.md | A guide to every control on the screen |
| docs/FAQ.md | Short answers to the first questions |
| docs/COVERAGE.md | Which Hermes hooks are recorded, and which are not |
| docs/HERMES_INTEGRATION.md | Verified hook payloads and Hermes version compatibility |
| docs/SECURITY.md | Threat model, collection policy, what leaves the machine |
| docs/SECURITY-AUDIT.md | A module-by-module security audit |
| docs/DECISIONS.md | Design decisions and their reasoning |
| docs/ROADMAP.md | What is built, what is next, what is parked |
| docs/DEMO.md | A 90-second demo script |
| docs/VERSIONING.md | Version scheme and the documentation currency rule |
| docs/BUG-LOG.md | Known defects and examined non-defects |
| docs/DOC-INDEX.md | Generated index with the build stamp of each guide |
| docs/dev/REGRESSION_TESTING.md | Regression and performance requirements |
| TESTING.md | How to run each suite, counts, and what CI runs |
| VERIFY.md | A short install verification |
| LIMITS.md | What the plugin deliberately does not do |
| CHANGELOG.md | Release history |
| CONTRIBUTING.md | Dev setup, tests, commit style, PR flow |
| CODE_OF_CONDUCT.md | Contributor Covenant 2.1 |
| SECURITY.md | How to report a vulnerability privately |
| THIRD-PARTY.md | Third-party projects this repo uses |
Privacy & security
- Stored: IDs, timestamps, durations, model and provider names, token counts, statuses, error types, tool names, argument names and character counts.
- Not stored: prompts, conversation history, assistant text, tool argument values, tool results, request or response bodies, headers, environment values, credentials. Error messages are kept only as a length.
- Free text that is kept (such as an error reason) is truncated and passed through pattern-based redaction. Pattern matching can miss an unusual secret, so it is not the only protection you should rely on.
- Network calls: the recorder makes none and the viewer serves loopback only. The written diagnosis (
/omni insight) runs inside Hermes through the SDK'sctx.llmfacade, on the model you already use; the viewer reads only the saved report and holds no key. The one opt-in network feature is the DGX Sparks usage source, which polls TensorFold counters you configure inOMNISCIENCE_TENSORFOLD_HOSTS. - Background processes: the viewer runs only while the Omniscience pane is open (or a browser tab has it), and closes itself after ten quiet minutes; it is not started at Hermes boot unless
OMNISCIENCE_VIEWER_AUTOSTART=1is set. The plugin may import earlier chat metadata from Hermes'state.dbonce (metadata only). - Shell commands: the plugin launches the viewer with the current Python interpreter. The optional brake is an operator-run shell script,
scripts/brake.sh, which changes Hermes' own run-API settings; Omniscience never runs it for you. - Data location:
$HERMES_HOME/plugin-data/omniscience/. Deleting that folder deletes every event it recorded.
Full detail: docs/SECURITY.md and docs/COVERAGE.md. Report vulnerabilities through GitHub's private advisory form, as described in SECURITY.md.
Testing
PYTHONPATH=viewer python3 -m pytest tests -q -p no:cacheprovider # Python
cd web && npm test # front end
| Suite | Command | Result (measured 2026-11-11) |
|---|---|---|
| Python (plugin, viewer, contract, e2e, QA) | PYTHONPATH=viewer python3 -m pytest tests -q -p no:cacheprovider | 805 passed |
| Front end (vitest) | cd web && npm test | 595 passed |
| Total | 1400 passed |
CI (.github/workflows/tests.yml) runs the Python suite on Ubuntu, macOS and Windows, for Python 3.11 and 3.12, with PYTHONPATH=viewer. The counts above were measured locally on Linux with Python 3.13; the macOS and Windows jobs are the CI evidence for those platforms. Two extra guard workflows check the viewer's polling interval. Details and the exact output are in TESTING.md.
Limits
- It records Hermes sessions only. A different harness would need its own recorder writing the same schema.
- Tool starts are not seen, only tool ends, so a tool that hangs forever does not appear until it finishes.
- Events can be dropped under heavy load. The writer keeps a
GAPmarker so loss is visible rather than hidden. - The viewer is loopback only by design; there is no remote access mode. It opens the recording
read-only. Its few write actions save files in Omniscience's own data folder (settings, privacy
flags, problem bundles you preview first, which usage sources are on).
The full list is in LIMITS.md.
How it compares
| Project | What it does | Where Omniscience differs |
|---|---|---|
| agent-run-debugger | Imports one trace, gives a timeline, failure points and an inert replay | Omniscience is live and shows an execution graph; replay rewinds that graph |
| olympus | Dashboard of every agent and profile, live run list, anomaly flags | Olympus is a fleet list; Omniscience is a per-run topology map |
| session-lens | Per-session cost, full trace, recurring failures, model comparison | Session-lens is desktop reporting; Omniscience is a live graph and scrubber |
| hermes-telemetry | Tokens, cost and latency into local SQLite, with commands | Metrics only, no graph interface |
| langfuse, OTel exporters | Send traces to a Langfuse or OTLP backend | Omniscience needs no server; export is optional |
These tools overlap on parts of observability. The distinct piece here is the live session-to-turns-to-model-calls-to-tools-to-subagents graph with deterministic, scrubbable replay. If you already run Langfuse or need fleet-wide dashboards, keep them.
Contributing
Bug reports, small focused fixes and new ideas are welcome. See CONTRIBUTING.md, the Code of Conduct, and the issue and pull-request templates in .github/.
License
MIT. See LICENSE.
Acknowledgements
Omniscience is built for Hermes Agent. It uses FastAPI and uvicorn, React, React Flow (@xyflow/react), dagre, Vite and Vitest, and is tested with pytest, Hypothesis and httpx. See THIRD-PARTY.md.
README from the reviewed commit e78ab9f; it updates when the author re-pins.

KeyArgo
