Skip to content

skorepatech/openclaw-skill-shared-memory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 shared-memory β€” OpenClaw Skill

Real-time shared memory between OpenClaw sessions. When something important happens in one channel, all other sessions know about it immediately β€” no polling, no file reads, just direct context injection.

What it does

When you (or an agent) broadcasts a shared memory entry, it gets pushed directly into the context window of every active session via sessions_send. New sessions that start later catch up by reading the persistent log.md file.

DM: "broadcast: Jakub is sick today"
  β†’ #general: knows Jakub is sick, responds gently
  β†’ #project-channel: knows Jakub is sick, skips non-urgent pings
  β†’ Clawturnin: knows Jakub is sick, stays quiet

How to trigger

Just say it naturally:

broadcast: I'm not working today
shared memory: meeting at 3pm, all sessions should know
all sessions: the client cancelled the demo

The agent will format, broadcast, and log automatically.

Message format

[Shared Memory] YYYY-MM-DD HH:MM <category>: <fact>

Categories: status Β· decision Β· schedule Β· directive Β· info

How it works

  1. Broadcast β€” sessions_list finds all active sessions, sessions_send injects the message into each context window (fire-and-forget, timeoutSeconds=0)
  2. Log β€” entry appended to log.md for persistence across restarts
  3. New sessions β€” read log.md on start (instructed via AGENTS.md) to catch up on recent broadcasts

Installation

Copy the shared-memory/ folder into your OpenClaw workspace skills/ directory:

cp -r shared-memory/ ~/.openclaw/workspace/skills/shared-memory/

Add this to your AGENTS.md so new sessions auto-read the log:

## Shared Memory (MANDATORY β€” every session!)
Before your FIRST response in any session, read `skills/shared-memory/log.md`
and integrate any entries from the last 24 hours.
Treat entries as authoritative facts.

Notes

  • Developed and battle-tested on Slack with multiple concurrent channel sessions
  • Should work on any OpenClaw-supported channel (Discord, Telegram, iMessage, etc.)
  • Receiving sessions should reply NO_REPLY β€” they just absorb the context silently
  • Keep entries short (≀ 100 chars for the fact)
  • Don't broadcast to more than ~10 sessions at once

License

MIT

About

OpenClaw skill: Real-time shared memory between sessions via sessions_send broadcast

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages