Repository navigation
The first stable release of Stubb, a Rust library for embedding coding agents in your application.
Highlights
- One API for four kinds of agent. Claude Code, OpenAI Codex and Pi through their native protocols, and any Agent Client Protocol agent through
stubb::providers::acp, all behind thestubb::Providertrait. - Sessions and streaming. Start, resume, fork and list sessions, read stored history, and stream messages, tool activity and turn events.
- Permission requests. Forward an agent's tool permission prompts to your users and answer them asynchronously, with each provider's own approval and sandbox settings.
- Agent controls. Change model, effort and permissions mid-session, steer a running turn or queue follow-ups, send images, compact context, and follow subagents and background tasks.
- Discovery. Probe which agents are installed and signed in, show their name and logo, and update them with their own updaters.
Upgrading
- From 0.1.0-rc.2: no code changes. From 0.1.0-rc.1: follow the 0.1.0-rc.2 table first.
- From now on,
0.1.xversions only add to the API; breaking changes wait for0.2.0(versioning rules). Stored event JSON is versioned bysession::EVENT_FORMAT.
Install
Stubb needs Rust 1.99 or newer and a Tokio runtime; each provider is a Cargo feature (claude, codex, pi, acp), all on by default. See the README and the API reference.