Repository navigation
Releases
Stubb 0.1.1-rc.3
Hosts can tell which providers list and read stored sessions, Claude Code sessions list about ten times faster, and a skill an agent loads is reported as one.
Highlights
- Capabilities for stored sessions.
Capabilities::list_sessions(Provider::list_sessionsandread_sessionwork) andlist_turns(Provider::list_turnsworks). Claude Code, Codex and Pi set both; an ACP provider setslist_sessionsonce the agent offerssession/list. - Faster Claude Code listing.
list_sessionsreads only the fields a summary needs, a page's files in parallel: 178 sessions (859 MB) list in 0.13 s instead of 1.2 s. Pi reads a page in parallel too. - Skills.
ToolDetail::Skill { name, path, arguments, output }: Claude Code'sSkilltool, a Codex command that only reads a skill'sSKILL.md, and a Pireadof one.
Upgrading
- Only additions;
CapabilitiesandToolDetailare#[non_exhaustive]. In JSON the flags arelistSessionsandlistTurns,falsewhen missing. - Skill loads that hosts saw as
CommandorOtherareSkillnow; an earlier Stubb reads a storedskilldetail asToolDetail::Unknown.
Stubb 0.1.1-rc.2
Agents' questions, plan approvals, forms and own permission choices reach the host as requests of their own; Codex forwards requests, and MCP calls carry their results.
Highlights
- Questions and plan approval.
request::Kind::Question(answered withDecision::Answer) andKind::PlanApproval(approved withAlloworDecision::Select, rejected withDeny): Claude Code'sAskUserQuestionandExitPlanMode, Codex'srequest_user_input. - Forms and the agent's own permission choices.
Kind::Form(answered withDecision::Submit) for Codex's MCP elicitations and ACP'selicitation/create;Kind::Permissionwith the agent's own options for ACP. - Codex forwards requests with
Settings::forward_requests: approvals, questions and elicitations wait for the host instead of being declined. - Skills and MCP prompts.
Session::skills()andinvoke_skill()for Claude Code, Codex and Pi;Session::mcp_promptsandinvoke_mcp_promptfor Claude Code, andmcp::PromptClientwith themcpfeature. - MCP results.
ToolDetail::McpCallcarries the call'sturn::McpResult(or its error) for Claude Code, Codex and Pi, live and stored.
Changes
Event::Titlecarries a title the agent gave the session (ACP, Codex, Claude Code).- Claude model labels include their version (
Opus 5.5). - Claude Code reports notebook edits as
ToolDetail::NotebookEdit, and its cost asEvent::TurnAccounting. Error::InvalidDecisionreports a decision that does not answer the request; the request stays pending.
Fixes
- A Claude Code task notification no longer ends the host's turn; work Claude Code does on its own arrives as a turn of its own.
Upgrading
- Only additions to the API;
EVENT_FORMATstays 1, and stored events read as before. - Some requests and calls arrive in their new shape:
AskUserQuestionandExitPlanModeasQuestionandPlanApproval, ACP permissions asPermission, MCP calls asMcpCallinstead ofMcp. Answering an unknown kind withAllow,DenyorCancelstill works. - An ACP decision matching none of the agent's options is
Error::InvalidDecisioninstead ofInvalidSetting.
Stubb 0.1.1-rc.1
Claude Code's context use reads right, every provider reports context compaction, and Codex sessions can read background task output.
Highlights
- Context compaction events.
Event::Compactionreports when an agent starts and finishes compacting, withturn::Compaction: status, trigger, tokens before and after (when the agent reports them), and an error. Claude Code, Codex, Pi and ACP report it; for ACP, Stubb advertisessession.compaction. - Codex background task output.
Session::task_output,Provider::list_tasksandProvider::task_outputwork for Codex, live and stored, as they do for Claude Code.
Fixes
- Claude Code's
Usage.lastis the latest model call, reported after each call, instead of the whole turn's sum; the sum only adds toUsage.total, and turns without a model call no longer report zero. - ACP's context size outside a turn is
Event::Usageinstead ofEvent::Raw.
Upgrading
- Only additions;
EVENT_FORMATstays 1. - Codex's
contextCompactionitems areEvent::Compactionin the live stream instead ofItem::Other; stored history still has them. Usage.totalrestarts when a session is resumed; for ACP agents it equals the current context size.
Stubb 0.1.0
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.
Stubb 0.1.0-rc.2
The public API no longer names individual providers: each sits behind a Cargo feature, and code written for 0.1.0-rc.1 needs its imports updated.
Highlights
- Choose providers at compile time with the
claude,codex,piandacpfeatures, all on by default; the ACP dependency builds only withacp. - Provider-neutral permission settings.
permission::Configurationcarries one provider's typed settings; settings stored by 0.1.0-rc.1 still load. - Built-in agents as
discovery::Cli. Each provider exports itsCLI, anddiscovery::clis()lists those compiled in.
Changes
- Observation types are grouped under
stubb::observation. examples/quickstart.rsstreams one Claude Code reply in about 40 lines.
Upgrading
Behaviour is unchanged; these names moved:
| 0.1.0-rc.1 | 0.1.0-rc.2 |
|---|---|
stubb::claude, stubb::codex, stubb::pi, stubb::acp |
stubb::providers::claude, …::codex, …::pi, …::acp |
stubb::registry |
stubb::providers::acp::registry |
stubb::probe::{probe, probe_all, Report, Auth} |
stubb::discovery::{probe, probe_all, Report, Auth} |
stubb::probe::Harness::Codex |
stubb::providers::codex::CLI |
Harness::ALL |
stubb::discovery::clis() |
report.harness, plan.harness, outcome.harness |
report.cli, plan.cli, outcome.cli (JSON field cli) |
stubb::profile::of(harness) |
cli.profile() |
stubb::update::package(harness) |
cli.package() |
stubb::profile, stubb::update |
stubb::discovery::profile, stubb::discovery::update |
Configuration::Codex(permissions) |
permissions.into() or Configuration::new(&permissions) |
match on Configuration::Codex(p) |
configuration.get::<codex::Permissions>()? |
EffectiveConfiguration::Codex(p) |
info.effective.get::<codex::EffectivePermissions>()? |
stubb::agent, stubb::task, stubb::control |
stubb::observation::agent, …::task, …::control |
Stubb 0.1.0-rc.1
The first release candidate of Stubb: one Rust API for starting coding-agent sessions, streaming their turns, and checking what each provider supports.
Highlights
- Claude Code through its CLI's streaming JSON protocol; a host can receive and answer its tool permission prompts. #1
- OpenAI Codex through the Codex app-server, with its own approval and sandbox settings. #2
- Pi through its CLI's RPC interface; a host can steer a running turn or queue a follow-up. #4
- Agent Client Protocol (ACP) agents, configured at runtime and connected over standard input and output.