Git-native memory for AI agents across every org.
Curated Markdown vaults routed by Git remote. One Go binary for every harness.
Production runs on Fly.io (fra). Rollback via fly releases.
Keep commit messages short. Run tests before proposing edits.
109 Markdown notes indexed into SQLite FTS5
Single static Go binary, zero CGO
External vector databases required
Architecture
Git + Markdown
Every vault is a plain Git repository. Notes use YAML frontmatter or lightweight headers, an 8 KB soft cap, and append-only archives instead of silent deletion.
Hybrid FTS5 + RRF
Local SQLite FTS5 BM25 fused with optional Ollama, OpenAI, or Cloudflare embeddings via Reciprocal Rank Fusion. Degrades cleanly to BM25 offline.
Proposals + RBAC
Org vaults and owner-locked notes block direct agent writes. Agents queue deterministic proposals in .curator/proposals.json; rejected IDs never reopen.
How it compares
| Capability | memtwig | Vector Memory APIs | Static Rules Files |
|---|---|---|---|
| Storage format | Plain Markdown in Git | Proprietary cloud DB | Unindexed flat files |
| Multi-org isolation | cwd & git remote routing in SQL | Manual tenant IDs in app code | Per-repo only |
| Agent write safety | owner-lock + proposal queue | Autonomous overwrite | Unrestricted edits |
| Secret scanning | Built-in linter blocks sync | None | Manual hooks |
| Cross-harness | CLI, stdio/HTTP MCP, native hooks | SDK integration required | Tool-specific filenames |
go install github.com/vittoriocompagno/memtwig/cmd/memtwig@latest
memtwig init ~/notes --name personal --kind personal
memtwig index
memtwig search "deploy"