r/opencodeCLI • u/phosphorhouse • 1h ago
Built a local SQLite memory layer for OpenCode CLI (0 MB idle daemon, read_file packs, diff-locked rules)
When you run OpenCode CLI across multiple providers and repos, flat AGENTS.md files or Obsidian folders start breaking down fast: fixes from one repo bleed into unrelated sessions, models occasionally overwrite rules you already verified by hand, and MCP memory servers add constant schema overhead on 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 works inside an OpenCode CLI workflow:
slipdex init --no-mcpwires a compactSKILL.mdandAGENTS.mdpack index so OpenCode reads only the matchingpacks/<domain>.mdviaread_filewith zero MCP tool clutter.- Even on a fresh session, a tiny startup radar gives OpenCode your active context and domain pointers without dumping a giant global markdown file, and
slipdex recallpulls older slips on demand via FTS5 BM25. - Separate local SQLite WAL vaults isolate
engineering,project:<slug>, gatedon-demandvaults behind short-lived leases, an optional Identity Card, and an encrypted write-only journal. - Human-verified notes are diff-locked at the SQLite layer: agent edits open reviewable proposals with append-only history instead of silently mutating 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 shuts down 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
