Your AI agent keeps forgetting.
Cairn remembers.
你的 AI 不记事。
Cairn 替它记。

Session continuity, file locks, task handoff, credential scanning, completion verification, and knowledge memory — one MCP endpoint for all your AI coding agents. Session 接力、文件锁、任务交接、凭据扫描、完成验证、知识记忆 —— 一个 MCP 端点,管住你所有的 AI coding agent。

No install needed无需安装 Claude Code Codex Cursor Pi 8 tools Free免费

What changes when you add Cairn加了 Cairn 有什么不同

Scenario场景 Without Cairn没有 Cairn With Cairn有 Cairn
New session startup新 session 启动 Re-explain context 3-5 rounds (2-5 min)重新解释上下文 3-5 轮(2-5 分钟) cairn_status returns everything, 0 roundscairn_status 一次返回全景,0 轮
Session crashSession 中断 Start over, 30-60 min rebuilding从头来过,30-60 分钟重建上下文 cairn_session_read → resume in 2 mincairn_session_read → 2 分钟恢复
Two agents, same file两个 agent 改同一文件 Silent overwrite, debug 10-30 min默默覆盖,debug 10-30 分钟 cairn_lock blocks collisioncairn_lock 阻止冲突
"Done" without testing"做完了"但没验证 Merge → prod bug → 1-2h fix合并 → 线上 bug → 1-2h 修复 cairn_check: "missing verification"cairn_check:"缺验证步骤"
Same bug again同样的 bug 又遇到了 Re-investigate 5-15 min重新排查 5-15 分钟 cairn_memory finds the fix in 1scairn_memory 1 秒找到修复方案
Leaked API keyAPI key 泄露到代码 Committed to git提交到 git 历史 cairn_check catches before commitcairn_check 在提交前拦截

8 tools, one endpoint8 个工具,一个端点

Your agent calls them via MCP. You do nothing.你的 agent 通过 MCP 自动调用,你什么都不用做。

cairn_status

Cold-start briefing: sessions, locks, handoffs, changes, past error solutions.冷启动全景:session 列表、文件锁、待处理任务、最近变更、历史报错方案。

cairn_session_save / read

Save progress. When crashed, next agent reads TL;DR and continues.保存进度。crash 后新 agent 读 TL;DR 直接继续,不需要重放对话记录。

cairn_lock

File lock with 3-min TTL + fencing tokens. No silent overwrites.文件锁,3 分钟 TTL + fencing token。两个 agent 不会默默互相覆盖。

cairn_handoff

Leave tasks for the next session. Atomic claim prevents double-work.给下一个 session 留任务。原子 claim 防止两个 agent 做同一件事。

cairn_check

Credential scan + PII detection + SQL injection check + completion verification + behavior audit — five checks in one call.凭据扫描 + 个人信息检测 + SQL 注入检查 + 完成验证 + 行为审计 —— 一次调用五项检查。

cairn_log

Structured changelog: title, type, files, why, what.结构化变更日志:标题、类型、文件、为什么、改了什么。

cairn_memory

Save error-fix pairs, decisions, patterns. Full-text search finds past fixes instantly.保存报错修复、设计决策、代码模式。全文搜索秒找历史方案。

Dashboard

Web UI: sessions, locks, handoffs, changelog, memories, checks. Token login.Web 看板:session、文件锁、任务、变更日志、记忆、检查结果。Token 登录。

Get started快速开始

No packages to install. One command. Works with Claude Code, Codex, Cursor, Pi, and any MCP agent.无需安装任何软件包。一行命令。支持 Claude Code、Codex、Cursor、Pi 等所有 MCP agent。

One command. That's it.一行命令,搞定。

Run this in your project directory:在你的项目目录下执行:

curl -fsSL https://cairn.panshi.io/setup | sh

This creates a project, gets your token, and writes .mcp.json — all automatically.
Then start your AI agent. It sees 8 Cairn tools immediately.
自动创建项目、获取 token、写入 .mcp.json
然后启动你的 AI agent,它立刻拥有 8 个 Cairn 工具。

Manual setup (if you prefer)手动配置(如果你更喜欢)

1. Create project:1. 创建项目:

curl -X POST https://cairn.panshi.io/projects -H "Content-Type: application/json" -d '{"name":"my-app"}'

2. Create .mcp.json in your project root:2. 在项目根目录创建 .mcp.json

{"cairn":{"type":"http","url":"https://cairn.panshi.io/mcp","headers":{"Authorization":"Bearer YOUR_TOKEN"}}}

3. Start your agent.3. 启动你的 agent。

Security & Privacy安全与隐私

We take your code privacy seriously. Here's exactly what we store and what we don't.我们认真对待你的代码隐私。以下是我们存什么、不存什么的完整说明。

✅ What we store✅ 我们存什么 ❌ What we never store❌ 我们绝不存什么
Session topic & status summary
(e.g. "refactor auth — JWT done, tests pending")
Session 主题和状态摘要
(如"重构 auth — JWT 完成,测试待做")
Your source code files
Code sent for quality checks is scanned in memory and immediately discarded
你的源代码文件
发来做质量检查的代码在内存中扫描后立即丢弃
File paths you edited
(e.g. "src/auth.py")
你编辑的文件路径
(如"src/auth.py")
File contents
We never read, store, or index your actual code
文件内容
我们从不读取、存储或索引你的实际代码
Change descriptions you write
(changelogs, handoff tasks, memories)
你写的变更描述
(变更日志、交接任务、记忆)
Personal information
No accounts, emails, names, or analytics
个人信息
无账号、无邮箱、无姓名、无数据分析
Quality check results
(passed/failed, not the code itself)
质量检查结果
(通过/失败,不是代码本身)
Git history, commits, or diffs
Cairn is not connected to your git repo
Git 历史、commit 或 diff
Cairn 不连接你的 git 仓库
Token authToken 认证Every project has a unique secret token. All data access requires it. Stored as SHA-256 hash — we can't see your token either.每个项目有唯一 token。所有数据访问都需要它。以 SHA-256 哈希存储——我们也看不到你的 token。
Project isolation项目隔离Each project's data is completely separate. No cross-project access, even by us.每个项目数据完全独立。跨项目无法访问,我们也不行。
No cookies or tracking无 cookie 无追踪No cookies, no analytics, no fingerprinting. We don't track you at all.无 cookie、无数据分析、无浏览器指纹。我们完全不追踪你。
Token rotationToken 轮换If your token is compromised, rotate instantly. Old token becomes invalid immediately.如果 token 泄露,立即轮换。旧 token 即刻失效。
Code stays private代码不外传Your code is processed securely on our infrastructure and never exposed to third parties.你的代码在我们的基础设施上安全处理,不会暴露给任何第三方。
Dashboard: read-onlyDashboard:只读The dashboard only displays data. No edit or delete actions. Token login, no account needed.Dashboard 只展示数据,不能编辑或删除。Token 登录,不需要注册账号。

API

GET  /                       Homepage
GET  /health                  Health check
GET  /dashboard               Web dashboard
POST /projects                Create project → token
POST /projects/{id}/rotate-token
POST /mcp                     MCP JSON-RPC endpoint