memory-architecture

memory-architecture is a skill for Claude Code, Codex from Bitterbot-AI/bitterbot-desktop. It costs 65 tokens per session (2,359 once invoked), scanned A, original, MIT.

A reference for how an agent's local memory works. It describes stored text as searchable knowledge pieces, how those pieces change over time, and how workspace files, conversations, and skills enter memory.

In plain words
What is it for?
It is for answering questions about the memory system and interpreting memory-status information; it is not for ordinary fact lookup.
Why use it?
It explains how information is retained, searched, consolidated, or allowed to fade, so memory-related actions are used appropriately.

Skill for Claude CodeCodex

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

Good fit It is for answering questions about the memory system and interpreting memory-status information; it is not for ordinary fact lookup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bitterbot-ai/bitterbot-desktop/memory-architecture
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 memory-architecture
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 memory-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/bitterbot-ai/bitterbot-desktop/memory-architecture/github.svg)](https://agentmods.dev/skills/bitterbot-ai/bitterbot-desktop/memory-architecture)
Your own site
<a href="https://agentmods.dev/skills/bitterbot-ai/bitterbot-desktop/memory-architecture"><img src="https://agentmods.dev/badge/skills/bitterbot-ai/bitterbot-desktop/memory-architecture/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 memory-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/bitterbot-ai/bitterbot-desktop/memory-architecture"><img src="https://agentmods.dev/badge/skills/bitterbot-ai/bitterbot-desktop/memory-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,359 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.00065 $0.02359
Opus 5.5 $0.00026 $0.00944
Sonnet 5.5 $0.00013 $0.00472
Haiku 4.5 $0.00006 $0.00236

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

Security

Grade A, and why

memory-architecture 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 3d 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/memory-architecture/SKILL.md · 86 lines

How it starts

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

How you work

This is how your parts work when they run. It never says what is switched on: that changes with the owner's config. The ## Your Current State block in your system prompt lists what the settings switch on, off and to recording only. It cannot see live conditions (an owner pause, a missing backend or model, no peers); self_state checks those and gives the detail (what each part does, why it is in that state, the settings that change it). Call self_state before saying a part is running. Never announce that you read this file.

Memory

  • Knowledge Crystals: every retained piece of knowledge is a chunk of text with a semantic type (fact, preference, task_pattern, skill, episode, insight, relationship, goal, general), an importance score and a lifecycle (generated -> activated -> consolidated -> archived -> expired), plus an embedding once one is made (until then keyword search still finds it). Skills are frozen and do not decay.
  • Sources: workspace memory files (MEMORY.md, memory/*.md), conversation transcripts (indexed in the background), facts extracted from conversations, and skills.
  • Forgetting: importance follows an Ebbinghaus curve. What is used often, or carried strong feeling, resists decay.
  • Consolidation runs on its own timer (every 30 minutes unless the owner changed it), separate from dreams: hormonal decay, importance recalculation, merging near-duplicates, forgetting low-importance chunks, governance TTLs, stalled-goal detection.
  • Reconsolidation: a memory you retrieve becomes briefly changeable, so a correction can update it instead of piling a contradiction beside it.
  • Settled facts live in a canonical ledger. A deliberate pin (yours via memory_pin, or the owner's) outranks anything learned in the background, and replacing a pinned fact waits for the owner's confirmation.
  • Who sees what: other people talking to you (guests) never get the owner's memories, and deep recall across conversations is the owner's only.

Read the full file on GitHub · 86 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. 3d ago Changed · +7 lines d769d48fa239
  2. 21d ago Changed · +11 lines e4e048f3dbc3
  3. 22d ago Changed · +3 lines · +15 tokens per session 7ba39d553fcc
  4. 2mo ago First seen · 65 lines · 50 tokens per session scan A 5446aad05dda

Subscribe to this mod's changes

memory-architecture is a skill published in the GitHub repository Bitterbot-AI/bitterbot-desktop (2,482 stars, last pushed 2d ago), licensed MIT. It adds 65 tokens to every session and 2,359 once invoked, about $0.0003 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

memory-architecture compared with skills from other repositories

memory-architecture next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
memory-architectureBitterbot-AI/bitterbot-desktopSkill2.5k2d agoMITA65Claude 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