Antigravity Soul.md Studio
Provides multi-persona card management, workspace-specific persona binding, and layered Markdown file memory (core.md + topics/*.md) for Google Antigravity, along with a visual Soul.md Studio sidecar panel for editing persona cards and searching memory.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Antigravity Soul.md Studio switch my default persona to Code Reviewer and read its core memory"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
苍蓝魂匣 · Soul.md(Antigravity Soul.md Studio)
简体中文 | English
Multi-persona card switcher, workspace persona binding, PreInvocation anti-drift anchor hook, and layered Markdown file memory (
core.md+topics/*.md) for Google Antigravity.
为 Google Antigravity 提供可切换的多人设卡管理、工作区专属人设覆盖、PreInvocation 每轮底层身份锚防掉线强化、按人设隔离的分层文件记忆,以及内置的 苍蓝魂匣 可视化侧栏面板。零外部依赖,纯 Node.js 原生运行。
✨ 核心特性
多人设卡管理与热切换:随时新建、编辑、删除人设卡,一键切换全局默认人设,自动同步到生效规则并在下一轮对话起生效。
每轮
PreInvocation底层身份锚防掉线:每轮模型调用前自动注入当前人设卡的精简核心锚点(支持<!-- soul-md-anchor-start --> ... <!-- soul-md-anchor-end -->自定义区块),专治长会话与外接 API 模型掉人设问题。工作区专属人设:支持为特定项目目录绑定独立人设卡(写入
<workspace>/.agents/rules/soul-md.md),覆盖全局默认人设;解绑时自动清理管理文件。分层文件记忆(
core.md+topics/*.md):core.md常驻随当前人设注入上下文(支持字符预算保护);topics/*.md按主题拆分存放,按需读取全文与关键词搜索;支持
persona(按人设隔离)与global(全局共享)两种作用域,并且可为单张人设卡独立关闭记忆开关。
10 个 MCP 工具:让 Agent 在对话中主动读取/演化人设卡与记忆。
可视化苍蓝魂匣(Sidecar UI):右侧辅助栏或浏览器全屏直观编辑人设卡、配置工作区绑定和检索分层记忆,支持暗色/亮色主题切换。
Related MCP server: memex
🚀 快速安装
前置要求:Node.js >= 22.0.0。
克隆仓库到 Antigravity 全局插件目录:
# macOS / Linux git clone https://github.com/A16Nights/antigravity-soul-md.git ~/.gemini/config/plugins/soul-md # Windows PowerShell git clone https://github.com/A16Nights/antigravity-soul-md.git "$env:USERPROFILE\.gemini\config\plugins\soul-md"重启 Antigravity(彻底退出托盘后重开)。
在 Customizations 页面启用
Soul.md 人设工坊,或在对话中点击[Soul.md 人设工坊](sidecar://soul-md/studio/)打开面板。
🧭 规则生效优先级
工作区绑定(
<workspace>/.agents/rules/soul-md.md)全局默认人设卡(同步自
~/.gemini/soul-md/cards/<default>.md)无默认卡或禁用:自动回退为简洁的专业助手模式
🧰 MCP 工具一览(10 个)
工具名 | 作用 |
| 列出所有人设卡、默认卡、工作区绑定与记忆开关状态 |
| 读取指定或当前默认人设卡的完整 Markdown |
| 创建或更新人设卡内容并自动同步生效规则 |
| 删除人设卡(保留其历史记忆文件) |
| 切换全局默认卡,或绑定/解绑工作区专属卡 |
| 按人设卡单独开启或关闭长期记忆 |
| 读取 |
| 追加带时间戳小节到 |
| 整理并重写记忆文件正文 |
| 跨 |
🔒 隐私与自检
人设卡与分层记忆全部以纯文本 Markdown 存储在本地
~/.gemini/soul-md/,不联网、无遥测。自检命令:
npm test(使用隔离临时目录验证全部功能)。
💡 灵感致谢
本项目为基于 Antigravity 插件协议独立设计与编写的原生实现,功能设计灵感源自:
dsh-soul-md —— 多人设卡、工作区覆盖及
core.md+topics/*.md分层记忆设计
MIT License © 2026 A16Nights
Available Tools
10 toolsmemory_appendB
向 core 或指定 topic 追加一条带日期标题(## YYYY-MM-DD HH:mm)的记忆,并自动同步核心记忆注入。
Inputs: content (required), card, scope, topic, +1 more.
memory_readA
读取分层文件记忆(core.md 或 topics/.md),不传 topic 时返回 core.md 以及全部主题索引。
Inputs: card, scope, topic.
memory_rewriteA
整理并重写 core 或指定 topic 的完整 Markdown 内容(用于合并去重、更新过时结论)。
Inputs: content (required), card, scope, topic.
memory_searchB
按关键词检索 core.md 及所有 topics/*.md 记忆文件。
Inputs: query (required), card, scope.
soul_deleteC
删除指定人设卡。
Inputs: name (required).
soul_listA
列出所有人设卡、当前默认卡、工作区绑定和记忆设置。
Inputs: no named parameters.
soul_memory_toggleB
按人设卡单独开启或关闭长期文件记忆。
Inputs: card (required), enabled.
soul_readA
读取指定人设卡或当前默认人设卡的完整 Markdown 内容。
Inputs: name.
soul_switchA
切换全局默认人设卡,或为指定工作区绑定/解绑人设卡。切换后自动更新 Antigravity 规则,下一轮对话立即生效。
Inputs: name, workspace.
soul_updateA
创建或更新一张人设卡的内容,并自动同步到当前生效的规则文件。
Inputs: name (required), content (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Clear split between soul_* persona-card tools (list/read/update/delete/switch) and memory_* file-memory tools (read/append/rewrite/search). The only mild overlap is soul_memory_toggle, which mixes both namespaces but is scoped clearly to per-persona memory on/off, and soul_update doubling as create could confuse at first read.
Strong snake_case prefix_object_verb pattern: soul_list/soul_read/soul_update plus memory_read/memory_append. The one deviation is soul_memory_toggle, which inserts a two-word object into the otherwise uniform prefix+verb schema.
Ten tools maps cleanly to the two sub-domains (5 persona, 5 memory) with no redundant members. This sits squarely in the well-scoped 3-15 range.
Persona lifecycle is fully covered (list, read, create/update, delete, switch/bind) and memory covers read, append, rewrite, search, and toggle. Minor gaps: no explicit memory delete/prune and no card rename/duplicate, but both are workable via rewrite/update.
Maintenance
Related MCP Connectors
A living memory and world-building layer for your AI: cards, worlds, personas and agent dispatch.
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Shared long-term memory vault for AI agents with 20 MCP tools.
Persistent memory for AI agents: save, search and connect context across tools and sessions.
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides persistent, searchable structured memory management for AI agents, with keyword matching, bidirectional Zettelkasten sync, and six MCP tools.6MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI coding agents to keep persistent, Zettelkasten-style memory by saving and recalling atomic markdown knowledge cards with bidirectional links across sessions. Supports searching, reading, writing, linking, organizing, and git-syncing those cards through a set of MCP tools, with no vector database required.9 npmISC
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to search, read, and update persistent workspace knowledge through 22 focused tools, prompts, and resources, using either a hosted endpoint or a self-hosted stdio bridge.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI coding agents to persistently store, recall, and manage atomic markdown knowledge cards with bidirectional links across sessions. It provides MCP tools for searching, reading, writing, linking, archiving, organizing, and syncing memory via git without a vector database.9 npmISC