GitHub Hot Board

GitHub Hot Board · Hồ sơ kho lưu trữ

unicity-aos/capsule-memory

Cross-session memory. Reads local memory state and injects it into the system prompt through hooks. Part of Unicity AOS. (Mô tả đến từ chính kho lưu trữ.)

Rust

Dữ liệu tại October 28unicity-aos

Thứ hạng tốt nhất

#319

Mọi thời đại · Rust theo ngôn ngữ

8.4K

Tổng sao

20

Tổng fork

0

Số ngày có mặt (30 ngày)

Giấy phép: Apache-2.0Push gần nhất: July 9Issue mở (gồm PR): 2Thu thập từ 2026-10-25; chưa rõ = chưa thu thập được

Tài liệu dự án

astrid-capsule-memory

License: MIT OR Apache-2.0 MSRV: 1.94

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:

  1. Reads .astrid/memory.md from the workspace via the VFS
  2. Wraps the content in a # Memory section
  3. Publishes an appendSystemContext hook 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.

Thứ hạng hiện tại

Diễn biến 30 ngày

Không có bản ghi nào trong 30 ngày qua.

Gắn huy hiệu vào README của bạn · unicity-aos/capsule-memory[![Gắn huy hiệu vào README của bạn](https://git.vaiox.xyz/api/badge/unicity-aos/capsule-memory.svg)](https://git.vaiox.xyz/vi/repo/unicity-aos/capsule-memory)

Badge · 任何仓库都可以挂 —— 未上榜的仓库显示灰章,上完榜会自动点亮。

<a href="https://git.vaiox.xyz/vi/repo/unicity-aos/capsule-memory"><img src="https://git.vaiox.xyz/api/badge/unicity-aos/capsule-memory.svg" alt="Gắn huy hiệu vào README của bạn" height="20"></a>

← Về bảng xếp hạng

GitHub Hot BoardCỗ Máy Thời GianKhám phá联系我们 · Contact