A WebAssembly actor system designed for secure, transparent, and reliable AI agent infrastructure.
Note
This documentation is incomplete, please reach out to me at colinrozzi@gmail.com. I very much appreciate your interest and would love to hear from you! This project is in early development, breaking changes are expected, security is not guarenteed
AI agents present incredible opportunities for automation and intelligence, but they also introduce significant challenges. As autonomous AI agents become more capable and ubiquitous, we need infrastructure that can:
- Contain and secure agents with precise permission boundaries
- Trace and verify all agent actions for auditability and debugging
- Manage failures gracefully in complex agent systems
- Orchestrate cooperation between specialized agents with different capabilities
Theater provides infrastructure specifically designed for AI agent systems. It moves trust from the individual agents to the system itself, providing guarantees at the infrastructure level:
- WebAssembly Components provide sandboxing and deterministic execution, ensuring agents can only access explicitly granted capabilities
- Actor Model with Supervision implements an Erlang-style supervision hierarchy for fault-tolerance and structured agent cooperation
- Event Chain captures every agent action in a verifiable record, enabling complete traceability and deterministic replay
- Download theater-server-cli
cargo install theater-server-cli
- Download theater-cli
cargo install theater-cli
- Start the Theater server and leave it running in the background
theater-server --log-stdout
- Start an actor in a new terminal (this requires an actor, I will update this shortly with a link to a sample actor)
theater start manifest.toml
- Look at the running actors
theater list
- Look at an actor's event chain
theater events <actor-id>
- Stop an actor
theater stop <actor-id>
Most people will have these things, move on to cloning and download the dependencies as you need, but just for clarity you will need:
- Rust 1.81.0 or newer
- LLVM and Clang for building wasmtime
- CMake
- OpenSSL and pkg-config
Then:
- Clone the repository:
git clone https://github.com/colinrozzi/theater.git
cd theater
- Build the project:
cargo build