终于,AI有了记忆。
Context Sync 是开源基础设施,它赋予AI系统在所有开发工具、会话和项目中持久的记忆。
<br> <br># AI辅助开发的未来
npm install -g @context-sync/server
本地优先 • 开源 • 平台无关 • 由开发者为开发者构建
</div> ---支持:
<!-- 平台徽章 - 突出显示 --> <p> <img src="https://img.shields.io/badge/Cursor-Supported-00D4AA?style=for-the-badge&logo=cursor&logoColor=white" alt="Cursor"> <img src="https://img.shields.io/badge/Claude%20Desktop-Supported-6366f1?style=for-the-badge&logo=anthropic&logoColor=white" alt="Claude Desktop"> <img src="https://img.shields.io/badge/VS%20Code-Supported-007ACC?style=for-the-badge&logo=visualstudiocode&logoColor=white" alt="VS Code"> <img src="https://img.shields.io/badge/GitHub%20Copilot-Supported-24292e?style=for-the-badge&logo=github&logoColor=white" alt="GitHub Copilot"> <!-- Continue.dev --> <img src="https://img.shields.io/badge/Continue.dev-Supported-1F8ACB?style=for-the-badge&logo=continue-dot-dev&logoColor=white" alt="Continue.dev"> <!-- windsurf --> <img src="https://img.shields.io/badge/Windsurf-Supported-FF6F61?style=for-the-badge&logo=windsurf&logoColor=white" alt="Windsurf"> <!-- tabnine --> <img src="https://img.shields.io/badge/TabNine-Supported-4A90E2?style=for-the-badge&logo=tabnine&logoColor=white" alt="TabNine"> <!-- zed --> <img src="https://img.shields.io/badge/Zed-Supported-000000?style=for-the-badge&logo=zed&logoColor=white" alt="Zed"> </p>AI系统在对话之间丢失上下文。你需要花费数小时解释代码库、架构决策和项目背景……然后关闭聊天,第二天从头开始。
记忆丧失的问题影响所有人:
这不仅仅是不方便——这是根本性的缺陷。
Context Sync 在所有开发环境中创建持久且可查询的记忆层。
想象它是分布式版本控制的AI上下文:
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Claude.ai │ │ Cursor IDE │ │ VS Code │
│ (Web & App) │ │ │ │ + Copilot │
└─────────┬───────┘ └─────────┬───────┘ └─────────┬───────┘
│ │ │
│ MCP协议(标准化) │
│ │ │
└──────────────────────┼──────────────────────┘
│
┌───────────▼────────────┐
│ Context Sync │
│ 内存层 │
│ │
│ • 项目上下文 │
│ • 代码理解 │
│ • 决策历史 │
│ • 架构图 │
│ • 文件操作 │
│ • Git集成 │
└────────────────────────┘
每个AI工具都获得相同的共享内存。
AI记忆不应该被企业控制。
Context Sync 是由厌倦了以下问题的开发者构建的:
我们的理念:
# 全局安装
npm install -g @context-sync/server
# 重启您的AI工具(Claude Desktop,Cursor,VS Code)
# 然后询问:“帮助我开始使用context-sync”
就是这样。 Context Sync 自动配置并引导您完成首次设置,提供自然语言指令。
在使用Context Sync之前:
周一 - Claude Desktop:
您:"我正在用TypeScript构建一个React应用,使用Supabase进行身份验证......"
Claude:*帮助了2个小时*
周二 - 新的聊天:
您:"继续我的React应用的工作"
Claude:"哪个React应用?你能描述一下你的项目吗?"
您:*花了20分钟重新解释一切*
在使用Context Sync之后:
周一 - Claude Desktop:
您:"我正在用TypeScript构建一个React应用,使用Supabase进行身份验证......"
Claude:*帮助了2个小时*
周二 - 新的聊天(或不同的AI工具):
您:"继续我的React应用的工作"
Claude:"继续您的带有Supabase身份验证的TypeScript React应用。我们接下来要做什么?"
这就是持久AI记忆的力量。
# 1. 安装Context Sync
npm install -g @context-sync/server
# 2. 重启您的AI工具(Claude Desktop,Cursor,VS Code)
# 3. 请求帮助设置
"帮助我开始使用context-sync"
Context Sync 自动检测您的平台,并通过个性化指令引导您完成设置。
📖 需要详细的文档吗? 查看 Context Sync v1.0.0 综合文档,获取完整的设置指南、故障排除和高级配置。
全局安装Context Sync后:
"帮助我开始使用context-sync"Context Sync 应该出现在可用工具中!✨
</details>安装Context Sync后,在Claude Desktop中键入:
setup cursor
Claude 将为您提供特定于操作系统的说明!✨
</details> <details> <summary><b>手动设置Cursor</b></summary> <br>打开Cursor:设置 → MCP
添加此配置:
{
"mcpServers": {
"context-sync": {
"command": "npx",
"args": ["-y", "@context-sync/server"]
}
}
}
刷新MCP服务器
测试:"帮助我开始使用context-sync"
完成!✅
</details> </details> <details> <summary>Claude Desktop</summary> <details> <summary><b>Claude Desktop快速设置(30秒)</b></summary> <br>全局安装Context Sync后:
"帮助我开始使用context-sync"Claude 将自动配置自己!✨
</details> <details> <summary><b>手动设置Claude Desktop</b></summary> <br>Windows:
# 编辑配置文件
notepad "%APPDATA%\Claude\claude_desktop_config.json"
macOS:
# 编辑配置文件
open ~/Library/Application\ Support/Claude/claude_desktop_config.json
Linux:
# 编辑配置文件
nano ~/.config/Claude/claude_desktop_config.json
添加此配置:
{
"mcpServers": {
"context-sync": {
"command": "npx",
"args": ["-y", "@context-sync/server"]
}
}
}
重启Claude Desktop并测试:"帮助我开始使用context-sync"
全局安装Context Sync后:
"帮助我开始使用context-sync"Context Sync 应作为MCP工具可用!✨
</details> <details> <summary><b>手动设置Continue.dev</b></summary> <br>打开Continue配置:~/.continue/config.yaml
添加MCP服务器配置:
mcpServers:
context-sync:
command: npx
args: ["-y", "@context-sync/server"]
重启VS Code
测试:"帮助我开始使用context-sync"
全局安装Context Sync后:
context-syncnpx-y @context-sync/server"帮助我开始使用context-sync"全局安装Context Sync后:
context-syncnpx["-y", "@context-sync/server"]"帮助我开始使用context-sync"全局安装Context Sync后:
{
"context-sync": {
"command": "npx",
"args": ["-y", "@context-sync/server"]
}
}
"帮助我开始使用context-sync"Context Sync 使用模型上下文协议(MCP)在您和AI系统之间创建一个持久的知识层。
架构:
您的开发环境
┌─────────────────────────────────────────────────────────┐
│ IDE/编辑器 AI工具 浏览器/网页 │
│ ┌───────────┐ ┌───────────┐ ┌─────────────┐ │
│ │ Cursor │ │ Claude │ │ Claude.ai │ │
│ │ VS Code │ │ Desktop │ │ Web app │ │
│ │ Vim/etc │ │ Copilot │ │ 其他AI │ │
│ └─────┬─────┘ └─────┬─────┘ └──────┬──────┘ │
└────────┼──────────────────┼─────────────────┼───────────┘
│ │ │
└──────────────────┼─────────────────┘
│ MCP协议
│
┌───────────────────────────▼─────────────────────────────┐
│ Context Sync(开源) │
│ │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────────┐ │
│ │ 内存 │ │ 文件 │ │ Git & 代码 │ │
│ │ • 项目 │ │ • 读取 │ │ • 状态 │ │
│ │ • 上下文 │ │ • 写入 │ │ • 差异 │ │
│ │ • 历史 │ │ • 搜索 │ │ • 分析 │ │
│ └─────────────┘ └─────────────┘ └─────────────────┘ │
│ │
│ 本地SQLite数据库(~/.context-sync/) │
└─────────────────────────────────────────────────────────┘
关键优势:
Context Sync 不仅仅是一个工具——它是基础设施。
就像Git对代码一样,Context Sync 是AI知识的版本控制:
当前生态系统支持:
随着您的项目扩展的智能记忆:
项目感知上下文:
高效的内存使用:
面向开发者的功能:
您的代码属于您:
根本区别:Context Sync 是基础设施,而不是产品。
其他方法:
Context Sync 方法:
互补而非竞争:
/compact一起使用以压缩对话