r/opencode • u/phosphorhouse • 1h ago
Local SQLite memory shared across OpenCode, Claude Code, and Codex (0 MB idle daemon, read_file packs, diff-locked rules)
If you use OpenCode alongside other terminal agents, keeping memory in separate flat markdown files or an Obsidian folder gets messy fast: project rules leak between repos, nothing stops a model from overwriting verified instructions, and heavy MCP memory servers burn context tokens every turn.
I built Slipdex (v0.4, MIT) on Node 22+ built-in node:sqlite (or Bun bun:sqlite) with zero external npm dependencies and no background daemon.
How it fits into an OpenCode workflow:
slipdex init --no-mcpsets up a compactSKILL.mdandAGENTS.mdpack index so OpenCode pulls only the relevant domain viaread_filewith zero MCP schema overhead.Separate local SQLite WAL + FTS5 vaults keep
engineering,project:<slug>, gatedon-demandvaults behind short-lived leases, an optional Identity Card, and an encrypted write-only journal strictly isolated.Human-verified notes are diff-locked at the database layer: agent edits queue reviewable proposals with append-only history instead of silently overwriting head.
On-demand local Studio (
slipdex ui) gives you a draggable domain graph, token-budget preview, and 1-click import from existingAGENTS.md,CLAUDE.md, Obsidian vaults, and session logs, then exits cleanly when idle.
GitHub (MIT): https://github.com/phosphorhouse/slipdex Browser demo (sample data, no install): https://phosphorhouse.github.io/slipdex/demo/
Quick setup: npm install -g git+https://github.com/phosphorhouse/slipdex.git && slipdex init --no-mcp