Skip to content

Releases

Stubb 0.1.1-rc.3

Stubb 0.1.1-rc.3 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 01 Dec 14:08
489bd3f

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_sessions and read_session work) and list_turns (Provider::list_turns works). Claude Code, Codex and Pi set both; an ACP provider sets list_sessions once the agent offers session/list.
  • Faster Claude Code listing. list_sessions reads 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's Skill tool, a Codex command that only reads a skill's SKILL.md, and a Pi read of one.

Upgrading

  • Only additions; Capabilities and ToolDetail are #[non_exhaustive]. In JSON the flags are listSessions and listTurns, false when missing.
  • Skill loads that hosts saw as Command or Other are Skill now; an earlier Stubb reads a stored skill detail as ToolDetail::Unknown.

Full changelog · v0.1.1-rc.2...v0.1.1-rc.3

Stubb 0.1.1-rc.2

Stubb 0.1.1-rc.2 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 26 Nov 13:58
e882ac2

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 with Decision::Answer) and Kind::PlanApproval (approved with Allow or Decision::Select, rejected with Deny): Claude Code's AskUserQuestion and ExitPlanMode, Codex's request_user_input.
  • Forms and the agent's own permission choices. Kind::Form (answered with Decision::Submit) for Codex's MCP elicitations and ACP's elicitation/create; Kind::Permission with 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() and invoke_skill() for Claude Code, Codex and Pi; Session::mcp_prompts and invoke_mcp_prompt for Claude Code, and mcp::PromptClient with the mcp feature.
  • MCP results. ToolDetail::McpCall carries the call's turn::McpResult (or its error) for Claude Code, Codex and Pi, live and stored.

Changes

  • Event::Title carries 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 as Event::TurnAccounting.
  • Error::InvalidDecision reports 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_FORMAT stays 1, and stored events read as before.
  • Some requests and calls arrive in their new shape: AskUserQuestion and ExitPlanMode as Question and PlanApproval, ACP permissions as Permission, MCP calls as McpCall instead of Mcp. Answering an unknown kind with Allow, Deny or Cancel still works.
  • An ACP decision matching none of the agent's options is Error::InvalidDecision instead of InvalidSetting.

Full changelog · v0.1.1-rc.1...v0.1.1-rc.2

Stubb 0.1.1-rc.1

Stubb 0.1.1-rc.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 23 Nov 13:35
6f45dfe

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::Compaction reports when an agent starts and finishes compacting, with turn::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 advertises session.compaction.
  • Codex background task output. Session::task_output, Provider::list_tasks and Provider::task_output work for Codex, live and stored, as they do for Claude Code.

Fixes

  • Claude Code's Usage.last is the latest model call, reported after each call, instead of the whole turn's sum; the sum only adds to Usage.total, and turns without a model call no longer report zero.
  • ACP's context size outside a turn is Event::Usage instead of Event::Raw.

Upgrading

  • Only additions; EVENT_FORMAT stays 1.
  • Codex's contextCompaction items are Event::Compaction in the live stream instead of Item::Other; stored history still has them.
  • Usage.total restarts when a session is resumed; for ACP agents it equals the current context size.

Full changelog · v0.1.0...v0.1.1-rc.1

Stubb 0.1.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 17:33
6a91366

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 the stubb::Provider trait.
  • 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.x versions only add to the API; breaking changes wait for 0.2.0 (versioning rules). Stored event JSON is versioned by session::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.

Full changelog · v0.1.0-rc.2...v0.1.0

Stubb 0.1.0-rc.2

Stubb 0.1.0-rc.2 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 19 Nov 16:49
99ce966

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, pi and acp features, all on by default; the ACP dependency builds only with acp.
  • Provider-neutral permission settings. permission::Configuration carries one provider's typed settings; settings stored by 0.1.0-rc.1 still load.
  • Built-in agents as discovery::Cli. Each provider exports its CLI, and discovery::clis() lists those compiled in.

Changes

  • Observation types are grouped under stubb::observation.
  • examples/quickstart.rs streams 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

Full changelog · v0.1.0-rc.1...v0.1.0-rc.2

Stubb 0.1.0-rc.1

Stubb 0.1.0-rc.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 19 Nov 15:47
d15370a

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.

Full changelog · all commits through v0.1.0-rc.1