Skip to content

feat(hosts): omp and hermes cli; transcript format sniffing - #27

Merged
backnotprop merged 5 commits into
mainfrom
feat/omp-hermes-hosts
Aug 29, 2026
Merged

feat(hosts): omp and hermes cli; transcript format sniffing#27
backnotprop merged 5 commits into
mainfrom
feat/omp-hermes-hosts

Conversation

@backnotprop

Copy link
Copy Markdown
Contributor

Second half of #24 / #25.

  • omp host: pi's format under ~/.omp/agent (delegates to the pi reader).
  • hermes host: ~/.hermes/state.db (HERMES_HOME), session id from Herdr or --session-id; opened read-only (mode=ro, falling back to immutable=1), never writes; test proves a live WAL db is read without creating -wal/-shm/-journal files. Adds rusqlite (bundled) to the hosts crate.
  • sniff(): a session path without a known host is recognised by its first lines (pi/omp, Copilot, Codex, Droid, Claude).
  • The pane entrypoint passes PLANNOTATOR_TUI_SESSION_ID through.

Not verified against real omp/Hermes data (none on this machine); the reporter offered to test. Windows: the bundled SQLite build could not be cross-checked from macOS — the post-merge Windows job is the real check.

Oh My Pi writes pi's format under ~/.omp/agent/sessions and reuses pi's override
variables; the omp module is pi's reader over that root. Timestamp formatting moves to a
shared time module.

refs #24
Hermes keeps conversations in ~/.hermes/state.db (WAL); messages_for_session opens it
read-only (mode=ro, immutable=1 fallback) and reads the newest active rows of a session
id with one indexed query. rusqlite 0.31 with the bundled feature.

refs #25
Host::Omp and Host::Hermes in the host table and detection chain (OMPCODE selects omp
last, AI_AGENT=omp before pi's flag). A --session path given without a host is recognised
by its first lines. --session-id addresses hosts without transcript files. README and
decision 14 updated.

refs #24
refs #25
@backnotprop
backnotprop enabled auto-merge August 29, 2026 13:05
@backnotprop
backnotprop added this pull request to the merge queue Aug 29, 2026
Merged via the queue into main with commit 33e6a3f Aug 29, 2026
1 check passed
@backnotprop
backnotprop deleted the feat/omp-hermes-hosts branch August 29, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant