By s-gryt
Sync AI coding conversations from Claude Code, Copilot, and similar tools into an Obsidian vault as a structured knowledge base. Automatically compile raw captures into concepts, maps of content, summaries, and indexes via ETL. Query past decisions and patterns with wikilink citations, run vault health checks, archive logs, and monitor stats.
npx claudepluginhub s-gryt/memory-mason --plugin memory-masonArchive old build log entries from _meta/log.md into compact summary pages in _meta/folds/. Prevents log.md from growing unbounded. Extractive only — no invented facts, additive only — never removes source entries until confirmed. Use when _meta/log.md exceeds 200 entries or feels unwieldy.
Compile today's or a specified daily capture into the Vault Architecture v2 structure. Runs a three-stage EXTRACT -> TRANSFORM -> LOAD pipeline that updates concepts, atlas MOCs, synthesis pages, the root index, build log, manifest, state, session bootstrap context, and auto-archive folds.
Run health checks on the knowledge base. Finds broken wikilinks, orphan pages, uncompiled raw captures, stale articles, missing backlinks, sparse content, manifest drift, stale session context, unresolved contradictions, wikilink density issues, short-form link issues, wrong source prefixes, and knowledge gaps. Reports issues by severity: error, warning, suggestion.
Query the knowledge base. Reads session context first, then the root index, then relevant atlas, concept, and synthesis pages, and synthesizes a clear answer with [[wikilink]] citations. Use when you want to ask about past decisions, patterns, lessons, or technical knowledge captured in previous AI conversations.
Show knowledge base statistics: article count by type, last compile time, raw capture status, token economics, session context status, manifest status, and a health summary. Quick overview of the Memory Mason knowledge base state.
Set up or remove Memory Mason. Configures vault path, installs hooks if missing, or uninstalls everything. Use when the user says "set up memory mason", "install hooks", "configure memory mason", "uninstall memory mason", "remove memory mason", or runs /mmsetup.
Matches all tools
Hooks run on every tool call, not just specific ones
Share bugs, ideas, or general feedback.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimAccess thousands of AI prompts and skills directly in your AI coding assistant. Search prompts, discover skills, save your own, and improve prompts with AI.
Complete developer toolkit for Claude Code
Permanent coding companion for Claude Code — survives any update. MCP-based terminal pet with ASCII art, stats, reactions, and personality.
AI-powered development tools for code review, research, design, and workflow automation.
Memory compression system for Claude Code - persist context across sessions
Semantic search for Claude Code conversations. Remember past discussions, decisions, and patterns.

Capture AI conversations. Build an Obsidian knowledge base. One command.
Memory Mason hooks into your AI coding agent and silently captures every conversation into daily Obsidian logs. When you're ready, run /mmc to compile raw logs into structured knowledge articles — concepts, synthesis pages, and MOCs — all interlinked with [[wikilinks]]. Then use /mmq to retrieve answers from your compiled knowledge base without leaving the conversation.
No API key needed. No cloud sync. Everything stays local in your Obsidian vault.
[AI Conversation] ──> [Hook Runtime] ──> [Smart Filter] ──> [Obsidian Vault]
(any agent) (automatic) (6-stage pipe) _raw/YYYY-MM-DD/
Hooks capture prompts, tool results, and session transcripts into daily log files. Before anything reaches your vault, a six-stage filtering pipeline strips noise and protects sensitive data:
.env contents, or paths like .ssh/ and .aws/Memory Mason's own commands (/mmc, /mmq, /mml, /mms, /mma, /mmsetup) and namespaced /memory-mason:* forms are automatically excluded from capture.
Daily logs are stored in per-day folders and auto-split into files of up to 500KB each. This keeps Obsidian responsive and ensures each file stays within LLM processing limits. No data is lost — every conversation turn is preserved, and Obsidian indexes all chunks for full-text search. Token economics (raw vs. stored token counts and savings percentage) are tracked automatically and reported by /mms. See docs/README.md for technical details on chunked storage.
_raw/YYYY-MM-DD/ ──> /mmc compile ──> concepts/
atlas/
synthesis/
index.md
Run /mmc to compile daily logs into structured articles. The host LLM reads your raw logs and produces atomic concept pages, MOC navigation pages in atlas/, and cross-session synthesis pages — all linked with [[wikilinks]] for Obsidian graph navigation.
/mmq "How does auth work?" ──> _meta/context.md ──> concepts/ + atlas/ + synthesis/ ──> answer with [[citations]]
Run /mmq with a question. Memory Mason checks session context for recent focus first, then reads compiled articles, synthesizes an answer, and cites sources with [[wikilinks]] back to the original concepts. Your knowledge base grows with every session and becomes more useful over time.
| Command | What it does |
|---|---|
/mmc | Compile raw captures into concepts, MOCs, and synthesis pages; update session context and source manifest |
/mmq | Answer questions from your knowledge base with source citations |
/mml | Run knowledge base health checks (broken links, stale content, manifest integrity, and more) |
/mms | Show knowledge base status, token economics, health summary, and compilation coverage |
/mma | Archive old build log entries to keep the knowledge base log compact |
/mmsetup | First-time vault configuration (or uninstall) |
Pick your agent. Restart the host after install.