Trustee
A general-purpose agent that can morph into different specialized agents using WASM lifecycle plugins.
Overview
Trustee is a terminal-first agent framework implemented in Rust that can dynamically adapt its behavior by loading different WASM lifecycle plugins. Unlike specialized agents that are built for specific domains, Trustee can morph into coding agents, research assistants, data analysts, or any other specialized agent type through its plugin architecture.
Features
- Morphable Architecture: Load different lifecycle plugins to change agent behavior
- WASM Plugin System: Secure, sandboxed plugin execution using WebAssembly
- Modular Design: Built on composable crates (ABK, CATS, UMF)
- Terminal-First: Optimized for command-line usage and automation
- Session Management: Checkpointing and resume capabilities
- Multiple LLM Providers: Support for OpenAI, GitHub Copilot, Anthropic, and more
Installation
From Source
# Clone the repository
# Build the project
# Install to ~/.local/bin
From crates.io (when published)
Quick Start
- Set up environment variables for your LLM provider:
# For OpenAI
# For GitHub Copilot
# For Anthropic
- Run your first task:
Configuration
Trustee uses a TOML configuration file located at config/trustee.toml. The configuration includes:
- Agent settings: Execution modes, timeouts, and behavior
- CLI configuration: Command-line interface customization
- Checkpointing: Session persistence and resume settings
- LLM provider: Endpoint and streaming configuration
- Tool settings: File operations, search filtering, and execution limits
Lifecycle Plugins
Trustee's morphing capability comes from WASM lifecycle plugins that define different agent types:
- Coding Agent: Software development and engineering tasks
- Research Agent: Information gathering and analysis
- Analysis Agent: Data processing and insights
- Custom Agents: Create your own specialized agent types
Creating Lifecycle Plugins
Lifecycle plugins are written in languages that compile to WebAssembly and implement the lifecycle interface defined in the WIT (WebAssembly Interface Types) specification.
Architecture
Trustee is built on a modular architecture using several key crates:
- ABK (Agent Builder Kit): Core agent building blocks with feature-gated modules
- CATS (Code Agent Tool System): LLM-facing tools and utilities
- UMF (Universal Message Format): ChatML message formatting and streaming
- Lifecycle Plugins: WASM modules defining agent behavior
Development
Prerequisites
- Rust 1.70 or later
- Cargo package manager
Building
# Debug build
# Release build
# Run tests
Project Structure
trustee/
├── src/
│ └── main.rs # Entry point using ABK convenience function
├── config/
│ └── trustee.toml # Configuration file
├── providers/ # WASM provider binaries
├── lifecycles/ # WASM lifecycle plugins
├── AGENTS.md # Development guidelines
├── CHANGELOG.md # Version history
└── README.md # This file
Usage Examples
Basic Task Execution
# Run with confirmation mode (default)
# Run in YOLO mode (no confirmations)
# Use a specific mode
Session Management
# List previous sessions
# Resume a specific session
# Resume the latest session
Configuration Management
# Show current configuration
# Edit configuration file
# Validate configuration
Contributing
We welcome contributions! Please see our contributing guidelines for details.
Development Setup
- Fork the repository
- Clone your fork:
git clone https://github.com/yourusername/trustee.git - Create a feature branch:
git checkout -b feature/your-feature - Make your changes and add tests
- Run the test suite:
cargo test - Submit a pull request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Trustee builds upon several key technologies and projects:
- ABK: Agent Builder Kit for modular agent components
- CATS: Code Agent Tool System for LLM tool integration
- UMF: Universal Message Format for LLM communication
- Wasmtime: WebAssembly runtime for plugin execution
- Tokio: Asynchronous runtime for Rust
Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Wiki
Trustee - Morph into the agent you need, when you need it.