unicity-aos/capsule-identity
소개
시스템 프롬프트 빌더입니다. 워크스페이스 설정과 spark.toml을 바탕으로 에이전트의 정체성을 구성합니다. Unicity AOS의 일부입니다.
기타 프로젝트측정된 스타 증가
- in 24h
- 0
- in 7 days
- -2
- in 15 days
- -4
- in 1 month
- -7
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalastrid-capsule-identity
The identity and system prompt builder for Astrid OS.
In the OS model, this capsule is /etc/profile. It owns the agent's spark identity, persists it as capsule state, and assembles the identity plus environment context into a system prompt.
How it works
On a spark.v1.request.build event:
- Loads the persisted spark identity from capsule KV state.
- Auto-detects
home://.config/spark.tomlif KV state is empty. - Adds environment context (working directory, platform).
- Publishes the assembled prompt on
spark.v1.response.ready.
If no identity exists yet, the prompt includes onboarding instructions. After onboarding, the LLM calls save_identity, which saves the chosen callsign, class, aura, signal, and core directives to capsule state and writes home://.config/spark.toml as a recovery copy.
State is scoped by Astrid's capsule KV isolation for the calling principal. Session ID is echoed back for react loop correlation.
IPC protocol
| Direction | Topic |
|---|---|
| Subscribe | spark.v1.request.build |
| Subscribe | tool.v1.execute.save_identity |
| Subscribe | tool.v1.request.describe |
| Subscribe | cli.v1.command.execute |
| Publish | spark.v1.response.ready |
| Publish | tool.v1.execute.*.result |
| Publish | tool.v1.response.describe.* |
| Publish | agent.v1.response |
Development
cargo build
cargo test
License
Dual-licensed under MIT and Apache 2.0.
Copyright (c) 2025-2026 Joshua J. Bouw and Unicity Labs.
관련 프로젝트 살펴보기
불러오는 중…