Capture decisions, answers, and institutional knowledge from email, chat, and documents. Self-hosted. PII-aware. Wraps MemPalace.
git clone https://github.com/PowerLooming/ThreadWeave
then
cd ThreadWeave && bash setup.sh
No new tools. No workflow change. ThreadWeave reads from the platforms you already use and surfaces the knowledge inside them.
Google Workspace service account — polls inbox, threads replies, extracts decisions
Listens across spaces, skips bot messages, captures human answers and decisions
Google Docs, Sheets, Slides, PDFs, Markdown — extracts text, maps folders to teams
Graph connector push-syncs ThreadWeave entries into Copilot and Microsoft Search
# One-shot sync from Gmail (last 7 days) threadweave gws sync --source gmail --query "newer_than:7d" # Continuous watch mode threadweave gws watch --interval 300 # Harvest a departing employee's knowledge threadweave gws harvest --email lars@firm.com
Every piece of content passes through four stages before it reaches the knowledge store.
# Classify text โ is it worth saving? threadweave detect "We decided to use Postgres for JSONB support" # Output: { "should_save": true, "content_type": "decision", "confidence": 0.92, "has_pii": false, "suggested_title": "Decision: Use Postgres for JSONB support" }
Runs on your hardware. No cloud dependency. No external API calls required. Built for firms that can't send data off-prem.
Public, internal, confidential, restricted, HR-privileged, client-confidential, legal-privileged. Auto-detected at ingest. Enforced at read.
Emails, phone numbers, personal identifiers are detected and filtered before storage. Your knowledge base stays compliant.
When someone leaves, drain their institutional knowledge โ every decision, process, and client context from their email, chat, and documents.
Uses any OpenAI-compatible endpoint to classify content with nuance. Gracefully falls back to regex heuristics when no API key is configured.
Ingest latency (p50/p95/p99), throughput, dedup hit rate, LLM vs regex fallback ratio. JSON and Prometheus text format endpoints.
Semantic similarity + org proximity + freshness + author authority. The right answer finds the right person.
Team membership with validity windows. Query what team someone was on in Q2 2023. Knowledge graph built on MemPalace's temporal triples.
Full OpenAPI docs at /docs. Every pipeline stage is a documented endpoint. Build your own integrations on top.
Ingest anything. Search everything. The pipeline does the rest.
# Ingest content โ pipeline handles dedup, detection, PII, storage POST /api/v1/ingest { "content": "Always run integration tests before deploying to prod.", "source": "manual", "metadata": { "wing": "engineering", "room": "deployment", "author_id": "harald" } } # Search across everything POST /api/v1/search { "query": "deployment pipeline", "wing": "engineering" } # Metrics in Prometheus format GET /api/v1/metrics/prometheus
Star the repo, spin it up, or get in touch if you want to run it at your firm. No license fees. No cloud dependency. AGPL, forever.