Skip to main content

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 Latest release Python versions PyPI downloads CI GitHub stars

Shared, local memory for AI coding agents — now with a native Claude Code and Codex bridge that needs no transcript capture or an LLM.

Observational Memory, or om, helps agents carry useful context from one session and tool to the next. In v0.10.0, its native-memory bridge reads the small memory summaries that Claude Code and Codex already maintain, indexes an approved set in a private local keyword-search index (BM25), and makes that shared context available through OM retrieval.

The bridge is available on macOS in v0.10.0. It reads native memory sources without changing them. It does not ingest raw transcripts, call an LLM, run reflection, or silently upload memory.

Shortest Path: Native Claude and Codex Memory

For a new Homebrew install, run brew install intertwine/tap/observational-memory. If OM is already installed, run brew upgrade observational-memory.

Choose the native sources and enable the bridge:

om native-bridge sources
om install --native-bridge --claude-project "<exact-directory-name-from-the-list>"

If Claude Code or Codex was running during installation, save the current work, exit the affected app or CLI session, and start a new session. A running process can retain its previous OM write hooks until it restarts.

Build the first index and check the result:

om bridge-native-memory
om search --native-bridge "what were we doing in this project?"
om native-bridge status
om doctor

The first install needs macOS and at least one eligible Claude project memory directory. Repeat --claude-project to include more than one. Codex memory joins the index when either fixed Codex memory file is present. Later installs and one-shot runs reuse the saved private Claude selection when you omit the flag.

Setup is ready when status shows Config: configured, LaunchAgent: enabled and loaded, and Generation: ready, and om doctor reports that the older Claude and Codex writers are inactive. If it does not, use the troubleshooting guide before relying on shared recall.

Bridge search is explicit. Ordinary om search and om recall keep using the full OM memory store and do not merge bridge results.

The bridge refreshes every 15 minutes and skips runs when the Mac is under pressure. Enabling it keeps OM's older Claude, Codex, and Cowork transcript writers off while preserving read-only startup context. It does not change Grok, Kimi, or OpenCode.

See Native Claude and Codex memory for upgrade, disable, rollback, source scope, and troubleshooting steps.

New in v0.10.0

  • A native-first bridge. Share Claude Code and Codex memory summaries without turning on transcript observation or reflection.
  • A private local index. The bridge accepts only its fixed source allowlist and writes to an isolated BM25 store on your machine.
  • Bounded background refresh. The macOS service runs every 15 minutes and skips work when the machine does not pass its resource checks.
  • Visible lifecycle state. om status shows bridge configuration, service state, and verified-index readiness. om doctor also verifies that the older writer services and hooks remain off.

Full details: v0.10.0 release notes.

Full OM Install

The native bridge and the full transcript-based workflow are separate operating modes. If you want OM to build its own Markdown observations and reflections instead of using the bridge, use the full installer.

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 and asks which LLM provider to use. --all also adds OpenCode, Kimi, Grok, and Cowork. If you use Anthropic through Vertex AI or Bedrock, install with uv tool install "observational-memory[enterprise]" instead of Homebrew, then run om install.

If the bridge is already enabled, switch modes explicitly:

om uninstall --native-bridge
om install --both

If bridge activation removed a Cowork writer you still want, also run om install --cowork. --both covers Claude Code and Codex only.

Save current work in Claude Code or Codex, exit the affected app or CLI session, and start a new session so it loads the restored hooks. Then check the result:

om doctor

How Memory Flows

flowchart LR
    A["Claude native memory summaries"] --> B["v0.10 native bridge"]
    C["Codex native memory summaries"] --> B
    B --> D["private local BM25 index"]
    D --> E["om search --native-bridge"]
    F["Optional agent session capture"] --> G["OM Markdown memory"]
    G --> H["om recall / om search"]
    G --> I["om context startup pack"]
    G -. opt-in .-> J["om cluster sync / om mail"]

First Week Workflow

  1. Install om on macOS.
  2. Run om native-bridge sources, then install with an exact Claude project name from that list.
  3. If Claude Code or Codex was running during installation, save the current work, exit that app or CLI session, and start a new session. Then run om doctor.
  4. Use Claude Code and Codex normally. Their native memory summaries remain the source of truth; the bridge refreshes its private index when they change.
  5. Retrieve bridge memory when you need it:
om search --native-bridge "current project status"
  1. Run om doctor to verify the bridge and confirm that older OM writer services and hooks remain off.
  2. If you switch to the full OM workflow later, you can talk to OM's Markdown memory (experimental — flags may change) or inspect the startup pack:
om talk --query "what was I working on last week?"
om context --for codex --cwd "$PWD" --task "finish docs"

Where Your Memory Lives

The full OM workflow 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\

On macOS, bridge-only state is private and separate by default:

Bridge state Default location
Source selection ~/.config/observational-memory/native-bridge/config.json
Derived index and receipts ~/.local/share/observational-memory/.native-memory-bridge/
Scheduled service ~/Library/LaunchAgents/com.intertwine.observational-memory.native-bridge.plist

Common Commands

Native Bridge

om native-bridge sources        # list eligible projects without memory text
om install --native-bridge --claude-project "<exact-directory-name>"
om bridge-native-memory         # run one bounded refresh now
om search --native-bridge "release checklist"
om native-bridge disable        # pause scheduled refresh
om uninstall --native-bridge    # remove bridge service; keep sources/data
om native-bridge status         # focused bridge state; add --json if needed
om status
om doctor                       # also verifies older writers remain off

Full OM Workflow

These commands require the full installer and do not belong to the provider-free bridge mode:

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 the release"
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 Native memory summaries through the macOS bridge; optional hooks for startup context and checkpoints.
Codex Native memory summaries through the macOS bridge; optional hooks-first startup and Stop checkpoints.
OpenCode Global plugin records message events, with a global AGENTS fallback for startup context.
Kimi Code CLI Hooks for startup context plus prompt/subagent checkpoints captured from Kimi lifecycle JSON.
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.

For OM v0.10, use Hermes memory-provider plugin v1.5.1 or newer and Grok marketplace plugin v0.1.2 or newer. Their compatibility is validated and released separately from the core package.

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

Full OM 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 bridge-native-memory indexes approved native Claude Code and Codex summaries in a separate private BM25 store.
  • om search --native-bridge queries only that bridge store.
  • 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.10.0release notes. This release adds the macOS native-memory bridge; the full transcript-based OM workflow remains available when you choose it. 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).

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.10.0.tar.gz (6.4 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.10.0-py3-none-any.whl (395.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: observational_memory-0.10.0.tar.gz
  • Upload date:
  • Size: 6.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for observational_memory-0.10.0.tar.gz
Algorithm Hash digest
SHA256 3f8c04d20196f2d94cc1f12addab8ca5e07de8dc7bc6a011110d6e81f7b57a26
MD5 14e2ac15dcbd477adb97d0add4eaedc9
BLAKE2b-256 77deeed1e16a10d656b1c17404d3d97bf0018392a5e6268d9401fd8467aaf8c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for observational_memory-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d743b32823af544468fc666621850931ae77c0225d8c162db43b878cbdb5f4e4
MD5 ec5cc95a59660ecf9cab58022ba70e74
BLAKE2b-256 7c555bbfa504505579a6e0c62990d948dea604c882b6b9e2f0389f99258f6c69

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.10.0 This release

2 files

0.9.1

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.7

2 files

0.6.6

2 files

0.6.5

2 files

0.6.4

2 files

0.6.3

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.7

2 files

0.5.6

2 files

0.5.5

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

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