GitHub 火線榜

GitHub 火線榜 · 倉庫檔案

unicity-aos/capsule-identity

System prompt builder. Assembles agent identity from workspace config and spark.toml. Part of Unicity AOS. (簡介來自倉庫自身文件。)

資料截至 October 26unicity-aos

最好成績

#322

總榜 · Rust 语言

8.4K

累計 Star

19

Fork 總數

0

近 30 天在榜天數

專案狀態授權條款: Apache-2.0最近 push: July 2Open Issues(含 PR): 1

自 2026-10-25 起採集;未知 = 尚未採集到

把上榜徽章放進你的 README · unicity-aos/capsule-identity[![把上榜徽章放進你的 README](https://git.vaiox.xyz/api/badge/unicity-aos/capsule-identity.svg)](https://git.vaiox.xyz/zh-TW/repo/unicity-aos/capsule-identity)
<a href="https://git.vaiox.xyz/zh-TW/repo/unicity-aos/capsule-identity"><img src="https://git.vaiox.xyz/api/badge/unicity-aos/capsule-identity.svg" alt="把上榜徽章放進你的 README" height="20"></a>

專案文件

astrid-capsule-identity

License: MIT OR Apache-2.0 MSRV: 1.94

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:

  1. Loads the persisted spark identity from capsule KV state.
  2. Auto-detects home://.config/spark.toml if KV state is empty.
  3. Adds environment context (working directory, platform).
  4. 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.

當前上榜

近 30 天勢頭

近 30 天沒有上榜紀錄。

同一作者的其它上榜專案

← 回到榜單