# unicity-aos/capsule-memory

Cross-session memory. Reads local memory state and injects it into the system prompt through hooks. Part of Unicity AOS.

Repository: https://github.com/unicity-aos/capsule-memory
Canonical: https://ross.abutalabs.com/products/capsule-memory
Language: Rust
License: Apache-2.0
License Family: permissive
Last push: 2026-07-09T19:29:34+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 91, release rhythm 92, longevity 12
- inputs: {"age_days": 170, "days_push": 55, "days_rel": 55, "gap_med": 25, "n_releases_24m": 2}
- flags: young
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8533, forks 20 (observed 2026-08-28T04:10:23.374604+00:00)

## What it is
A Rust WASM capsule that provides cross-session memory for Astrid OS agents by hooking into prompt assembly and injecting workspace memory files into the system prompt. It is read-only, relying on existing filesystem tools for writes, and enforces a 32KB truncation cap.

## Use cases
- give my AI agent memory across sessions
- persist agent context between conversations
- inject saved notes into the system prompt automatically
- remember what happened in previous agent runs
- add long-term memory to an OS-style agent

## When to choose
- you run Astrid OS agents and need persistent context across sessions
- you want memory injection without adding new agent tools
- you need bounded memory to protect the context window

## When to avoid
- you need a standalone memory solution outside Astrid OS
- you need the agent to write memory through this capsule itself
- you need memory larger than 32KB

## Facets
- artifact type: plugin
- maturity: active
- function: agent-framework, prompt-engineering, rag, file-system
- domain: large-language-models, developer-tools
- platform: rust, wasm, cross-platform
- tags: agent-memory, cross-session, system-prompt-injection, hook-based, capsule, astrid-os, ai-agents

## Member repositories
- unicity-aos/capsule-memory (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:23.374604+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:26:21.549575+00:00, confidence not recorded.
  - readme: https://github.com/unicity-aos/capsule-memory (fetched 2026-08-28T04:10:23.374604+00:00, sha 7e2ecc548b22)
- Data as of 2026-08-30T08:39:29.467469+00:00.
