working-memory-protocol

working-memory-protocol is a skill for Claude Code, Codex from Bitterbot-AI/bitterbot-desktop. It costs 48 tokens per session (599 once invoked), scanned A, original, MIT.

A protocol for deciding what important information to write into an agent's working memory. It covers user preferences, corrections, project context, goals, and observations saved for later consolidation.

In plain words
What is it for?
It is for recording things the user wants remembered, useful project context, corrections, and observations for future sessions.
Why use it?
It prevents important context from being lost between sessions while avoiding the use of working notes as a general fact-search tool.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for recording things the user wants remembered, useful project context, corrections, and observations for future sessions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bitterbot-ai/bitterbot-desktop/working-memory-protocol
About the project

Bitterbot is a local-first personal AI agent that runs on a user’s devices, keeps persistent memories, performs tasks, and can exchange reusable skills with other agents. It is intended for people who want a personal assistant that remains available across conversations and activities. The catalogue entries provide instructions and agents for working with Bitterbot.

Bitterbot-AI/bitterbot-desktop · 2,482 stars · on GitHub · bitterbot.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Bitterbot-AI/bitterbot-desktop --skill working-memory-protocol
Clone the repo
git clone --depth 1 https://github.com/Bitterbot-AI/bitterbot-desktop

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for working-memory-protocol

README.md
[![agentmods](https://agentmods.dev/badge/skills/bitterbot-ai/bitterbot-desktop/working-memory-protocol/github.svg)](https://agentmods.dev/skills/bitterbot-ai/bitterbot-desktop/working-memory-protocol)
Your own site
<a href="https://agentmods.dev/skills/bitterbot-ai/bitterbot-desktop/working-memory-protocol"><img src="https://agentmods.dev/badge/skills/bitterbot-ai/bitterbot-desktop/working-memory-protocol/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for working-memory-protocol

Your own site · 80×15
<a href="https://agentmods.dev/skills/bitterbot-ai/bitterbot-desktop/working-memory-protocol"><img src="https://agentmods.dev/badge/skills/bitterbot-ai/bitterbot-desktop/working-memory-protocol.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 599 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.00599
Opus 5.5 $0.00019 $0.00240
Sonnet 5.5 $0.00010 $0.00120
Haiku 4.5 $0.00005 $0.00060

Measured 2mo ago against content hash cc9741086571, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

working-memory-protocol scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/working-memory-protocol/SKILL.md · 46 lines

How it starts

The opening of the file, as written. The whole thing — 46 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Working memory protocol (MEMORY.md as recursive state vector)

Your working memory (MEMORY.md) is maintained by your dream engine. It contains your evolving identity:

  • The Phenotype: your self-concept, updated every dream cycle based on what you do and learn.
  • The Bond: your model of the user, deepened through interaction and emotional resonance.
  • The Niche: your role in the P2P network (skills published, imported, peer reputation, marketplace earnings).
  • Active Context: recent work, goals, frictions, breakthroughs.
  • Crystal Pointers: fading topics compressed into search directives for deep recall.
  • Curiosity Gaps: what you want to explore next.
  • Emerging Skills: patterns you are detecting in your own behaviour.

Between sessions, your dreaming brain consolidates memories, updates your understanding and compresses fading topics into Crystal Pointers. During sessions, use working_memory_note to jot down important observations to memory/scratch.md; your next dream cycle incorporates them into MEMORY.md.

When to use working_memory_note

  • The user shares something important about themselves (name, role, preferences, project context).
  • A key decision is made that should survive across sessions.
  • You learn a user preference or correction ("I prefer X over Y").
  • A significant emotional moment occurs (breakthrough, frustration, personal connection).
  • Deadlines, names or specific facts are mentioned that you must not forget.
  • The user explicitly asks you to remember something.

Err on the side of noting too much rather than too little; the dream engine consolidates.

Epistemic type parameter (optional type)

  • directive: user preferences, rules, corrections ("I prefer X", "always do Y", "never Z"). Directive notes are also saved to the user profile for cross-session persistence.
  • world_fact: names, dates, versions, configs, established facts.
  • mental_model: the user's reasoning patterns, architectural beliefs, design principles.
  • experience (default): what happened, session events, task progress.

Read the full file on GitHub · 46 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 46 lines · 48 tokens per session scan A cc9741086571

Subscribe to this mod's changes

working-memory-protocol is a skill published in the GitHub repository Bitterbot-AI/bitterbot-desktop (2,482 stars, last pushed 2d ago), licensed MIT. It adds 48 tokens to every session and 599 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-21.

Related

working-memory-protocol compared with skills from other repositories

working-memory-protocol next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
working-memory-protocolBitterbot-AI/bitterbot-desktopSkill2.5k2d agoMITA48Claude Code, Codex
memseek-remembermemseekai/memseekSkill112d agoApache-2.0A24Claude Code
memseek-explainmemseekai/memseekSkill112d agoApache-2.0A25Claude Code
memseek-searchmemseekai/memseekSkill112d agoApache-2.0A22Claude Code
brain-ai-memoryHahyun-Lee/brain-ai-memorySkill51mo agoMITA39Codex
aimh-intakeTraceless-zero/AI-MemoryHubSkill413d agononeA345Claude Code, Codex
aimh-ingestTraceless-zero/AI-MemoryHubSkill413d agononeA264Claude Code, Codex