Memory as a service
- Product-specific context
- Opaque retrieval behavior
- Pricing and policy drift
- A migration project later
Local-first agent memory
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
Remember that Project Atlas uses SQLite because the Markdown Bundle stays canonical.
Saved 7c12a4e9.
Why did we choose SQLite for Atlas?
The database is a rebuildable index. Markdown remains the source of truth.
Concept 7c12a4e9
Coding assistants keep context inside products, sessions, and proprietary stores. Your decisions fragment. Your next agent starts cold. Export is an afterthought.
The portable core follows the open Agent Skills SKILL.md
format. Host-specific automation is an adapter, not a fork of your memory.
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.
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.
| Host | Agent Skill | Local MCP | Auto hooks | Evidence level |
|---|---|---|---|---|
| Claude Code | built | built | Claude hooks | Registration health smoke; handshake pending |
| Codex | standard | protocol | pending | Registration smoke; handshake pending |
| Gemini CLI | standard | protocol | pending | Registration smoke; handshake pending |
| OpenCode | standard | protocol | pending | Connected config smoke; handshake pending |
| Cline | standard | protocol | pending | Registration 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.
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.
Full-text search, tags, collections, typed links, traversal, soft delete, and point-in-time recall.
An Agent Skills package, a dependency-free CLI, and a standalone stdio MCP server over the same brain.
OKF frontmatter, wikilinks, recursive vault import, and tested manual-relation rebuild. Native Obsidian sync is not claimed.
Subjects, affect, temporal validity, and supersession—stored in files instead of a proprietary person model.
BETA / MARKET EVIDENCE STILL OPEN
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 planOpen-source SaaS direction
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.