Skip to content

v0.1.0

Choose a tag to compare

@chagel chagel released this 27 May 23:44
· 8 commits to main since this release
bb26301

First release of pi-agent-rb — a Ruby client for the pi coding agent, driving pi --mode rpc over its JSONL protocol.

Verified against pi 0.75.3.

Added

  • Initial project scaffold.
  • popen3 transport with JSONL framing and request correlation.
  • Pluggable transport.
  • Session API with typed event stream.
  • Session#run single-shot helper (pi print-mode equivalent).
  • Session commands: cycle_model, available_models, messages, last_assistant_text, compact, new_session, switch_session.
  • Session#session_stats.
  • Session forking and error mapping.
  • Image attachments; follow_up uses a dedicated command.
  • Extension UI protocol.

Fixed

  • Session#set_model now sends provider/modelId (pi rejected the previous single model field).
  • Session#set_thinking now sends the set_thinking_level command.

Install

```
gem install pi-agent-rb
```