EchoMe - Personal memory sync for AI CLI tools (CLI + optional MCP Server)
Project description
EchoMe
让每个 AI,都能接住你的过去。
Switch AI, not yourself.
是什么
EchoMe 是一个跨 AI 的个人上下文同步层。它把你的工作流规范、技术偏好、项目背景和协作习惯统一管理,让你在 Claude Code、Codex CLI、Cursor、Kiro 等任何 AI 工具之间切换时,不需要重复介绍自己。
核心架构
┌────────────────┐ ┌────────────────┐ ┌────────────────┐
│ Claude Code │ │ Codex CLI │ │ Cursor/Kiro │
│ (MCP Client) │ │ (MCP Client) │ │ (MCP Client) │
└───────┬────────┘ └───────┬────────┘ └───────┬────────┘
│ │ │
└──────────────────────┼──────────────────────┘
│ MCP Protocol
▼
┌──────────────────────────────────────────────┐
│ EchoMe MCP Server (本地) │
└──────────────────────┬───────────────────────┘
│ HTTPS
▼
┌──────────────────────────────────────────────┐
│ EchoMe Hub (你的服务器) │
│ FastAPI + PostgreSQL + pgvector │
└──────────────────────────────────────────────┘
三层注入策略
| Layer | 何时生效 | 方式 | 限制 |
|---|---|---|---|
| L0 | 每次对话 | 写入 ~/.claude/CLAUDE.md | ≤ 1500 tokens |
| L1 | 进入项目 | 项目级文件 | ≤ 2000 tokens |
| L2 | AI 按需查 | MCP search | 无限制 |
组件
| 组件 | 说明 | 位置 |
|---|---|---|
| Hub | FastAPI 服务端,存储和检索记忆 | hub/ |
| CLI | echome 命令行工具,管理和同步 |
echome/ |
| MCP Server | 向 AI 暴露查询/写入能力 | echome_mcp/ |
快速开始
1. 部署 Hub
cd hub
cp .env.example .env # 配置数据库和 token
docker compose up -d # 启动 Postgres + Redis + App
2. 安装 CLI + MCP(一条命令)
# 完整安装(CLI + MCP Server)
pip install echome-cli[mcp]
# 或仅安装 CLI(不需要 MCP)
pip install echome-cli
# 初始化:连接 Hub + 注册 MCP(交互式)
echome init
3. 添加记忆
echome add # 交互式添加
echome list # 查看所有记忆
echome search "PR 规范" # 搜索
4. 注入到 AI CLI
cd your-project
echome sync # 自动检测 + 渲染到 CLAUDE.md / AGENTS.md
5. 更新
echome update # 自更新到最新版本
之后 AI 就能通过 MCP 随时查询你的记忆了。
记忆模型
每条记忆有三个核心维度:
- Type:persona / workflow / tech / constraint / snippet / decision / knowledge / interaction / project
- Scope:global(跟人走)或 project-specific(跟项目走)
- Layer:L0(必须加载)/ L1(项目级加载)/ L2(按需搜索)
文档
技术栈
- Python 3.11+ / FastAPI / SQLAlchemy 2.0 / Alembic
- PostgreSQL 16 + pgvector
- Typer + Rich (CLI)
- mcp (official Python SDK)
- Docker Compose
- uv (包管理)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
echome-0.1.0.tar.gz
(16.5 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
echome-0.1.0-py3-none-any.whl
(35.2 kB
view details)
File details
Details for the file echome-0.1.0.tar.gz.
File metadata
- Download URL: echome-0.1.0.tar.gz
- Upload date:
- Size: 16.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a9907306590e5f7defc0005b419482d31cf5cc0656d943a8f482b0f2bc5d610
|
|
| MD5 |
718a8894f2070df376e289bfb0c8833b
|
|
| BLAKE2b-256 |
cef4bcf653a1448818d4d9e0c8862ff3a3766abb9f7015a02c9ed68c829bca9d
|
File details
Details for the file echome-0.1.0-py3-none-any.whl.
File metadata
- Download URL: echome-0.1.0-py3-none-any.whl
- Upload date:
- Size: 35.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc91f9f4f02f738bb6d0a038acc390073d6833d887ced4dc140a94bd44084365
|
|
| MD5 |
ce22a076e4e64a89dd12fac7a73521e0
|
|
| BLAKE2b-256 |
459ead3c00d0e760d2a007045d60d353e9b9e5771b9b06f423aa650920cd907f
|