← 返回 Skills 市场
Shared Brain
作者
Omar Hernandez
· GitHub ↗
· v1.0.2
· MIT-0
145
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install shared-brain
功能描述
Shared persistent memory layer across multiple AI agents. Use when setting up a multi-agent workspace for the first time, when an agent discovers a permanent...
安全使用建议
What to consider before installing:
- This skill will modify your workspace: it creates memory files under ~/clawd/memory (by default), copies scripts to ~/clawd/skills/shared-brain/scripts/, and patches every agents/*/AGENTS.md and your HEARTBEAT.md. Always run sb-install.sh --dry-run first and back up AGENTS.md and HEARTBEAT.md before applying.
- No network access or secrets are required by the scripts, which lowers exfiltration risk. Still, review the included scripts yourself (sb-install.sh, sb-curate.sh, sb-write.sh) so you understand the exact edits performed.
- Concurrency and input validation notes: sb-write.sh appends lines to the queue without a formal lock; concurrent writers could theoretically interleave writes or produce malformed lines (this is an operational risk rather than an exfiltration risk). sb-curate.sh uses grep/regexes that treat keys as regex patterns — specially crafted keys containing regex metacharacters could cause unexpected matches or conflict behavior. Consider restricting who can run sb-write.sh or validating keys centrally.
- Compatibility: sb-write.sh and sb-curate.sh use grep -P in one validation check; some systems (BSD/macOS default grep) do not support -P. Test in your environment before trusting automatic installs.
- Operational security: only allow trusted agents/people to write facts to the queue; facts are promoted by heartbeat into a file read by all agents (poisoning the queue can propagate bad ground truth). Use file permissions and team processes to control who runs sb-write.sh.
- If you want extra caution, install in a sandboxed workspace first to observe behavior, and keep backups of any critical AGENTS.md, HEARTBEAT.md, and existing memory files.
功能分析
Type: OpenClaw Skill
Name: shared-brain
Version: 1.0.2
The shared-brain skill bundle implements a local persistent memory layer for AI agents via file-based queuing and curation. The scripts (sb-write.sh, sb-curate.sh, sb-install.sh) operate entirely within the local workspace (~/clawd) and include proactive security measures, such as a regex-based blacklist in sb-write.sh to prevent prompt injection and shell characters from entering the shared memory. No network activity, data exfiltration, or malicious obfuscation was detected.
能力评估
Purpose & Capability
Name/description (shared persistent memory) match the code and instructions: scripts create a queue and canonical brain file, integrate with HEARTBEAT.md, patch AGENTS.md to read the brain, and provide write/curate scripts. No unrelated credentials, binaries, or network access are requested.
Instruction Scope
The SKILL.md and sb-install.sh instruct the skill to patch every agents/*/AGENTS.md and to append a curation step to HEARTBEAT.md, and sb-install.sh will copy scripts into the workspace. This is expected for integration but is invasive (edits multiple repo files). The scripts only touch workspace paths (defaults under ~/clawd) and do not read unrelated system files or secrets. Consider that the install modifies many files automatically — review with --dry-run and back up AGENTS.md/HEARTBEAT.md beforehand.
Install Mechanism
Instruction-only skill with included shell/python scripts; no network downloads or package installs. Scripts are copied into the workspace by sb-install.sh. There is no external URL or arbitrary-code download.
Credentials
No required environment variables or credentials. The scripts respect optional SB_* variables declared in SKILL.md (SB_WORKSPACE, SB_AGENT, SB_BRAIN, SB_QUEUE, SB_ARCHIVE_DIR). Requested env vars are appropriate for customizing workspace paths.
Persistence & Privilege
The skill is not always-enabled and does not request platform-wide privileges, but it does persist scripts and files inside the user workspace and mutates AGENTS.md and HEARTBEAT.md. This level of persistence is consistent with the stated integration purpose but is still a material change to the workspace and should be applied with review/backups.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install shared-brain - 安装完成后,直接呼叫该 Skill 的名称或使用
/shared-brain触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
Security hardening: validación de input en sb-write (key format, max length, injection patterns), sed -i portable macOS, --dry-run en sb-install
v1.0.1
Version 1.0.1
- Added section specifying binaries required and optional environment variables for customization
- Documented that sb-install.sh now supports a --dry-run option to preview changes before applying
- Clarified install/setup details: scripts location, no network/secrets required
- No behavioral or architectural changes to the core memory-sharing workflow
- No code files modified in this release
v1.0.0
Initial release: enables a persistent, shared memory layer for multi-agent OpenClaw workspaces.
- Agents append architectural facts to a shared queue; a heartbeat process curates these into a canonical shared-brain file.
- Fact format is strictly timestamped, sectioned, and key/value-based, ensuring consistency and auditability.
- Integration scripts support agent setup and safe queue writing; direct edits of shared-brain.md are prohibited.
- Curation process handles conflict detection, periodic archiving, and automatic section merging.
- Security rules prevent agents from writing external or temporary data to shared memory.
元数据
常见问题
Shared Brain 是什么?
Shared persistent memory layer across multiple AI agents. Use when setting up a multi-agent workspace for the first time, when an agent discovers a permanent... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 145 次。
如何安装 Shared Brain?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install shared-brain」即可一键安装,无需额外配置。
Shared Brain 是免费的吗?
是的,Shared Brain 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Shared Brain 支持哪些平台?
Shared Brain 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Shared Brain?
由 Omar Hernandez(@ohernandez-dev-blossom)开发并维护,当前版本 v1.0.2。
推荐 Skills