CrossBrain — Data skill for Claude Code
把 AI 编程偏好写一次,同步到 Claude Code / Codex / Antigravity / OpenCode 等所有工具.
How to install CrossBrain
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open JasonOracle/CrossBrain and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What CrossBrain does
把 AI 编程偏好写一次,同步到 Claude Code / Codex / Antigravity / OpenCode 等所有工具。本地优先、100% 离线、数据不上云 | Write your AI coding preferences once — sync them everywhere. Local-first, 100% offline, your data never leaves the machine.
Alternatives in Data
- Opencode Mem — OpenCode plugin that gives coding agents persistent memory using local vector database 1.5k ★
- Agentsview — Local-first session intelligence and analytics for coding agents, supporting Claude Code, Codex, and 14 other 824 ★
- Memex — Open-source, local-first AI journal app for iOS and Android 697 ★
README
🧠 CrossBrain(记忆穿梭)
**Write your AI coding preferences once. Use them everywhere. / 写一次 AI 规则,处处可用。**
[](https://github.com/JasonOracle/CrossBrain/releases/latest) [](https://github.com/JasonOracle/CrossBrain/releases/latest) [](https://tauri.app) [](#-testing--测试与质量)
*100% local · Zero network dependency · 100% 本地运行 · 零网络依赖*
**[中文](#-项目背景为什么做-CrossBrain)** | **[English](#-english-background--documentation)**
🇨🇳 项目背景:为什么做 CrossBrain
一个真实遇到的问题
2026 年,AI 编程工具爆发式增长。我的电脑上同时装着 **Claude Code、Codex、Antigravity IDE、OpenCode** 等 4 个以上的 AI 编程工具——这还不算完,市面上还有 Cursor、Trae、CodeBuddy 等十几个。每个工具都有自己的「记忆」:
- Claude Code 读
~/.claude/CLAUDE.md - Codex 读
~/.codex/AGENTS.md - Antigravity 读
~/.gemini/config/rules/下的整个目录 - OpenCode 读
~/.config/opencode/AGENTS.md……
于是出现了三个让人崩溃的问题:
- 重复劳动:同一份「我的编码偏好」(用中文回答、优先 TypeScript、先给结论再给理由……)要在每个工具里配置一遍。改一条规则 = 手动改 N 个文件。
- 配置漂移:改了这个工具忘了那个,几个工具的「记忆」悄悄变得不一样,AI 在不同工具里表现不一致,排查起来毫无头绪。
- 无法回溯:哪天改坏了想恢复上周的版本?没有任何工具提供本地版本历史。
现有的云同步方案(各家自带的账号体系)**依赖网络**,在企业隔离内网里根本用不了,而且数据要上传到第三方服务器——我的个人工作习惯数据,凭什么要上云?
CrossBrain 的解法:单一事实源(SSOT)+ 本地同步
CrossBrain 是一个 **100% 本地运行**的桌面应用,核心思路一句话:
**你只在 CrossBrain 里维护一份「个人 AI 记忆」,它负责把这份记忆以每个工具各自正确的格式,同步到所有工具。**
| 痛点 | CrossBrain 的答案 |
|---|---|
| 重复劳动 | 一处编辑 → 一键同步到全部 4 个工具,格式各按各家规范(引用式 / 内联式 / 目录式) |
| 配置漂移 | 幂等同步引擎:多次执行结果一致;孤儿文件自动清理,绝不留「幽灵规则」 |
| 无法回溯 | ~/.ai-profile/ 自动 git 化,每次同步自动提交(ISO-8601 时间戳),随时回滚 |
| 数据上云 | 零网络依赖,纯本地文件读写;离线时同步照常工作 |
| 怕改坏配置 | 标记块注入协议 + 首次改动前自动备份 + 一键还原 + 完整卸载去痕 |
技术上值得一看的地方
- Tauri v2 + Rust + Vue 3:安装包仅 2.7 MB(对比 Electron 动辄 100 MB+),内存占用低。
- Adapter 模式适配多工具:每个 AI 工具的「规则文件在哪、用什么语法、有没有更高优先级的遮蔽文件」都不同,抽象成统一 Adapte
Related Skills
BurnMeter
Local-first usage & cost dashboard for Claude Code + OpenAI Codex — your burn rate, rate-limit proximity, and
Pulse Usage Monitor
Local, zero-dependency usage dashboard for Claude Code, OpenAI Codex and other coding agents. Spend, limits, m
Burnglass
Local, zero-dependency usage dashboard for Claude Code, OpenAI Codex and other coding agents. Spend, limits, m
Synagon
A multi-agent AI orchestrator that coordinates local coding CLI agents (Claude Code, OpenCode, Antigravity, Co
Openfoia
Local-first FOIA automation with AI-powered document analysis. Your data never leaves your machine. 🔒🇺🇸
Latet
A local privacy firewall for AI agents: masks secrets and personal data before a request leaves your machine a
Related Agents
Paf Reviewer
Runs one phone-a-friend relay or review command in the background and reports back a receipt plus the findings
Agent Of Empires
Claude Code, OpenCode, Mistral Vibe, Codex CLI, Gemini CLI Coding Agent Terminal Session manager via tmux and
Developer Overview
code-container (container) creates isolated Docker environments for AI coding harnesses (Claude Code, OpenCode