
Memdocs
io.github.silversurfer562由 GitHub 账号 silversurfer562 发布v2.1.4更新于 Oct 25, 2026
Git-native project memory for AI assistants with enterprise-grade audit compliance
概览
MemDocs 是一个基于 Git 的项目记忆服务器,用 Claude 为代码生成文档,并通过 MCP 把这些上下文提供给 AI 助手。
- 可以做什么
- 按文件、模块或仓库级别生成文档并存入 .memdocs 目录,随代码一起提交,以 JSON、YAML 和 Markdown 记录符号、API 与决策摘要。检索已存储的项目记忆,支持本地关键词搜索,也可选用本地向量嵌入,并把相关上下文返回给助手。查看记忆统计信息,并把记忆导出为 Cursor 等其他格式。向兼容 MCP 的助手提供记忆,使其能跨会话请求项目上下文。
- 适用场景
- 适合希望助手在会话之间保留项目上下文、又不想依赖云服务的场景,尤其是只审查变更文件的大型仓库。也适合希望通过 Git 共享记忆的团队,以及新人上手和代码评审准备。
- 运行要求
- 作为 Python 包在桌面机器上本地运行(可用 pip 安装或通过 uvx 启动)。需要 ANTHROPIC_API_KEY 用于 Claude 摘要与分析,并用 PROJECT_ROOT 指定项目目录。可选的嵌入功能需要额外安装;检索不依赖云服务。
安装
在 SourceWeft 中
- 打开 控制台中的 Memdocs,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
MemDocs 🧠
Persistent Memory for AI Projects
[CI] [codecov] [Python 3.10+] [PyPI version] [License] [Code style: black]
Features • Quick Start • Complete Stack • Empathy Integration • Documentation • Examples • Contributing
🚀 The Complete Stack for 10x+ Productivity
Documented user experience: Transformational productivity through Level 4-5 AI collaboration
📖 Learn More:
- Quick Start: Blog Post - Engaging narrative explaining the five levels
- Executive Summary - 1-page overview for teams & investors
- Technical Deep-Dive - 21-page analysis with code examples
🎯 What is MemDocs?
MemDocs is a git-native memory management system that gives AI assistants persistent, project-specific memory. It generates structured, machine-readable documentation that lives in your repository—no cloud services, no recurring costs, just local/git-based storage that enhances AI context and team collaboration.
💡 The Problem
AI assistants like ChatGPT and GitHub Copilot have no memory between sessions. Every conversation starts from scratch, forcing you to repeatedly explain your codebase, architecture decisions, and project context.
Result: AI stuck at Level 1-2 (Reactive) - can only respond after being asked, can't predict future needs, can't learn from patterns.
✨ The Solution
MemDocs creates a persistent memory layer that unlocks Level 4-5 AI collaboration:
- 🧠 Remembers your project across sessions (via
.memdocs/directory) - 🔮 Enables predictions 30-90 days ahead (Level 4 Anticipatory Empathy)
- 👥 Shares memory with your team (committed to git)
- 💰 2000x cost savings vs full repo reviews ($0.03 vs $60)
- ⚡ Works offline (no cloud dependencies for retrieval)
- 🤝 Integrates with Empathy Framework (Level 4 Anticipatory Intelligence)
- 🔒 Privacy-first (optional PHI/PII detection and redaction)
Enterprise ROI: 6,000% return on investment (documented across 10-1,000 developer teams)
🚀 Quick Start
Installation
Basic Usage
Large Repository Workflow
Your First Documentation
✨ Key Features
🧠 Git-Native Memory
- All documentation stored in
.memdocs/directory - Committed alongside your code (same git workflow)
- Version controlled memory (track how project evolves)
- Team collaboration built-in (push/pull memory with code)
🎯 Smart Scoping
- File-level (default): Document individual files
- Module-level: Document entire directories
- Repo-level: Full codebase overview
- Auto-escalation: Automatically increases scope for important changes
🤖 AI-Powered Summarization
- Claude Sonnet 4.5: Latest and most capable model
- Intelligent extraction: Symbols, APIs, architecture decisions
- Multi-format output: JSON, YAML, Markdown
- Token-efficient: Only summarizes, doesn't embed
🔍 Semantic Search (Optional)
- Local embeddings: sentence-transformers (no API costs)
- Vector search: FAISS for fast similarity search
- Automatic indexing: Updates as you document
- No cloud lock-in: Everything runs locally
📈 Enterprise Scale - Large Repository Support
MemDocs scales to codebases of any size through intelligent git integration:
- Review only what changed:
memdocs review --changedreviews modified files only - Branch-aware:
memdocs review --since mainreviews your branch changes - Automatic updates: Git hooks keep memory current on every commit
- Cost-effective: 2000x cheaper than full repo reviews ($0.03 vs $60)
- Lightning fast: 15 seconds instead of hours
Perfect for large repos (1,000+ files):
Cost comparison:
🔌 MCP Server (Model Context Protocol)
- Real-time memory serving: Serve memory to AI assistants via MCP
- Claude Desktop integration: Auto-loaded context in Claude Desktop
- Cursor/Continue.dev support: Works with MCP-compatible tools
- Query-based context: AI requests exactly what it needs
- Auto-start: Automatically detect and serve memory when opening projects
Quick setup for Claude Desktop:
🚀 The Complete Stack: Transformational Productivity
When you combine the right tools, productivity isn't linear—it's exponential.
The four components work synergistically:
Real-world results:
- 10x+ efficiency improvement (documented user experience)
- Lower cost: 2000x cheaper than full repo reviews
- Higher quality: Problems predicted and prevented
- Faster delivery: Anticipatory design eliminates bottlenecks
Quick setup (5 minutes):
Result: Claude Code in VS Code operates at Level 4-5 (anticipatory) instead of Level 1-2 (reactive)
🔗 Empathy Framework Integration: Level 4-5 AI Collaboration
MemDocs unlocks Level 4 Anticipatory Empathy when integrated with the Empathy Framework.
The Five Levels of AI Collaboration:
Why MemDocs is Essential:
- 🔄 Level 3 (Proactive): MemDocs stores user patterns across sessions
- 🔮 Level 4 (Anticipatory): MemDocs tracks system trajectory for predictions
- 🏗️ Level 5 (Systems): MemDocs identifies leverage points across projects
Without persistent memory, AI is stuck at Level 1-2 forever.
📚 Deep Dive Resources:
- Blog Post: Why your AI can't predict tomorrow's problems (and how to fix it)
- Executive Summary: 1-page overview for teams & investors
- Technical Analysis: 21-page deep-dive comparing five empathy frameworks
Integration features:
- ✅ Works seamlessly with Empathy framework (1.6.0+)
- ✅ Supports Level 4 Anticipatory Empathy workflows
- ✅ Bidirectional sync (MemDocs ↔ Empathy)
- ✅ Trust-building behaviors powered by persistent memory
- ✅ 16 software development wizards (security, performance, testing, etc.)
- ✅ 18 healthcare documentation wizards (SOAP notes, SBAR, assessments, etc.)
🔒 Privacy & Security
- PHI/PII detection: Automatic sensitive data detection
- Redaction: Optional redaction modes (off, standard, strict)
- HIPAA/GDPR aware: Configurable privacy settings
- Local-first: No required cloud dependencies
📖 Documentation
Configuration
Create .memdocs.yml in your project root:
💼 Use Cases
1. Enterprise-Scale Codebases (1,000+ files)
Problem: Full repository reviews cost $60+ and take hours. Often fail due to token limits.
Solution: Git-aware incremental updates.
Real numbers from production use:
- 10,000 file Python monorepo
- 200 commits/week
- Cost: $4/week with hooks vs $240/week without
- 98% cost reduction
2. Onboarding New Developers
Result: Instant context about the project without asking teammates.
3. AI Assistant Context
Result: Claude remembers your project structure and decisions.
4. Code Review Preparation
Result: Reviewers get structured context automatically.
5. Empathy Framework Integration
Result: Level 4 Anticipatory Empathy powered by project memory.
🏗 Architecture
Storage Structure
How It Works
- Extract: tree-sitter parses code (Python, JS, TS, Go, Rust, etc.)
- Analyze: Identifies symbols, imports, APIs, patterns
- Summarize: Claude generates concise summaries with insights
- Store: Saves structured docs in
.memdocs/directory - Retrieve: Fast local search (grep-based or vector-based)
Token Efficiency
- Summarization only: ~1K tokens per file
- No embeddings API: Optional local embeddings only
- Local search: Instant, free, no API calls
- Cost: ~$0.10 per 100 files documented
🔧 CLI Reference
memdocs init
Initialize MemDocs in a project.
memdocs review
Generate memory documentation.
memdocs query
Search project memory (requires embeddings).
memdocs stats
Show memory statistics.
memdocs export
Export memory to other formats.
🔌 Integrations
Model Context Protocol (MCP)
MemDocs includes an MCP server for Claude Desktop:
Cursor Integration
Python API
💼 Enterprise ROI: The Numbers That Matter
MemDocs + Empathy delivers measurable productivity gains at any scale.
Cost Savings Examples
But the real value isn't just hours saved—it's crises prevented.
How much is it worth to:
- ✅ Never miss a compliance audit?
- ✅ Never hit a scaling bottleneck?
- ✅ Never spend 40 hours in emergency bug-fix mode?
- ✅ Scale to enterprise size without linear cost increases?
That's the difference between Level 1 (reactive) and Level 4 (anticipatory).
Why Enterprise Teams Choose This Stack
- 🎯 Proven at scale: Built for and tested with enterprise-scale codebases (10,000+ files)
- 📊 Measurable productivity: 10x+ documented improvement (not theoretical)
- 💰 Lower cost than alternatives: 2000x cheaper than full repo reviews
- 🔒 Security & compliance: PHI/PII detection, HIPAA/GDPR-aware, audit trails
- 🏢 Commercial-ready: Fair Source licensing, clear commercial terms
- 🤝 Vendor support: Direct access to core development team
Enterprise licensing: $99/developer/year (6+ employees) Free tier: Students, educators, and small teams (≤5 employees)
📊 Comparison
🗺 Roadmap
See PRODUCTION_ROADMAP.md for detailed 4-week production plan.
Version 2.1 (Q1 2025)
- VS Code extension
- Enhanced CLI with rich output
- Incremental documentation updates
- Custom prompt templates
Version 2.2 (Q2 2025)
- JetBrains plugin
- Multi-language support (Go, Rust, Java, C++)
- Memory compression (auto-summarize old docs)
- Team analytics dashboard
Version 3.0 (Q3 2025)
- MemDocs Cloud (optional hosted version)
- Enterprise features (SSO, RBAC, audit logs)
- Advanced Empathy integration
- GitHub App for automatic PR documentation
🤝 Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
Quick links:
Key areas needing help:
- Multi-language AST parsing (Go, Rust, Java, C++)
- IDE plugins (VS Code, JetBrains)
- Documentation improvements
- Example projects
📄 License
Apache License 2.0 - See LICENSE for details.
💬 Support & Community
- Documentation: Coming soon to https://www.smartaimemory.com/docs/memdocs
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Discord: Coming soon
- Contact: [email protected]
- Enterprise inquiries: [email protected]
📚 Additional Resources
- Blog Post: Why Your AI Assistant Can't Predict Tomorrow's Problems (And How to Fix It)
- Executive Summary: 1-page overview for presentations and investor pitches
- Technical Deep-Dive: Comprehensive analysis comparing five empathy frameworks
- Empathy Framework: Full five-level AI collaboration system
🙏 Acknowledgments
Created by: Patrick Roebuck (Smart AI Memory)
Powered by:
- Claude Sonnet 4.5 by Anthropic
- tree-sitter for AST parsing
- sentence-transformers for local embeddings
- FAISS for vector search
Special thanks to:
- The Empathy Framework team
- Early adopters and beta testers
- The open-source community
🧠 MemDocs: Because AI should remember your project, not forget it every session.
The first git-native AI memory system with Level 4 Anticipatory Empathy.
Made with ❤️ by Smart-AI-Memory (Deep Study AI, LLC)
Transforming AI-human collaboration from reactive responses to anticipatory problem prevention.
Get Started • View Examples • Complete Stack • Enterprise ROI • Contribute
来源:README.md,提交 62dc0b8
工具
0版本历史
1- v2.1.4最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分