unicity-aos/capsule-memory
55.3
Weak · 29 September 2026
102
lines of production code
Rust
primary language
2
measurements over time
What this system is
This system is a memory capsule component for an AI assistant that injects user preferences and project-specific context into system prompts. It operates using an event-driven publish/subscribe model to listen for prompt building events and retrieves memory data from configurable local file paths. The implementation ensures context stability by independently truncating personal and project memory sections to prevent context window overflow.
Behavioural changes
Inject both personal and project-specific memory into system prompts
The memory capsule now reads and injects two distinct sources of context into the system prompt: personal memory from \home://memory.md\ (user preferences and long-term facts) and project memory from \cwd://{cwd\_dir}/memory.md\ (project-specific conventions and current work). The project memory path is determined by the \cwd\_dir\ environment variable, allowing distros to customize the project folder name without forking the code. Both sources are optional and silently skipped if missing or empty, with personal memory injected first followed by project memory. Each section is independently truncated to 32KB to prevent context window overflow, and a notice is added if truncation occurs.
src · high confidence
Memory capsule v0.2.0: new publish/subscribe model and expanded file access
The astrid-capsule-memory component has been updated to version 0.2.0, introducing a new event-driven architecture and broader file system access. The component now uses a publish/subscribe schema (replacing the previous interceptor model) to listen for the \prompt\_builder.v1.hook.before\_build\ event and publish responses, ensuring compatibility with the latest WIT definitions. Additionally, the component's file read capabilities have been expanded from the workspace root to include \cwd://\ and \home://\ paths, allowing it to access memory files in the current working directory and home directory. The default project folder for memory storage is now configurable via the \cwd\_dir\ environment variable (defaulting to \.astrid\).
(repo-wide) · high confidence
Dependencies
Update astrid-sdk dependency and release astrid-capsule-memory 0.2.0
The astrid-capsule-memory package has been updated to version 0.2.0, primarily driven by a significant upgrade of the astrid-sdk dependency from a local path reference (v0.1.1) to the crates.io registry (v0.7). This change resolves the SDK source to a specific published version and aligns with the project's move to enforce locked builds. Additionally, the release profile has been optimized for size with LTO, stripping, and panic abortion enabled, and the uuid dependency has been explicitly added with the rng-getrandom feature.
(dependencies) · high confidence
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 54 → 55 (+1.3)
- Rubric changed (rubric-2026.09.9 → rubric-2026.09.17) — scores are not directly comparable.
Lenses
- Code Health 100 → 100 (+0.0)
- Architecture 69 → 69 (+0.0)
- Maturity 48 → 48 (+0.0)
- Readiness 45 → 48 (+2.6)
- Security 73 → 76 (+2.2)
Resolved (2)
- Documentation: no installation or build instructions (README.md)
- Documentation: no usage examples (README.md)
New (6)
- Documentation: no project overview (README.md)
- End-of-life runtime: Rust 1.94
- Outdated: astrid-sdk
- Outdated: serde
- Outdated: serde_json
- Outdated: uuid
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
unicity-aos/capsule-memory was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 29 September 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit ceab000a84d252ca63d20489126852a27918b16a — the exact code this score is about.
- Scored under rubric-2026.09.17 — the same rubric and the same method as every other entry in this index.
- Measured by watchdog.canine.dev using codehealth-analyzer preprod-705631bb727e.