unicity-aos/capsule-memory
unicity-aos/capsule-memory has 8,435 GitHub stars and 20 forks. Star changes are not measured yet. Last checked 2026-11-06 23:05 UTC. Last push 2026-07-09.
Cross-session memory. Reads local memory state and injects it into the system prompt through hooks. Part of Unicity AOS.
Measured star growth
- in 24h
- Update delayed
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalastrid-capsule-memory
Cross-session memory for Astrid OS agents.
In the OS model, this capsule is the persistent swap file. It carries context across session boundaries so the agent remembers what happened last time.
How it works
Hooks into prompt_builder.v1.hook.before_build. On each prompt assembly cycle:
- Reads
.astrid/memory.mdfrom the workspace via the VFS - Wraps the content in a
# Memorysection - Publishes an
appendSystemContexthook response on the per-request response topic
If the file is missing or empty, the capsule is a no-op.
Size cap
Agent-written content can grow without limit (unlike human-authored AGENTS.md), so a 32KB hard cap prevents unbounded context window consumption. Content beyond the limit is truncated at a UTF-8 character boundary with a [Memory truncated] marker.
Read-only
This capsule handles the read/inject side only. The agent writes to .astrid/memory.md using existing filesystem tools (write_file, replace_in_file) from astrid-capsule-fs. No new tools needed.
Development
cargo build --target wasm32-unknown-unknown --release
License
Dual-licensed under MIT and Apache 2.0.
Copyright (c) 2025-2026 Joshua J. Bouw and Unicity Labs.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,644 starspublic-apis/public-apis
A collective list of free APIs
496,893 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
439,727 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,110 stars