
LoreConvo
io.github.labyrinth-analytics由 GitHub 账号 labyrinth-analytics 发布v0.11.0更新于 Nov 7, 2026
Local-first persistent session memory for Claude Code and other agents. SQLite + FTS5, no cloud.
概览
面向编程智能体的本地优先会话记忆:把项目上下文保存、检索并召回在你自己机器上的 SQLite 数据库中。
- 可以做什么
- 保存、列出、读取、打标签、关联和固定会话,包含决策、产出物与未决问题
- 按关键词或主题搜索并召回历史会话,获取相关会话建议
- 以项目工作区组织工作,含项目说明、技能历史与智能体上下文配置
- 管理结构化记忆条目(决策、问题、产出物),并整合为记忆摘要
- 以 JSON 导出和导入会话,并导出会话关联的 Mermaid 图
- 查看套餐与用量、重建语义索引、运行首次设置向导
- 适用场景
- 适合在多个客户端或机器上使用编程智能体、反复解释项目背景的场景。也适合希望日后能检索会话历史与决策、同时把数据留在本机的团队。
- 运行要求
- 以本地进程方式通过 uvx 从 PyPI 包运行,或经插件市场、安装脚本安装。需要 macOS 或 Linux 上的 Python 3.11-3.14。无需账号或云服务;可选的 Pro 许可证密钥通过环境变量 LORECONVO_PRO 提供。可选的 AI 摘要需要 LORECONVO_ANTHROPIC_API_KEY。
安装
在 SourceWeft 中
- 打开 控制台中的 LoreConvo,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
LoreConvo v0.11.0
Your memory follows your identity, not your tool — with your consent.
LoreConvo is the only AI memory that carries your context across Claude Code, Cowork, Codex, Cursor, and Hermes Agent. One install, one memory, everywhere you code.
Install directly from Claude Code's plugin marketplace, or via PyPI:
uvx --from loreconvo[server] loreconvo
Why LoreConvo?
Works wherever you work
LoreConvo works across Claude Code, Cowork, Cursor, Codex, and Hermes -- the same memory layer, no matter which client you reach for. When you switch mid-project, your context travels with you automatically.
Most tools wall off memory by machine or workspace. LoreConvo stores everything locally in a SQLite database you own, and surfaces it wherever you are. Capture happens two ways: explicitly via the save tools, or automatically at session end if you install the optional hooks. Either way, you can inspect, edit, or delete any memory at any time.
You control what gets saved
LoreConvo puts you in control: automatic capture only runs if you choose to install the session hooks, every save is inspectable, and you can delete any memory at any time.
Every memory shows you exactly where it came from — which surface captured it, when, what project context it belongs to, and which skill generated it. No mystery. Full provenance.
Your memory stays on your machine
LoreConvo stores everything in a SQLite database on your own machine. Your data stays local unless you explicitly enable optional AI summarization (off by default) by setting LORECONVO_ANTHROPIC_API_KEY, which sends a transcript excerpt or summary to the Anthropic API using that key. LoreConvo never reads the generic ANTHROPIC_API_KEY. No cloud accounts. No vendor with access to your session history.
Your sessions live in ~/.loreconvo/sessions.db -- a file you own, can back up, and can delete whenever you want.
Structured memory, not raw transcripts
LoreConvo captures two types of memory for each session:
- Episodic memory: what happened -- summaries, artifacts created, open questions left behind
- Semantic memory: what was decided -- stable conclusions about the project that persist across sessions
Together these give Claude a structured, searchable record of your project's history, not just a pile of chat transcripts.
Recall Benchmark
LoreConvo's FTS5 search is benchmarked against a 60-session synthetic corpus (6 topic areas, 36 labeled queries).
Compound token expansion (camelCase / snake_case query preprocessing) lifts Recall@5 by +35.7 pp on queries using technical identifiers like autoSave, pipeline_tracker, and get_context_for.
Full benchmark report | Reproduce
Quick Start
One command to install:
This creates a virtual environment, installs dependencies, and verifies everything works. No system Python changes, no manual pip commands.
Using the Claude Agent SDK directly? git clone the public repo and point the SDK's local-directory plugin loader at it -- the repo root is a self-contained plugin directory (.claude-plugin/plugin.json + .mcp.json). No separate SDK-installable bundle exists or is needed.
Using LoreConvo
Claude Code (Terminal)
Start a session with the plugin loaded:
Or load it inside an existing session:
Replace /path/to/loreconvo with wherever you saved the source folder.
After making code changes, use /reload-plugins to refresh without restarting.
Once loaded, Claude has access to all 40 LoreConvo MCP tools automatically. Ask Claude to "save this session" or "recall what we discussed about X" and it will use the tools on its own.
Cowork (Desktop App)
- Click the + button next to the prompt box
- Select Plugins
- Select Add plugin
- Browse to the
loreconvosource folder
Important: Shared Database Access
Cowork runs in a sandboxed VM and can't see your Mac's filesystem by default. To read sessions saved by Claude Code, ask Claude in Cowork:
"Mount my ~/.loreconvo folder"
Once mounted, Cowork reads and writes to the same database as Claude Code. Sessions saved in Code appear instantly in Cowork.
Claude Chat (Web)
Chat doesn't support plugins, so LoreConvo provides a one-command bridge. Run this in your terminal:
This exports your last session and copies it to your clipboard (macOS). Switch to Chat and paste (Cmd+V). Chat instantly has the context from your Code or Cowork session.
To search for a specific session:
How It Works Across Surfaces
The core value of LoreConvo is that context persists across Claude surfaces automatically. Here is the full chain:
Claude Code is the primary surface. The hooks run automatically:
- When a session ends,
auto_save.pycaptures the conversation and saves a structured summary (decisions, artifacts, open questions, tags) to the local SQLite database. - When a new session starts,
auto_load.pyqueries the database, scores recent sessions by signal quality, and injects the most relevant context into the session as system context. Sessions with open questions and decisions score highest; low-signal sessions are filtered out. It also indexes any MEMORY.md found in the project directory (see MEMORY.md Auto-Indexing below).
Cursor connects via .cursor/mcp.json in the project root -- the same MCP protocol as Claude Code. See INSTALL.md for setup details.
OpenAI Codex connects via ~/.codex/config.toml using a [mcp_servers.<name>] section. See INSTALL.md for setup details.
Hermes Agent connects via ~/.hermes/config.yaml under the mcp_servers: key. See INSTALL.md for setup details.
Claude Chat (web) does not support plugins. The export-to-chat.sh script bridges the gap: it exports your most recent session to your clipboard so you can paste it directly into Chat. This gives Chat the same context that Code would have loaded automatically.
The result: when you switch surfaces mid-project, you never have to re-explain what you were doing.
Your Data is Always Available
LoreConvo works through MCP tools when they are available and falls back to bundled scripts automatically when they are not. Your sessions are safe regardless of MCP status -- the same save, search, and recall operations work either way. You do not need to configure anything; the plugin skill handles the switch silently.
Project Workspaces
LoreConvo projects are persistent workspaces -- every session, decision, and artifact from your work on a project is searchable from any Claude surface.
Project Instructions (optional): When you create a project, you can store persistent instructions or constraints that Claude will see at session start. This is useful for enforcing project-wide standards without repeating them in every CLAUDE.md file. Instructions are displayed in the auto-load context before recent session summaries.
Used with LoreDocs, LoreConvo forms a portable project workspace for all of Claude -- session memory AND structured knowledge, entirely on your machine. Where cloud AI workspaces tie you to one ecosystem, the Lore pair works across every Claude surface you already use.
MEMORY.md Auto-Indexing
If your project has a MEMORY.md file, LoreConvo automatically indexes it at every session start. The contents become searchable alongside your regular sessions via search_sessions.
This means Claude can recall project conventions, team notes, or architectural decisions from MEMORY.md without you having to mention them. Search results from MEMORY.md are tagged memory_md and have source='file_memory' so you can tell them apart from regular session entries.
Which directory is scanned?
By default, LoreConvo scans the directory where Claude Code is running (the current working directory). To point it at a different directory, pass LORECONVO_PROJECT_PATH as an env flag in your claude mcp add --scope user command:
Replace YOUR_USERNAME and my_project with your actual values. Use the full absolute path -- do not use ~ or $HOME.
Filtering MEMORY.md entries in search results
To include MEMORY.md entries in a search, use search_sessions normally -- they appear automatically. To see only MEMORY.md entries, filter by tag:
"Search LoreConvo sessions tagged memory_md for 'database conventions'."
The index is updated each time a session starts (idempotent -- no duplicates accumulate).
Verify Installation
After installing, verify LoreConvo is working by asking Claude:
"Run
get_recent_sessionsand show me the results."
If you see a list of sessions (or an empty list if this is your first time), LoreConvo is connected. If you get an error about missing tools, re-run bash install.sh and reload the plugin.
For hooks verification (Claude Code only):
"Check if LoreConvo auto-loaded any context at the start of this session."
If the SessionStart hook is working, Claude will have received context from your recent sessions automatically.
Recommended CLAUDE.md Setup
For the best experience, add the following snippet to your ~/.claude/CLAUDE.md (global) or your project's CLAUDE.md. This tells Claude how to use LoreConvo consistently across sessions.
For Cowork users: Cowork does not run hooks automatically. Add instructions to call get_recent_sessions at session start and save_session at session end in your project CLAUDE.md. See COWORK_RESTORE.md for details.
Plans: Free vs Pro
LoreConvo is local-first and free to use. Pro ($8/mo) removes the session limit and unlocks LLM-quality summaries, hybrid retrieval search, and cross-product linking. Everything runs on your machine on either plan -- Pro adds no cloud component.
Free tier search: keyword (FTS5) + recency ordering. Pro tier search: hybrid retrieval -- vector (BGE-small-en-v1.5), BM25 full-text, and recency reranking combined via RRF fusion. Finds sessions by meaning, not just keywords.
Check your current tier and usage with get_tier. Activate a Pro license with
vault_set_tier.
Features
- Automatic session capture: Sessions save at session end and load at session start via Claude Code hooks -- no manual
save_sessioncall required - Cross-client memory: Your context follows you across Claude Code, Cowork, Cursor, Codex, and Hermes -- not locked to one IDE or machine
- Structured sessions: Captures decisions, artifacts, open questions -- not just raw text; optional reasoning_notes field stores agent reasoning chains
- Project organization: Group sessions by project with expected skill sets
- Skill tracking: Record which skills were used for smart filtering
- Persona tagging: Hierarchical personas for agent-specific memory (e.g.,
ron-bot:sql) - Full-text search: SQLite FTS5 for fast keyword search across all sessions
- MEMORY.md auto-indexing: Your project MEMORY.md is automatically indexed at session start and is searchable alongside regular sessions via
search_sessions - LLM async session summarization (Pro): Auto-saved sessions are upgraded to LLM-quality summaries in the background using Claude Haiku. Opt in by setting
LORECONVO_ANTHROPIC_API_KEY. A daily cap (LORECONVO_SUMMARIZER_DAILY_CAP, default 100) prevents runaway API spend. Pro tier only. - Embedding-based related session discovery (Pro):
get_related_sessionsautomatically discovers sessions with similar content using BGE-small-en-v1.5 embeddings (cosine >= 0.75). Up to 10 bidirectional auto-links per save, same-project scoped. Free tier gets keyword co-occurrence links. SetLORECONVO_EMBEDDING_LINKS=0to disable embedding links. - Cross-product document linking (Pro): Automatically discovers and links the LoreDocs documents most relevant to any session, and vice versa. Uses two new tools:
get_docs_for_sessionandsession_link_doc. Requires both LoreConvo Pro and LoreDocs Pro. - Configurable tool groups: Choose which groups of tools your assistant sees (
core,memory,graph,agents,admin) with theconfigure_toolstool orLORECONVO_TOOL_GROUPS. All groups are on by default. See Tool Groups. - Local-first: SQLite database, no cloud dependency, zero API costs
Tiers
Free - 50 sessions
- Full feature set: auto-load, full-text search, tagging, session linking, export and import
- Local SQLite storage -- your data, your machine, no cloud account required
- One-click install via the Anthropic Marketplace
Pro - $8/month
- Unlimited sessions
- Team memory: share sessions with teammates (local-first async export/import, no server required)
- Related session discovery and semantic search
- Anthropic managed-agents export
- LLM-quality session summarization in the background (async)
After checkout, your license key is emailed automatically to the address you used at checkout, usually within a few minutes. Questions: [email protected].
MCP Tools
LoreConvo provides 40 MCP tools that Claude calls automatically during sessions. The table below shows the most commonly used ones -- see MCP Tool Catalog for the complete reference.
Requirements
- Python 3.11-3.14
- macOS or Linux
mcpandclick(auto-installed byinstall.sh)
Data and Privacy
LoreConvo is local-first. All data lives in ~/.loreconvo/sessions.db on your machine.
- Data collected: Session titles, summaries, tags, surface identifiers, project names, and skill names you provide when saving. No telemetry, usage analytics, or identifiers are collected automatically.
- Storage: SQLite database at
~/.loreconvo/sessions.db. No cloud storage. Override the path with theLORECONVO_DBenvironment variable. - Third-party sharing: None by default. Data leaves your machine only if you enable optional AI summarization by setting
LORECONVO_ANTHROPIC_API_KEY, which sends a bounded transcript excerpt or summary to the Anthropic API under that key. Every summarization path (background summaries (Pro), post-turn capture (Pro), andsave_session(summarize=True)) uses only this key; the genericANTHROPIC_API_KEYis never read. Leave it unset and everything stays local. - Retention: Data is retained until you delete it via
delete_sessionor remove the database file manually. No automatic expiry. - Contact: [email protected]
Full privacy policy: https://labyrinthanalyticsconsulting.com/privacy
Troubleshooting
MCP tools not showing up in Claude Code?
Make sure you ran bash install.sh first. The .venv must exist with dependencies installed.
"No module named 'mcp'" error?
The .mcp.json points to .venv/bin/python3 inside the plugin folder. If you moved the folder, re-run bash install.sh.
Cowork can't see sessions saved in Code? Ask Claude to "mount my ~/.loreconvo folder" so Cowork can access the shared database.
Fallback Script (Direct DB Access)
If the MCP server is unreachable (e.g., in scheduled tasks or automation scripts), scripts/save_to_loreconvo.py provides the same core operations directly against the SQLite database.
The script auto-discovers the database at ~/.loreconvo/sessions.db (or pass --db-path explicitly). It generates proper UUIDs and writes the same schema as the MCP save_session tool.
What's New
v0.11.0 (2026-11-06)
Added
- Secrets (AWS keys; API keys, passwords and tokens of 16 or more
characters written as
name=valueorname: value; bearer tokens; JWTs; PEM private keys) are now automatically redacted before anything is saved, before a summary is sent to Claude for summarization, and before results are returned -- across saved sessions and memory items. A new maintenance command,loreconvo-scan-secrets, can scan and clean up anything saved before this update (dry-run by default). Pro users should runrebuild_indexafterwards so the semantic search index is cleaned too. If it finds a match, rotate that credential -- redacting it here does not invalidate it elsewhere.
Fixed
- Deleted and expired sessions no longer linger in Pro semantic search
results. If you used semantic search before this update, run
rebuild_indexonce to clear out any old entries. - Agent context now stays within the requested project. Consolidation status is available when viewing a project without selecting a surface.
- The Python fallback now matches recent-session filtering and search ranking. Expiry changes require an explicit timestamp or a request to clear it.
See the full changelog for the complete release history.
License
Business Source License 1.1 (BSL 1.1) - Labyrinth Analytics Consulting
Free for personal/non-commercial use (up to 50 sessions). Commercial use requires a paid license. Converts to Apache 2.0 on 2030-03-31. See LICENSE for details.
mcp-name: io.github.labyrinth-analytics/loreconvo
来源:README.md,提交 a04b581
工具
0版本历史
3- v0.11.0最新Nov 7, 2026
- v0.10.20Oct 29, 2026
- v0.10.12Sep 25, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。