Expand description
§Cersei
A modular Rust SDK for building coding agents programmatically.
Cersei provides a high-level Agent builder that combines LLM providers,
tools, memory, permissions, and hooks into a complete agentic system.
Every component is modular and replaceable.
§Quick Start
ⓘ
use cersei::prelude::*;
let output = Agent::builder()
.provider(Anthropic::from_env()?)
.tools(cersei::tools::coding())
.run_with("Fix the failing tests")
.await?;
println!("{}", output.text());Re-exports§
pub use cersei_hooks as hooks;pub use cersei_mcp as mcp;pub use cersei_memory as memory;pub use cersei_provider as provider;pub use cersei_tools as tools;pub use cersei_types as types;pub use cersei_vms as vms;
Modules§
- events
- Agent events: the full event enum, AgentStream, and control messages.
- prelude
- The prelude — import this for the most common types.
- reporters
- Built-in reporters for structured event consumption.
Structs§
- Agent
- Agent
Builder - Agent
Output - Agent
Stream - Returned by
agent.run_stream(). Provides async iteration over events and bidirectional control (permissions, cancellation, message injection). - Anthropic
- OpenAi