← Back to Skills Marketplace
ohernandez-dev-blossom

Shared Brain

by Omar Hernandez · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ Security Clean
145
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install shared-brain
Description
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...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install shared-brain
  3. After installation, invoke the skill by name or use /shared-brain
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug shared-brain
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 145 downloads so far.

How do I install Shared Brain?

Run "/install shared-brain" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Shared Brain free?

Yes, Shared Brain is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Shared Brain support?

Shared Brain is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Shared Brain?

It is built and maintained by Omar Hernandez (@ohernandez-dev-blossom); the current version is v1.0.2.

💬 Comments