A local dashboard for Oh My Pi sessions: every session across every project, grouped by project, with each user prompt and its timestamp.
- The dashboard server binds to 127.0.0.1 by default. Passing --host can expose it to other interfaces.
- The snapshot it serves (
/api/snapshot,/api/session/:id) contains full prompt text read from~/.omp/agent/sessions(or your configured agent directory). Anything you typed to omp is readable through this server for as long as it runs./api/session/:idadditionally returns the session's latest omp recap (full text) read from omp'shistory.db. omp-monitor --jsonprints the same data to stdout. Treat its output as sensitive — do not pipe it into logs, chat tools, or anywhere else you wouldn't paste your prompt history.
curl -fsSL https://get.mrwilde.dev/setup | bashInstalls to ~/.local/share/omp-prompt-monitor, puts an omp-monitor launcher in ~/.local/bin, installs a user-scoped Bun >=1.3.14 when needed, and adds ~/.local/bin to your shell PATH if it is missing. Re-run the command to upgrade. Open a new terminal, or run exec $SHELL -l, the first time.
Environment overrides: OMP_MONITOR_REPO, OMP_MONITOR_REF (default main), OMP_MONITOR_HOME, OMP_MONITOR_BIN, OMP_MONITOR_BUN_HOME, and OMP_MONITOR_SKIP_BUN.
Inspect before executing:
curl -fsSL https://get.mrwilde.dev/setup -o /tmp/omp-monitor-setup
less /tmp/omp-monitor-setup
bash /tmp/omp-monitor-setupomp-monitor # http://127.0.0.1:7333
omp-monitor --port 8080 --open # custom port, opens your browser
omp-monitor --json > snapshot.jsonFrom a repo checkout without installing, use bun run src/cli.ts.
From the repository root:
omp plugin link .Restart omp (newly installed extension modules require a restart — /reload-plugins does not rebuild initialized extensions), then run /monitor inside a session. /monitor starts the standalone dashboard if one isn't already running, and marks the current session live via a periodic heartbeat file until you exit. /monitor start is the same as bare /monitor; /monitor stop, /monitor restart, and /monitor update are also supported. Typing /monitor lists the sub-commands with descriptions, and Tab or Enter on a row completes it.
To install the plugin from GitHub:
omp install github:robwilde/omp-prompt-monitor- Reader (
src/core/journal.ts): parses one session.jsonlfile — title slot, header, and every real user prompt (typed messages, including ones typed mid-stream, and skill invocations), skipping synthetic/agent-attributed noise. - Index (
src/core/index-store.ts): incrementally re-parses only files whose size/mtime changed since the last run, cached at<state dir>/index-cache.json. - Recap (
src/core/recap.ts): opens omp'shistory.dbread-only and returns a session's newest idle recap in full (omp's CLI truncates it on screen). The session detail's Journal section shows it as a "Latest recap" block; sessions with no recap show nothing. - Snapshot (
src/core/view.ts): the reader → snapshot boundary. Pure and serializable, so a future remote collector can reuse it without restructuring anything upstream. - Server (
src/server.ts): serves the snapshot and the HTML client over/api/snapshotand/api/session/:id, with an identity header so a secondomp-monitorinvocation detects and reuses an already-running instance instead of binding a second port. - Extension (
src/extension/index.ts): a thin omp plugin that writes a heartbeat file for the current session (so the dashboard can distinguish "live" from merely "recently active") and adds the/monitorcommand.
Scope is deliberately top-level sessions only (<sessionsRoot>/*/*.jsonl) — it does not recurse into subagent/advisor session trees.