Skip to main content

Module hermes_import

Module hermes_import 

Source
Expand description

UNI-18: the Hermes write path, through Hermes’s own door.

Hermes 0.21.0 ships hermes sessions import --from {claude,codex} <file>: a per-session import that reads a foreign transcript and writes it into the Hermes session store with Hermes’s OWN writer — its schema, its migrations, its WAL single-writer lock. supercode never opens a live Hermes state.db for writing: it renders the session as a Codex rollout (the format Hermes imports most faithfully) and hands the file to that door. The new session is Hermes’s (a fresh Hermes id; origin_json records the rollout path and the foreign id), and hermes --resume <id> continues it.

Structs§

HermesImported
What the door wrote.

Functions§

hermes_home
HERMES_HOME, else ~/.hermes — the same resolution Hermes itself uses.
import_into_hermes
Write session into the Hermes store at home (default: hermes_home) through hermes sessions import.