Local-first agent memory

One memory.
Every agent.
Your files.

Carry decisions, context, and durable knowledge across Claude, Codex, Gemini, OpenCode, and Cline. The canonical store is readable Markdown in your vault—not an opaque memory API.

MIT licensed · Python standard-library core · no account required

continuity proof local
CLAUDE

Remember that Project Atlas uses SQLite because the Markdown Bundle stays canonical.

Saved 7c12a4e9.
CODEX · NEW SESSION

Why did we choose SQLite for Atlas?

The database is a rebuildable index. Markdown remains the source of truth.

Concept 7c12a4e9
agent→local CLI / MCP→your vault
262engine + integration tests
in the checked-in suite
0required Python packages
in the core
2open interfaces
Agent Skills + MCP
100%user-owned canonical
Markdown files
The broken default

Your agent remembers.
Until you switch agents.

Coding assistants keep context inside products, sessions, and proprietary stores. Your decisions fragment. Your next agent starts cold. Export is an afterthought.

01 / RENTED

Memory as a service

  • Product-specific context
  • Opaque retrieval behavior
  • Pricing and policy drift
  • A migration project later
02 / OWNED

Memory as files

  • One portable Agent Skill
  • Markdown you can inspect and diff
  • SQLite you can delete and rebuild
  • Your git and storage accounts
Start in one command

Install the same skill
into five agent hosts.

The portable core follows the open Agent Skills SKILL.md format. Host-specific automation is an adapter, not a fork of your memory.

terminal
npx skills add stancsz/second-brain \
  --skill second-brain --global --copy -y \
  --agent claude-code codex gemini-cli opencode cline

Prefer no Node tooling? Clone the repository into your host's documented skills directory. The CLI itself only needs Python and SQLite.

After copying, run python scripts/brain_doctor.py --json for a read-only, content-free package, MCP, and pairing report. Run python scripts/host_matrix.py --json for the five-host package/MCP readiness matrix; native host activation remains a manual gate.

Compatibility without hand-waving

One standard core.
Honest host differences.

Native skill loading and the MCP protocol are portable. Automatic transcript capture and prompt-time recall currently use Claude Code hooks. Other hosts can use the skill and MCP server while their automation adapters mature.

HostAgent SkillLocal MCPAuto hooksEvidence level
Claude CodebuiltbuiltClaude hooksRegistration health smoke; handshake pending
CodexstandardprotocolpendingRegistration smoke; handshake pending
Gemini CLIstandardprotocolpendingRegistration smoke; handshake pending
OpenCodestandardprotocolpendingConnected config smoke; handshake pending
ClinestandardprotocolpendingRegistration smoke; handshake pending

“Standard” means the host documents Agent Skills support; it does not mean a live host/version pair has passed this project's handshake yet. See the evidence matrix.

Architecture

The database is a cache.
The files are the product.

This inversion is the moat. Every derived index and future cloud projection must be disposable. Recovery starts from the Bundle, not from a vendor API.

INTERFACESAgent Skills · MCP · CLI
CANONICALOKF Markdown Bundlehuman-readable · versionable · portable
INDEXSQLitedelete + rebuild
SYNCGitrevisions + conflicts
MIRRORSSnapshotsobject storage adapters
What works today
A

Local knowledge graph

Full-text search, tags, collections, typed links, traversal, soft delete, and point-in-time recall.

B

Portable interfaces

An Agent Skills package, a dependency-free CLI, and a standalone stdio MCP server over the same brain.

C

Readable Markdown

OKF frontmatter, wikilinks, recursive vault import, and tested manual-relation rebuild. Native Obsidian sync is not claimed.

D

Psychological structure

Subjects, affect, temporal validity, and supersession—stored in files instead of a proprietary person model.

BETA / MARKET EVIDENCE STILL OPEN

One memory, tested in the repo.
Host continuity is next.

The core has package, protocol, format, and recovery evidence. Live activation is not established in every host, and public usage does not yet show retention or willingness to pay.

Next experiment: repeat capture, correction, and retrieval tasks across two or more agent hosts; measure accuracy, provenance, recovery, and time against each participant's existing workflow.

Alternatives, evidence, and the full validation plan

Open-source SaaS direction

Own the memory.
Pay for the operations.

The format, local engine, MCP server, encryption, Obsidian path, and storage adapters stay open. A managed/BYOC service could test charging for fleet health, scheduled backups, restore drills, RBAC, audit, SSO, and support.