memtwig

memtwig vs CLAUDE.md

Static files like CLAUDE.md and .cursorrules work for a single repository and a single tool. memtwig turns curated Markdown folders into an indexed, scoped, cross-harness memory layer without bloating every prompt.

Dimension memtwig CLAUDE.md / .cursorrules
Context window cost Top-K relevant snippets via FTS5 + RRF (~400 chars each) Entire file loaded into every prompt
Cross-tool portability Works identically across Claude Code, Codex, Cursor, Antigravity, MCP Fragmented across CLAUDE.md, AGENTS.md, .cursorrules
Multi-repo & multi-org One vault per client org + shared personal preferences (always_include) Duplicated manually in every repository
Hygiene & staleness 8 KB cap, append-only invalidate archive, curate staleness alerts Grows unbounded until rules contradict each other
Agent edits owner-lock & deterministic proposal queue Unchecked edits or manual copy-paste
Audit & secrets Secret scanner blocks sync; HTTP mode logs audit.jsonl None

Migrate existing notes in 30 seconds

memtwig migrate personal ~/notes --kind personal --always-include "persona/**"
memtwig index
memtwig install claude
memtwig install cursor
memtwig install codex
Install memtwig v1.0.0 Explore MCP Memory Server

FAQ

Do I have to delete my existing CLAUDE.md or AGENTS.md files?

No. Keep repo-specific build commands in CLAUDE.md, and use memtwig for cross-repo facts, client infrastructure, architectural decisions, and personal style rules shared across harnesses.

How fast is memtwig compared to reading Markdown files directly?

memtwig indexes 109 Markdown notes (1,078 chunks) into embedded SQLite FTS5 in roughly 105 ms and returns gated per-turn snippets in milliseconds, skipping courtesy prompts like 'ok thanks' automatically.