File tree Expand file tree Collapse file tree 7 files changed +32
-14
lines changed
Expand file tree Collapse file tree 7 files changed +32
-14
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,9 @@ dmypy.json
5858.env.local
5959.env. * .local
6060
61- # MemDocs output (for testing)
62- .memdocs /
61+ # MemDocs output
62+ # NOTE: Committing .memdocs/ to demonstrate dogfooding
63+ # .memdocs/ # Uncomment to exclude from git (for testing only)
6364* .memdocs.yml.backup
6465
6566# Distribution
Original file line number Diff line number Diff line change 11"""
22Local embeddings generation using sentence-transformers.
33
4- Zero-cost alternative to OpenAI embeddings API.
5- Model downloads once (~90MB), runs 100% locally.
4+ Zero-cost alternative to OpenAI embeddings API ($0.13/1M tokens → $0).
5+ Model downloads once (~90MB), runs 100% locally for privacy-first operation.
6+
7+ Enables semantic search over code documentation without external API dependencies.
68"""
79
810import json
Original file line number Diff line number Diff line change 11"""
22Extract context from git diffs, code files, and repository metadata.
33
4+ Core extraction engine that powers MemDocs documentation generation.
5+
46Responsibilities:
57- Parse git diffs to identify changed files
68- Extract code symbols (functions, classes) using AST parsing
79- Gather metadata (commit info, file stats, dependencies)
10+ - Support multi-language symbol extraction (Python, TypeScript, JavaScript)
811"""
912
1013import json
Original file line number Diff line number Diff line change 22MCP (Model Context Protocol) server for Claude Desktop integration.
33
44Enables Claude Desktop to query project memory stored in .memdocs/
5+ via semantic search, symbol lookup, and documentation retrieval.
6+
7+ This is MemDocs' flagship feature - allowing AI assistants to autonomously
8+ query git-committed memory without file system access.
59"""
610
711import json
Original file line number Diff line number Diff line change 11"""
2- Policy engine for scope determination and escalation rules .
2+ Policy engine for intelligent scope determination and escalation.
33
4- Determines when to expand scope from file → module → repo based on:
4+ Automatically expands documentation scope from file → module → repo based on:
55- Security-sensitive paths (auth/*, security/*)
6- - Cross-module dependencies
7- - Public API changes
8- - File count thresholds
6+ - Cross-module dependencies and import chains
7+ - Public API signature changes
8+ - File count thresholds (configurable)
9+
10+ Ensures critical changes get comprehensive documentation while keeping
11+ costs low for routine single-file updates.
912"""
1013
1114from pathlib import Path
Original file line number Diff line number Diff line change 11"""
2- Local vector search using FAISS.
2+ Local vector search using FAISS (Facebook AI Similarity Search) .
33
4- Zero-cost alternative to Pinecone ($70-200/month).
5- Index stored in .memdocs/memory/ (git-committed).
4+ Zero-cost alternative to Pinecone ($70-200/month → $0).
5+ Index stored in .memdocs/memory/ (git-committed, version-controlled).
6+
7+ Provides fast L2 distance similarity search for semantic code queries.
8+ Works offline with no external dependencies or API latency.
69"""
710
811import json
Original file line number Diff line number Diff line change 11"""
2- AI-powered summarization using Claude.
2+ AI-powered summarization using Claude Sonnet 4.5 .
33
4- Generates structured documentation from extracted code context.
4+ Generates structured YAML documentation from extracted code context,
5+ transforming git diffs and AST symbols into human-readable summaries
6+ with risk analysis, impact tracking, and feature descriptions.
57"""
68
79import os
You can’t perform that action at this time.
0 commit comments