alice-runtime
Runtime wiring layer for the Alice AI agent.
Overview
This crate is the composition root that wires all components together:
- Configuration — TOML-based config with
alice.tomlvia theconfigcrate - Bootstrap — builds the full runtime context from configuration
- Agent backends — pluggable
AgentBackendtrait with two implementations:BobAgentBackend— built-in Bob runtime with liter-llm adapterAcpAgentBackend— external agent via Agent Client Protocol (feature-gated)
- Chat adapter runner — event loop for CLI, Discord, and Telegram channels
- Skill system — dynamic SKILL.md loading and per-turn skill injection
- Memory integration — recall-before, persist-after turn execution
Features
| Feature | Description | Dependencies |
|---|---|---|
acp-agent |
ACP agent backend support | agent-client-protocol, tokio-util |
discord |
Discord channel adapter | (via alice-adapters/discord) |
telegram |
Telegram channel adapter | (via alice-adapters/telegram) |
Usage
use ;
// Load configuration
let cfg = load_config?;
// Build the full runtime context
let context = build_runtime.await?;
// Run a one-shot prompt
cmd_run.await?;
Agent Backend Configuration
# Built-in Bob agent (default)
[]
= "bob"
# External ACP agent
[]
= "acp"
= "opencode"
= ["serve", "--acp"]
= "/path/to/project"
License
Apache-2.0