unicity-aos/capsule-react
unicity-aos/capsule-react has 5,036 GitHub stars and 13 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-08 13:48 UTC. Last push 2026-07-09.
ReAct loop coordinator. Stateless state machine for reasoning-and-action cycle. Part of Unicity AOS.
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalastrid-capsule-react
The ReAct loop coordinator for Astrid OS.
In the OS model, this capsule is the shell. It drives the reasoning-and-action cycle that makes an agent an agent: fetch context, think, act, observe, repeat.
State machine
Idle -> AwaitingIdentity -> AwaitingPromptBuild -> Streaming -> AwaitingTools -> Streaming -> ... -> Idle
The react loop contains no inference logic. It is pure control flow that coordinates five other capsules over the IPC event bus:
- Session - fetch conversation history, persist turn results
- Identity - build the system prompt from workspace config
- Prompt Builder - merge plugin contributions into the final prompt
- Provider (e.g. Anthropic) - stream LLM responses
- Tool Router - dispatch tool calls and collect results
What it does not do
This capsule does not call LLMs, execute tools, build prompts, or store messages. It orchestrates the capsules that do. Replacing this capsule with a different orchestration strategy (debate, MCTS, chain-of-verification) changes the agent's behaviour without touching any other capsule.
Persistence
Ephemeral per-turn state is stored in the capsule KV store:
react.turn.{session_id}- current turn statereact.req2sess.{request_id}- request-to-session correlationreact.call2sess.{call_id}- tool call-to-session correlation
This is control flow state, not conversation history. History lives in the session capsule.
Development
rustup target add wasm32-unknown-unknown
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
freeCodeCamp/freeCodeCamp
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
458,770 starsdonnemartin/system-design-primer
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
377,357 starsreact/react
The library for web and native user interfaces.
252,423 starsvuejs/vue
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
212,632 stars