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。
| 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 在提交前拦截 |
Your agent calls them via MCP. You do nothing.你的 agent 通过 MCP 自动调用,你什么都不用做。
Cold-start briefing: sessions, locks, handoffs, changes, past error solutions.冷启动全景:session 列表、文件锁、待处理任务、最近变更、历史报错方案。
Save progress. When crashed, next agent reads TL;DR and continues.保存进度。crash 后新 agent 读 TL;DR 直接继续,不需要重放对话记录。
File lock with 3-min TTL + fencing tokens. No silent overwrites.文件锁,3 分钟 TTL + fencing token。两个 agent 不会默默互相覆盖。
Leave tasks for the next session. Atomic claim prevents double-work.给下一个 session 留任务。原子 claim 防止两个 agent 做同一件事。
Credential scan + PII detection + SQL injection check + completion verification + behavior audit — five checks in one call.凭据扫描 + 个人信息检测 + SQL 注入检查 + 完成验证 + 行为审计 —— 一次调用五项检查。
Structured changelog: title, type, files, why, what.结构化变更日志:标题、类型、文件、为什么、改了什么。
Save error-fix pairs, decisions, patterns. Full-text search finds past fixes instantly.保存报错修复、设计决策、代码模式。全文搜索秒找历史方案。
Web UI: sessions, locks, handoffs, changelog, memories, checks. Token login.Web 看板:session、文件锁、任务、变更日志、记忆、检查结果。Token 登录。
No packages to install. One command. Works with Claude Code, Codex, Cursor, Pi, and any MCP agent.无需安装任何软件包。一行命令。支持 Claude Code、Codex、Cursor、Pi 等所有 MCP agent。
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 工具。
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。
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 repoGit 历史、commit 或 diff Cairn 不连接你的 git 仓库 |
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