Skip to main content

Cross-agent observational memory and local search for Claude Code, Codex CLI, Grok Build TUI, Cowork, and Hermes Agent

Project description

Observational Memory

Observational Memory header showing local agent memory shared across Claude Code, Codex, Grok, Claude Cowork, and Hermes, with reviewed export to hosted agents.

PyPI version PyPI downloads CI GitHub stars

One local memory for your AI coding agents — so every session starts knowing your work instead of starting over.

Observational Memory, or om, watches what you do with Claude Code, Codex, Grok Build TUI, and Claude Cowork (Hermes joins through its plugin), distills it into plain Markdown on your machine, and hands every new session a compact memory summary. What Claude learns today, Codex knows tomorrow.

  • No more cold starts. Every session begins knowing who you are, how you work, and what you were doing.
  • One memory across agents. Switch tools without losing context.
  • Your memory is yours. Plain Markdown files on your machine — readable, searchable, backed up, never silently uploaded.

New in v0.8.0

v0.7.0 made reflection scale. v0.8.0 makes memory trustworthy:

  • Durableom backup / om restore: host-local snapshots, plus an automatic safety snapshot before every reflection, so a bad write can always be rolled back.
  • Provable — every memory section records when it was last derived and from which window of observations, so you always know how fresh it is and where it came from. Memory you mark machine-local (scope=local) never leaves your machine through any sharing channel — sync, cloud search, or mail — and unknown scopes are denied by default. om reflect --check-conflicts flags high-stakes facts a reflection cycle silently changed.
  • Conversationalom talk: ask your memory questions in plain English and get answers grounded in live recall (experimental).
  • Plus: om doctor and om context --quality-report now report how big and how cold each memory section is, so future pruning decisions are grounded in data.

And a sneak peek at where this is going: with OM Mail (experimental), agents get their own email inboxes and exchange memory as signed messages — notes, encrypted context packs, and recall requests — across machines, harnesses, models, and vendors. Nothing is sent automatically: every exchange is a deliberate command, senders must be cryptographically pinned, and machine-local memory is filtered out before anything leaves. See how it works.

Everything is additive and defaults are unchanged. Full details: v0.8.0 release notes.

Upgrading from 0.6.x or 0.7.x?

brew upgrade observational-memory   # or: uv tool upgrade observational-memory
om doctor

No config changes needed. New surfaces (om backup, om talk, om mail, --check-conflicts) do nothing until you invoke them. One new background behavior: om reflect snapshots your memory before writing, with rotating retention bounding disk use.

Quick Install

macOS with Homebrew:

brew install intertwine/tap/observational-memory
om install
om doctor

Linux, macOS, or Windows with uv:

uv tool install observational-memory
om install
om doctor

om install sets up Claude Code and Codex by default (--all adds Grok and Cowork) and asks which LLM provider to use — a metered API key, or your existing ChatGPT or SuperGrok subscription via om login. If you use Anthropic through Vertex AI or Bedrock, install with uv tool install "observational-memory[enterprise]" instead of Homebrew, then run om install.

How Memory Flows

flowchart LR
    A["Claude Code, Codex, Grok, Cowork, Hermes logs"] --> B["om observe"]
    C["Claude auto-memory files"] --> D["search index"]
    C --> F
    B --> E["observations.md"]
    E --> F["om reflect"]
    F --> G["reflections.md"]
    G --> H["profile.md + active.md"]
    H --> I["om context startup pack"]
    E --> J
    G --> J["om recall / om search / om talk"]
    G -. opt-in .-> K["om cluster sync / om mail"]

First Week Workflow

  1. Install om.
  2. Run om install and answer the provider questions.
  3. Run om doctor.
  4. Use Claude Code, Codex, or Grok normally — memory accumulates on its own.
  5. Search memory when you need it:
om recall --query "current project status"
om search "release checklist"
  1. Talk to your memory (experimental — it works, but flags may change), or check what new sessions will see:
om talk --query "what was I working on last week?"
om context --for codex --cwd "$PWD" --task "finish docs"

Where Your Memory Lives

om keeps four plain-Markdown files you can read, search, and back up:

File Purpose
observations.md Recent notes from sessions and checkpoints.
reflections.md Longer-term facts, preferences, decisions, and active work.
profile.md Compact stable context for startup.
active.md Compact current context for startup.
Platform Memory directory Config directory
macOS / Linux ~/.local/share/observational-memory/ ~/.config/observational-memory/
Windows %LOCALAPPDATA%\observational-memory\ %APPDATA%\observational-memory\

Common Commands

om status
om doctor                       # health check, now with memory-growth report
om observe --source codex
om reflect
om reflect --check-conflicts    # reflect + flag silently-changed high-stakes facts
om reflect --async              # offline OpenAI Batch job at ~50% of the synchronous price
om jobs poll                    # apply completed async jobs
om backup --reason pre-experiment
om restore --list
om recall --query "what was decided about sync?"
om talk
om search "preferences" --json
om usage status                 # token usage, cost, and budgets
om usage budget set --daily-usd 5.00
om context --quality-report     # startup-context dedup / freshness / budget report
om export --target chatgpt

Multi-machine and agent-to-agent memory are opt-in:

# OM Cluster: encrypted full sync across YOUR machines
om cluster init --name "Personal Memory" --transport filesystem:~/Sync/om-cluster --import-existing
om cluster sync

# OM Mail (experimental): selective memory exchange between DISTINCT agents.
# Peers must exchange and pin keys first — see docs/mail-memory.md.
om mail init --username my-agent
om mail peers add peer@agentmail.to --key <PEER_PUBLIC_KEY> --shared-key <SHARED_KEY>
om mail send-note peer@agentmail.to --text "decision: ship v0.8.0"
om mail sync

Do not sync ~/.local/share/observational-memory/ directly with Dropbox, iCloud, Syncthing, rsync, or a NAS. Use the cluster transport directory instead.

Agent Support

Host Current support
Claude Code Hooks for startup context and checkpoints.
Codex Hooks-first startup and Stop checkpoints, with an AGENTS fallback.
Grok Build TUI Native hook file with Claude-compatibility awareness, plus updates.jsonl observation.
Claude Cowork Local plugin on macOS with hooks and /recall.
Hermes External memory-provider plugin through intertwine/hermes-observational-memory, plus manual session-log ingestion.
ChatGPT / Claude Managed Agents Reviewed export bundles through om export — not live sync; om never silently writes hosted memory.

Out-of-tree integrations have first-class seams: mail providers and CLI add-ons plug in through public entry points (CONTRIBUTING.md).

Architecture At A Glance

Observational Memory system diagram: agent hooks feed om observe into local markdown memory; om reflect consolidates it; om context, recall, search, talk, and doctor read it; opt-in cluster sync and OM Mail share it with scope filtering.

  • om observe turns transcripts into recent notes.
  • om reflect turns recent notes into durable memory — with provenance, scope rules, and a safety snapshot first.
  • om context gives agents a bounded memory summary at session start.
  • om recall, om search, and om talk retrieve more when that summary is not enough.
  • om export prepares reviewed memory seed bundles for hosted systems.
  • om cluster syncs encrypted records across machines when you opt in.
  • om mail (experimental) exchanges signed memory between distinct agents over email.

Guides

Version

Current release: v0.8.0release notes. Built on v0.7.0's section-targeted reflection (reflection that updates only the affected memory sections, not the whole file) and the v0.6.x usage/budget and async-Batch subsystems. Maintainers: the release workflow lives in docs/MAINTAINERS.md.

Contributing

The om core is MIT licensed and stays that way. Pull requests are welcome — see CONTRIBUTING.md for development setup and contributor terms (DCO sign-off plus a relicensing grant to Intertwine AI, the project steward, which also builds separately licensed team add-ons on the core's public plugin interfaces).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

observational_memory-0.8.0.tar.gz (3.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

observational_memory-0.8.0-py3-none-any.whl (325.6 kB view details)

Uploaded Python 3

File details

Details for the file observational_memory-0.8.0.tar.gz.

File metadata

  • Download URL: observational_memory-0.8.0.tar.gz
  • Upload date:
  • Size: 3.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for observational_memory-0.8.0.tar.gz
Algorithm Hash digest
SHA256 edde08d626ff3e504529fcf15fb9b775e8f189cc1b79978849de91e16b60a35d
MD5 f0e88ccc8b727b4ceb6953ae4023db11
BLAKE2b-256 013641a5b8a599a59ad647dbbbce1affbbdfd0dc8e2234c95d0ec3f6143a4642

See more details on using hashes here.

File details

Details for the file observational_memory-0.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for observational_memory-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 43769ec8bb94a54756f1b2f7201a01a9bdb35e3c01094db8616e78dc04c17352
MD5 903a9ee196755960ca82b4f4d2eae980
BLAKE2b-256 f21ec4b0bd8105725bf240dc71d4f4b825741eb51ea25058ed3095bc4627fa35

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page