OmniSession architecture

ARCHITECTURE.md, 5,769 words. Here: 874 words (15%). About 24 min of reading becomes 4 min.

An independent reader confirmed 74 of 74 statements. Captured 28 Nov 2026.

Answer

OmniSession is a Rust workspace that builds one binary, omni. 1

OmniSession is a Rust workspace that builds one binary, omni. sentence 1

An independent reader: supported.

It finds, searches, and transfers agent sessions. 4

Crate: omnis-cli | Package: omnisession-cli | Role: The omni binary: commands, session picker, search indexing, transfer orchestration, per-provider native importers, guarded deletion, private-store locks, version gates, Ctrl+C guards, and self-update. sentence 9

AdapterRegistry asks each adapter to probe its installation and list sessions. sentence 11

omni search and the picker's full-text mode query that index. sentence 73

Native resume or fork for the same agent, from metadata without parsing the full trajectory. sentence 313

An independent reader: supported.

RFCs hold normative detail (005 superseded, 010 draft). 3

Normative detail lives in the RFCs; this page links to them instead of repeating them. sentence 3

RFC: 005 | Topic: Historical provider command routing (superseded) sentence 400

RFC: 010 | Topic: Antigravity Desktop target (draft) sentence 405

An independent reader: supported.

The original, sentence by sentenceused here (129)left out (276)

Select a sentence of the brief to see its quotes. The number after it counts them. Select a mark here to read the original.

Crates

Invariants for every change

Transfers

The planner picks the safest available mode (RFC 004): 1

The planner chooses the safest available mode (RFC 004): sentence 312

An independent reader: supported.

Cross-agent flow: if native import is unavailable or the version rejected, hand off semantically. 1
flowchart TD
  start["Source session and target agent"] --> same{"Same agent?"}
  same -->|yes| resume["Native resume or fork"]
  same -->|no| gate{"Native import available<br/>and version accepted?"}
  gate -->|no| handoff["Semantic handoff"]
  gate -->|yes| write["Write new target session"]
  write --> verify{"Independent read-back matches?"}
  verify -->|yes| launch["Record lineage and launch"]
  verify -->|no| rollback["Exact rollback"]
  rollback -->|"rolled back"| handoff
  rollback -->|"rollback failed"| stop["Stop with error"]
sentence 318

An independent reader: supported.

Otherwise write, read back, record lineage, launch. 1
flowchart TD
  start["Source session and target agent"] --> same{"Same agent?"}
  same -->|yes| resume["Native resume or fork"]
  same -->|no| gate{"Native import available<br/>and version accepted?"}
  gate -->|no| handoff["Semantic handoff"]
  gate -->|yes| write["Write new target session"]
  write --> verify{"Independent read-back matches?"}
  verify -->|yes| launch["Record lineage and launch"]
  verify -->|no| rollback["Exact rollback"]
  rollback -->|"rolled back"| handoff
  rollback -->|"rollback failed"| stop["Stop with error"]
sentence 318

An independent reader: supported.

On mismatch, roll back exactly, then hand off; if rollback fails, stop with an error. 1
flowchart TD
  start["Source session and target agent"] --> same{"Same agent?"}
  same -->|yes| resume["Native resume or fork"]
  same -->|no| gate{"Native import available<br/>and version accepted?"}
  gate -->|no| handoff["Semantic handoff"]
  gate -->|yes| write["Write new target session"]
  write --> verify{"Independent read-back matches?"}
  verify -->|yes| launch["Record lineage and launch"]
  verify -->|no| rollback["Exact rollback"]
  rollback -->|"rolled back"| handoff
  rollback -->|"rollback failed"| stop["Stop with error"]
sentence 318

An independent reader: supported.

No silent upgrade to riskier modes; --materialize-only and Cursor IDE targets error instead of handing off. 1

No transfer silently upgrades to a riskier mode. --materialize-only and Cursor IDE targets stop with an error instead of handing off, since Cursor IDE has no clean-start launcher that could deliver one. sentence 319

An independent reader: supported.

Native import lifecycle (RFC 007): 1

Every native target import follows RFC 007: sentence 321

An independent reader: supported.

Deletion (RFC 009): documented provider commands come first. 2

Deletion is the only source-store mutation and requires confirming the exact selected session (RFC 009). sentence 351

Documented provider commands come first. sentence 352

An independent reader: supported.

Private deletion rejects symlinks, validates schemas, refuses while the agent runs, and verifies absence. 2

Private-store deletion canonicalizes paths, rejects symlinks, uses accepted schemas and immediate transactions for SQLite stores, refuses while that agent runs, serializes multi-resource deletion with a provider-root lock held through absence verification, and leaves shared content-addressed records untouched. sentence 353

Private-store deletion requires provider-specific path and schema validation, active-writer exclusion, atomic mutation or staging rollback, and read-back verification. sentence 362

An independent reader: supported.

Keep in mind Windows supports only provider-owned exact-ID deletion. 1

Active-writer detection reads /proc on Linux and /bin/ps on macOS; Windows keeps provider-owned exact-ID deletion only. sentence 354

An independent reader: supported.

Continuation is explicit: picker or, e.g., omni resume|fork SESSION --in PROVIDER. 2

Tasks and explicit continuation a heading

The picker and explicit commands such as omni resume SESSION --in PROVIDER and omni fork SESSION --in PROVIDER perform continuation. omni task start, omni task status, and omni task bind record the selected task and exact session binding for a canonical workspace; they never choose a task by recency. sentence 357

An independent reader: supported.

Codex specifics

Limits

Manifest and tests

scripts/provider-compatibility.mjs generate renders the Rust capability file, website file, and COMPATIBILITY.md table from crates/omnis-cli/provider-compatibility.json (the single source of truth); check fails on drift. 6

crates/omnis-cli/provider-compatibility.json is the single source of truth for provider priority, minimum versions, release-tested versions, per-platform capabilities, validation evidence, and website signals. scripts/provider-compatibility.mjs generate renders: sentence 377

crates/omnis-cli/provider-compatibility.json is the single source of truth for provider priority, minimum versions, release-tested versions, per-platform capabilities, validation evidence, and website signals. scripts/provider-compatibility.mjs generate renders: sentence 377

crates/omnis-cli/src/provider_compatibility.rs, the capability checks and version constants used by the picker and omni adapters; sentence 378

website/app/providers.generated.ts; sentence 379

the provider table in COMPATIBILITY.md. sentence 380

node scripts/provider-compatibility.mjs check fails when any output drifts. sentence 381

An independent reader: supported.

Capabilities are per platform; missing means not declared, not necessarily impossible. 2

Capabilities are read_index, clean_start, same_provider_resume, and cross_provider_import, each declared per platform. sentence 382

A missing capability means not declared, not necessarily impossible. sentence 383

An independent reader: supported.

Keep in mind Tests: an 81-cell conversion matrix (one oracle), 72 credential-free cross-provider paths (some with synthetic stores and version stubs), and opt-in model-backed probes. 7

Full workspace tests run nine provider-labelled canonical snapshots through all nine target builders. sentence 385

All 81 cells must match one visible-history oracle. sentence 386

All 72 cross-provider paths run in isolated homes: installed provider code for Claude Code, Codex, OpenCode, Grok, and Hermes, and synthetic stores with version stubs for the other private-format writers. sentence 388

Scheduled and release workflows run it without credentials. sentence 389

Opt-in probes. sentence 390

Installed-provider round trips and model-backed continuity probes. sentence 391

Conversion conformance never uses personal provider stores, credentials, or real transcripts; only opt-in model-backed probes need provider authentication. sentence 395

An independent reader: supported.

Where the source disagrees with itself

sentence 360 says to treat provider session stores as read-only except confirmed deletion, and sentence 351 calls deletion the only source-store mutation. Native target writers (sentence 315; sentence 371) add new sessions to the target provider's store.

What was left out

Details 253
Links and navigation 11
Transitions 10
Repeats something in the brief 2