itechmeat/open-second-brain

633 stars ยท Last commit 2026-11-30

Local-first ๐Ÿง  memory for Hermes Agent that lives in your Obsidian vault and remembers project context. Nightly ๐Ÿ˜ด dream passes turn repeat corrections into confirmed preferences with measurable confidence. Adapters ship for Claude Code, Codex, and OpenClaw, with an MCP server for anything else.

README preview

# Open Second Brain

![Open Second Brain carries what your agents learn into future sessions](docs/images/readme-hero.svg)

Open Second Brain is a program that runs on your machine and connects to the AI coding agents you use: Claude Code, Codex, Grok and [others](install.md#supported-clients).
It keeps the corrections, decisions and notes your agents save, turns corrections that repeat into rules, and lets later sessions, in the same agent or a different one, use those rules.

## Why

You correct an agent, and the next session makes the same mistake. You switch agents, and the new one knows nothing the old one learned.
With Open Second Brain connected, an agent can save a correction through its tools, and every connected agent can read the rules that come out of saved corrections. Every record names the agent that wrote it.
Once a day a background pass, called dream, makes a rule of a correction that keeps coming back. A rule stays while agents record that they applied it; it is retired when that record goes stale, when agents report it outdated, or when you reject it.

## What it looks like

An example. You tell your agents a few times not to use internal abbreviations, and they save it each time:

```text
Correction, saved three times:  Expand internal abbreviations in user-facing copy.
After dream and recorded use:   Confirmed rule: Expand internal abbreviations in user-facing copy.

View full repository on GitHub โ†’