Skip to main content
Glama

Slipdex v0.4

Slipdex

Structured multi-vault memory, < 5 ms Memory Packs, ambient session radar, and revision lineage across every AI coding tool you run, stored 100% locally.

Node.js >= 22.13 Zero Dependencies 100% Local Memory Packs Live Demo License: MIT

Live Studio Demo · 60-Second Quickstart · Supported Tools · Session Harvester · Privacy & Security


Flat Markdown memory files (CLAUDE.md, AGENTS.md, GEMINI.md) grow noisy fast: old project rules burn context window on unrelated tasks, coding agents occasionally overwrite rules you already verified, and switching between Antigravity, Codex, Claude Code, Cursor, and OpenCode means repeating the same bug fixes across separate silos.

Slipdex stores durable knowledge as revisioned slips isolated into separate local SQLite WAL + FTS5 vaults (engineering, project:<slug>, gated on-demand vaults, an 11-field Identity Card, and an asymmetric write-only sealed-journal). Open vaults automatically compile into lightweight packs/<domain>.md files with cross-domain See Also pointers so agents load relevant knowledge in < 5 ms via native read_file just like local Skills, while the visual Studio stays at 0 MB background RAM until you click its desktop icon.

No cloud accounts. No vector-DB daemons. Zero npm runtime packages.


What It Does

  • Skill-Speed read_file Memory Packs & Auto-Linker (< 5 ms): Every open-vault mutation automatically compiles <dataDir>/packs/<domain>.md (and project--<slug>.md) with auto-linked cross-domain See Also references. Agents see the pack directory and slip title previews on Turn 1 and read relevant .md packs in < 5 ms via native read_file (zero shell startup, zero command approval prompts, works inside read-only subagents and hookless clients). Active pack-head slips and pinned rules are automatically protected from unused stale decay even when consumed solely via read_file (hitCount strictly measures CLI/MCP recall touches).

  • Ambient Multi-Hop Session Radar & Compaction Resilience: Injects local wall-clock + weekday, consented Identity Card fields (name, role, routine, focus, languages, hardware), Recent pulse (last active topic and elapsed time), and active pack paths so agents naturally connect time-of-day, user schedule, and recent work on Turn 1. Supports slipdex radar --compact (~120 tokens) and automatic PreCompact / compaction hook refreshes so pinned rules and pack paths survive long-session context compaction, plus mid-session activation right after slipdex init.

  • Write-Time Conflict Detection & Tentative/TTL Hygiene (BRAIN-009): prefer, decision, gotcha, and remember run local FTS5 BM25 + domain/tag/directive overlap checks against active slips (prioritizing pinned rules) and surface structured potentialConflicts with suggested supersede / edit commands so new decisions never silently coexist with stale pinned rules. Exploratory plans can carry --tentative and --ttl <duration> (e.g. 14d), and slipdex audit (BRAIN-009) highlights expired slips and older overlapping decisions overshadowed by newer locked ones.

  • One-Command Multi-Agent Onboarding (slipdex init): Auto-detects installed harnesses, installs compact global rules + SKILL.md + lifecycle hooks, merges MCP configs non-destructively (or pass --no-mcp for zero-overhead CLI + Hooks + Packs mode), creates your Desktop Studio shortcut, and reconciles any legacy brain.db store with 0 data loss.

  • Historical Session Harvester (slipdex harvest): Scans local transcripts across Antigravity, Codex, Claude Code, and OpenCode to extract recurring preferences, root-cause fixes, and architectural decisions with BRAIN-001 secret scrubbing and 100% provenance idempotency (plus --agent-pack / --apply-pack).

  • Anti-Self-Lobotomy Revision Lineage: Append-only memory_revisions and origins tables guarded by SQLite BEFORE UPDATE / BEFORE DELETE triggers. Agent edits targeting human_verified = 1 or legacy_locked = 1 slips open reviewable diff proposals in memory_proposals instead of mutating head directly.

  • Consent-First Identity Card & X25519 Sealed Journal: 11-field profile card (name, role, routine, focus, email, age, timezone, location, handles, languages, hardware) encrypted at rest (scrypt + ChaCha20-Poly1305) where newly heard routines/roles queue as pending candidates until human approval, paired with a write-only sealed-journal (X25519 + HKDF-SHA256 + ChaCha20-Poly1305).

  • Obsidian-Inspired Liquid-Glass Studio (EN / TR, Collapsible Sidebar, 0 MB Idle RAM): Organic force-directed Lineage Map with live drag physics, configurable Liquid Glass / Minimal / Rings orb styles, 1-hop neighborhood glow, collapsible icon rail, full English & Turkish interface, dedicated Settings (Temizle / Tümden Temizle with automatic safety backup), 1-Click Migration from Claude/Codex/Cursor/OpenCode/Obsidian/Sessions, and Doctor Auto-Fix + Copyable Agent Fix Prompt. Native OS shortcut (Slipdex Studio.lnk + .ico on Windows without console flash, .desktop on Linux, .app on macOS) reuses a running instance in < 150 ms and shuts down cleanly after --idle-timeout (default 30m).


Related MCP server: mnemo

Supported Tools

Tool / Ecosystem

Integration Surface

What Slipdex Wires Automatically

Antigravity 2.0 / IDE / CLI

hooks.json (SessionStart + PreInvocation + PreCompact) + GEMINI.md + SKILL.md + optional MCP

Ambient Turn-1 radar, compaction recovery, mid-session activation, < 5 ms read_file packs, deep-session write checkpoint & Turn #N Fork Capsules

Claude Code

settings.json (SessionStart + UserPromptSubmit + PreCompact) + CLAUDE.md + SKILL.md + .claude.json MCP

Ambient startup, compaction & mid-session radar, read_file memory packs, MEMORY.md 2-way sync & transcript harvesting

OpenAI Codex CLI & App

~/.codex/AGENTS.md (live fenced pack index) + SKILL.md + config.toml MCP

Write-through read_file pack directory, non-destructive TOML MCP block & local Codex thread harvesting

Cursor

~/.cursor/rules/slipdex.mdc (live fenced pack index) + .cursor/mcp.json

Live write-through .mdc pack map (active mid-session), 6-tool stdio MCP server & .mdc rule import/export

OpenCode

~/.config/opencode/AGENTS.md (live fenced pack index) + SKILL.md + opencode.json(c) MCP

Write-through global pack directory, comment-preserving JSONC MCP merge & session transcript harvesting

Claude Desktop

claude_desktop_config.json + MCP InitializeResult.instructions

Zero-config system prompt instructions + 6-tool stdio MCP (slipdex_vault_status, recall, remember, ...)

Obsidian

slipdex export-md / import --from obsidian

Clean Markdown vaults ([[wikilinks]], YAML frontmatter) + JSON Canvas 1.0 (memory-graph.canvas)


60-Second Quickstart

Prerequisites

  • Node.js >= 22.13.0 (node:sqlite built-in) or Bun >= 1.1.0 (bun:sqlite built-in). No C++ compiler, Python, or node-gyp needed.

Paste this single line into Antigravity, Claude Code, Codex, Cursor, or OpenCode (works even inside an already-open chat):

Install https://github.com/phosphorhouse/slipdex globally with npm install -g git+https://github.com/phosphorhouse/slipdex.git and run slipdex init

Your agent installs Slipdex, auto-detects installed harnesses, wires hooks + < 5 ms read_file Memory Packs + SKILL.md, creates the Slipdex Studio Desktop icon (0 MB idle RAM), and prints [SLIPDEX ACTIVE IN CURRENT SESSION] so memory starts working immediately without restarting your chat.

Manual CLI Install

# 1. Install globally from GitHub (0 npm runtime dependencies)
npm install -g git+https://github.com/phosphorhouse/slipdex.git

# 2. Auto-detect installed coding agents, wire rules + hooks + packs + MCP, and add Desktop Studio icon
slipdex init

# Zero-MCP option (0 MCP schema tokens; uses CLI + Hooks + <5ms read_file Memory Packs)
slipdex init --no-mcp

# Optional: switch UI language (en/tr) or memory storage language (en/tr/native)
slipdex config --ui-lang tr --memory-lang en

# Optional: inject the idempotent Slipdex protocol block into a team repo's AGENTS.md
slipdex init --workspace .

Pass --no-desktop if you want CLI-only setup without the Desktop & Start Menu Slipdex Studio shortcut.


Historical Session Harvester (slipdex harvest)

Seed your vaults immediately from past Antigravity, Codex, Claude Code, and OpenCode transcripts:

# 1. Instant local deterministic harvest (0 LLM tokens, secret-redacted, idempotent)
slipdex harvest --since 30d

# 2. Deep agent-assisted distillation pack (for Claude, Codex, Antigravity, or Cursor)
slipdex harvest --since 30d --agent-pack ./harvest-pack.md
# Have your active agent distill ./harvest-pack.md -> ./distilled.json, then apply:
slipdex harvest --apply-pack ./distilled.json

Everyday CLI & Desktop Usage

# Inspect your Ambient Session Radar, compiled read_file packs, and category directory
slipdex radar
slipdex packs list
slipdex taxonomy

# Set consented Identity Card context (used for Turn-1 multi-hop time + routine awareness)
slipdex profile enable --human
slipdex profile set routine "Lectures Tue/Thu 09:00-15:30; shipping open-source tools in evenings" --share --confirm-share --human

# Manage the one-click Desktop Studio launcher (30m idle auto-shutdown by default, 0 = stay resident)
slipdex desktop open
slipdex desktop status

# Store an engineering gotcha (auto-links related domains and refreshes packs/<domain>.md in <5ms)
slipdex gotcha "PostgreSQL does not auto-index foreign keys" \
  --fix "Add explicit index on every FK column" \
  --domain backend --tags postgres,drizzle,security

# Recall with Turkish / ASCII dual-indexed FTS5 search
slipdex recall "foreign key index" --no-touch

# Build a balanced, token-budgeted context pack
slipdex context-pack "Order webhook handler" --project billing-api --budget 1200

# Append to sealed-journal over stdin (literal text, safe against shell expansion)
printf '%s' "Private journal note" | slipdex sealed append --stdin

Default data root (override with SLIPDEX_HOME or --data-dir):

  • Windows: %LOCALAPPDATA%\slipdex

  • macOS: ~/Library/Application Support/slipdex

  • Linux: ${XDG_DATA_HOME:-~/.local/share}/slipdex


Vault Access Matrix

Vault / Scope

Store Kind

Access Mode

Default Agent Behavior

engineering

text

read-write (open)

Compiled into packs/<domain>.md and included in default radar, taxonomy, recall, and context-pack.

project:<slug>

text

read-write (open)

Compiled into packs/project--<slug>.md; included when --project <slug> or repo cwd matches.

<named-vault> (e.g. ops, trading, hobby)

text

on-demand (gated / encrypted)

Never compiled to packs/; excluded from defaults until explicit --vault + active human lease.

personal-profile

profile

on-demand

Raw DB blocked; agents receive only consented Shared identity JSON when card_enabled = 1.

sealed-journal

sealed

write-only (encrypted)

Public-key append only; zero agent read surface, never exported to packs/, zero counts exposed.


Core CLI Commands

Command

Purpose

slipdex init

Auto-configure rules, hooks, packs/, MCP, SKILL.md, and Desktop icon (--no-mcp, --no-hooks, --no-desktop, --memory-lang, --workspace).

slipdex packs sync|list

Compile or inspect open-vault <dataDir>/packs/<domain>.md files and cross-pack See Also links.

slipdex config

View or set Slipdex preferences (--memory-lang en|native|tr|...; defaults to en for compact cross-model recall).

slipdex radar [--compact]

Compile the Ambient Session Radar (or ~120-token --compact post-compaction refresh with pinned rules, domains, and pack paths).

slipdex taxonomy

Inspect existing vaults, domain counts, active projects, kinds, and canonical tags.

slipdex hook session-start|pre-invocation|pre-compact

Fast fail-open lifecycle hook handlers for Antigravity (hooks.json) and Claude Code (settings.json).

slipdex harvest

Extract slips from past agent sessions (--since, --dry-run, --agent-pack, --apply-pack).

slipdex desktop install|open|status|uninstall

Manage the zero-console OS shortcut and singleton Studio lifecycle (--idle-timeout).

slipdex remember|gotcha|decision|prefer

Capture a slip with automatic conflict detection (potentialConflicts), cross-domain linking, --tentative/--ttl, and BRAIN-001 secret blocking (--stdin, --input-json).

slipdex edit <id> --if-rev <N>

CAS revision edit; creates a pending proposal when an agent targets a locked slip.

slipdex undo <id> --to-rev <R> --if-rev <N>

Restore revision R as a new head revision N + 1 without deleting history.

slipdex supersede <oldId> ...

Mark old slip superseded, insert replacement, and record a supersedes edge.

slipdex recall <query>

Ranked FTS5 + RRF search (--no-touch disables hit_count updates).

slipdex context-pack <query>

Balanced sub-budget pack (sharedProfile, preferences, gotchas, decisionsAndPatterns).

slipdex proposals list|approve|reject

Inspect and decide pending agent proposals with stale base_rev and review fingerprint protection.

slipdex profile show|enable|disable|set|share|set-passphrase|decide

Manage the 11-field Personal Identity Card (name, role, routine, focus, ...), encryption, and pending candidates.

slipdex sealed init|append|read

Initialize passphrase key, append while locked, or decrypt entries locally.

slipdex request-access <vault> / slipdex lease list|grant|revoke / slipdex lock --all

Request out-of-band OS approval, manage scoped temporary vault leases, or trigger immediate panic lock.

slipdex session start --off-the-record

Enable zero-write off-the-record session latch.

slipdex sessions list|show|distill|harvest / slipdex fork

Browse local harness sessions, distill/harvest turns, or compile Turn #N Fork Capsules.

slipdex import / slipdex export

Run 2-way sync across all 8 ecosystem adapters (--dry-run supported).

slipdex ui (alias studio)

Start or reuse hardened 127.0.0.1 Visual Studio (--singleton, --idle-timeout, --demo).

slipdex export-static <dir>

Emit a static, CSP-clean studio bundle (index.html, styles.css, app.js, demo-data.js).

slipdex audit [--fix|--prompt] / slipdex audit-stale / slipdex doctor

Run BRAIN-001..009 hygiene checks (including tentative/expired decision overlaps), deterministic safe auto-fixes (--fix), copyable agent fix prompt (--prompt), pack-aware stale checks, and SQLite health checks.

slipdex interop discover / slipdex clean --scope cache|stale|vault|all

Auto-detect local Claude/Codex/Cursor/OpenCode/Obsidian memory sources for 1-click migration, or run safe cache cleanup / confirmed backup-first reset.

slipdex migrate-v1 [legacy-brain.db]

Snapshot via VACUUM INTO and migrate or merge (--merge) legacy v1.1 stores losslessly (brain shim included).

slipdex setup --client <name> / slipdex --mcp

Merge MCP config with .bak backup or launch the 6-tool JSON-RPC 2.0 stdio server.


Security Model (Honest Boundaries)

Slipdex v0.4.3 ships Mode A (Single-User Multi-DB + Sealed Crypto):

  • Strict Vault & Canary Isolation: Separate SQLite files, pre-query vault allowlists, redacted BRAIN-001 SHA-256 secret fingerprints, and strict sealed-journal / on-demand / share = 0 omission across CLI, packs/, radar, taxonomy, hooks, MCP, exports, stats, audits, and graphs.

  • Encryption at Rest for Private Stores: Unshared profile fields (role, routine, email, etc.) and sealed-journal payloads are encrypted at rest (scrypt + X25519 + ChaCha20-Poly1305) and remain unreadable on disk while locked.

  • Hardened Loopback Studio (127.0.0.1): Verifies exact Host and mutation Origin headers, exchanges single-use #code nonces for in-memory Bearer tokens (zero cookies), never exposes singleton launch codes over HTTP JSON, rejects TRACE (405), returns RFC 9457 application/problem+json without stack traces, and enforces script-src 'self' CSP.

  • Known Mode A boundary: Non-TTY lease list, hooks, and MCP surfaces isolate session state, but under Mode A a prompt-injected process running as the same OS user with arbitrary shell execution can still spoof local environment variables or read unencrypted plaintext SQLite / open packs/*.md files directly from disk. Cryptographic broker credentials and OS-account isolation (Mode B over ACL-guarded pipes/sockets) are planned for v1.0.0.

  • SQLite 3.50.3 / 3.50.4 WAL note: Slipdex avoids wal_checkpoint(TRUNCATE|RESTART) and uses VACUUM INTO for snapshots; slipdex doctor reports runtime SQLite advisories.


Testing

npm test

License

MIT. See LICENSE.


Slipdex Nedir?

Slipdex (v0.4.3), kodlama ajanları için yerel çalışan, çok kasalı (multi-vault) bir bellek, < 5 ms read_file bellek paketleri, çoklu bağlantı radarı, yazma anı çakışma algılama, sıkıştırma sonrası radar tazeleme, oturum hasadı ve sürüm izleme aracıdır. Harici npm bağımlılığı içermez; Node.js >= 22.13 (node:sqlite) veya Bun >= 1.1 (bun:sqlite) ile doğrudan çalışır.

Tek bir Markdown dosyasına tüm notları doldurmak zamanla bağlam kirliliğine, yanlışlıkla silinen kurallara ve kişisel bilgilerin kodlama istemlerine sızmasına yol açar. Slipdex her kapsamı ayrı STRICT SQLite WAL + FTS5 veritabanlarına bölerek ve açık kasaları otomatik olarak hızlı .md paketlerine derleyerek bu sorunu çözer.

Öne Çıkan Özellikler

  • Skill Hızında read_file Bellek Paketleri ve Otomatik Bağlayıcı (packs/<alan>.md): Açık kasalara eklenen kayıtlar otomatik olarak ilişkili diğer alanlarla (See Also) bağlanır ve <dataDir>/packs/ altına derlenir. Ajanlar kabuk süreci başlatmadan doğrudan read_file ile < 5 ms içinde ilgili paketi okur; kancası olmayan araçlarda (Codex, Cursor, OpenCode) paket haritası kural dosyalarında otomatik güncel tutulur.

  • Çoklu Bağlantı Radarı ve Açık Oturumda Anında Aktivasyon: Yerel saat + gün bilgisi, onayladığın Kimlik Kartı alanları (name, role, routine, focus), son yapılan iş (Recent pulse) ve bellek paketi haritası ilk turda ajanın önünde durur. Slipdex açık bir sohbetin ortasında kurulsa bile sohbeti kapatıp açmadan o anda devreye girer.

  • Geçmiş Oturumlardan Otomatik Hafıza Hasadı (slipdex harvest): Eski ajan konuşmalarını tarayıp tekrar eden tercihleri, hata çözümlerini ve mimari kararları gizli anahtarları temizleyerek (BRAIN-001) ilgili kasalara aktarır.

  • Obsidian İlhamlı Sıvı-Cam Studio (TR / EN, Daraltılabilir Kenar Çubuğu, Ayarlar & Tek Tıkla Geçiş): Organik fizik motorlu soy ağacı haritası, yapılandırılabilir Sıvı Cam düğüm stilleri, açılır-kapanır kenar çubuğu, Türkçe/İngilizce dil desteği, Claude/Codex/Cursor/OpenCode/Obsidian kaynaklarından tek tıkla geçiş, Doctor otomatik düzeltme + kopyalanabilir ajan düzeltme istemi ve yedekli Temizle / Tümden Temizle bakım modları. Masaüstü simgesiyle < 150 ms içinde açılır, kapalıyken 0 MB RAM harcar.

Hızlı Kurulum ve Kullanım

# 1. Doğrudan GitHub üzerinden global kur (0 harici npm bağımlılığı)
npm install -g git+https://github.com/phosphorhouse/slipdex.git

# 2. Kurulu ajanları bağla, bellek paketlerini ve Masaüstü simgesini otomatik kur
slipdex init

# MCP olmadan saf CLI + Kanca + Bellek Paketi modu (0 MCP şema token yükü)
slipdex init --no-mcp

# 3. Son 30 günün geçmiş ajan oturumlarından otomatik bellek çıkar
slipdex harvest --since 30d

# Canlı oturum radarını ve derlenmiş bellek paketlerini görüntüle
slipdex radar
slipdex packs list

Kodlama ajanına açık bir sohbetin içinden tek satırla kurdurmak için:

git+https://github.com/phosphorhouse/slipdex.git paketini npm install -g ile global kur ve slipdex init çalıştır.

Güvenlik Sınırları (Mode A)

v0.4.3 sürümünde izolasyon ayrı SQLite dosyaları, yetki listeleri, şifreli sealed-journal / paylaşılmayan profil alanları (bunlar packs/ klasörüne asla yazılmaz) ve sıkılaştırılmış 127.0.0.1 sunucu kontrolleriyle sağlanır. Aynı işletim sistemi kullanıcısı altında serbest kabuk çalıştıran bir süreç açık kasaları diskten doğrudan okuyabilir; işletim sistemi kullanıcı ayrımı (Mode B) v1.0.0 sürümü için planlanmıştır.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Exposes a living systems memory vault to autonomous agents, letting them search notes with BM25 ranking, read sections within token budgets, extract API/port/schema contracts, compute dependency blast radius, and run machine-verifiable invariant assertions before mutating code. It also supports surgical frontmatter edits, schema linting, wikilink integrity checks, and worklog recording, over stdio MCP.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Serves local-first project memory over stdio, exposing tools to inspect project state, search and retrieve context, report memory, and create Git-aware checkpoints for coding agents.
      1
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Exposes repo-native, self-verifying memory to coding agents over stdio MCP, letting them recall ranked past decisions, record new claims with verifiable receipts, and check the health and stats of stored memory. Keeps agent context honest by surfacing memories whose evidence no longer holds.
      6 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to search and manage a local Markdown memory vault over stdio, including hybrid search, note retrieval and addition, session handoff claiming, and status checks without holding a model in memory.
      MIT