Research & Memory
Clew provides a built-in deep research system and cross-session semantic memory — both designed to work with local files, web sources, and a persistent knowledge store.
Research System
The research system lives in src/research/ and supports deep, source-grounded research across local files, wiki content, and memory:
- Citation extraction — Automatic extraction of citations from research sources
- Claim verification — Fact-check claims against multiple sources
- Dossier generation — Structured reports with source attribution
- Truth checking — Cross-reference claims for accuracy
- Source ranking — Prioritize authoritative sources
Research Commands
| Command | Description |
|---|---|
/research | Deep source-grounded research across local files, wiki, and memory |
Memory System
The memory system lives in src/memdir/ and provides cross-session persistent knowledge storage with semantic search:
- Semantic search — Find relevant memories using text embedding similarity
- Cross-lingual — Search across languages using semantic embeddings
- Memory age tracking — Automatically age and prune old memories
- Auto-memory capture — Automatically save important information
- Hybrid recall — Combines local embedding search with LLM-based retrieval
- Team sync — Share memory across team members
Memory Commands
| Command | Description |
|---|---|
/memory | Edit Claude memory files |
/memory-search | Search memories using semantic search (cross-lingual) |
Architecture Files
| Path | Role |
|---|---|
src/research/ | Deep research, dossier generation, truth checking, source ranking |
src/memdir/ | Semantic memory search and storage |