rpi: Rust Coding-Agent Runtime
Build, run, and extend coding agents with an embeddable Rust runtime and a terminal CLI.
- Source repo
- bigfish1913/pi-rust
- Stars
- ★ 343
- Last updated
- 1d ago v0.36.0
- FARS reviewed
- Nov 08, 2026 +21 new
- License
- MIT
- Primary language
- Rust
- FA score
- 71/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformOpenAI API · Claude API
- Cost
- Free software; you pay for model usage
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- Rust developers embedding an agent in an application and handling its events and output can build on
rpi-agentandrpi-ai. - Not a fit if
- Users who need a desktop app instead of a terminal interface
- Teams that require local-model operation without configuring an API
- Website
- rpi.bigfisharc.cn ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-12-02latest release v0.36.0 (2026-12-02)+6.1 ★/day over 7 days
- Source review
- 71/100 · Some gaps
What does this agent do, and when should you use it?
rpi is a Rust coding-agent runtime offered as an embeddable SDK and a terminal CLI built on the same implementation. Its nine crates cover Anthropic and OpenAI-compatible providers, the agent loop, tools, session persistence, a terminal UI, and a plugin ABI. The CLI provides an interactive TUI, one-shot prompts, JSON event output, and a headless TCP server mode. Sessions persist as JSONL and can resume after a crash from the last committed frame. It fits Rust developers who want to embed an agent in their own process or customize its tools and plugins; installing the CLI from crates.io or building from source requires Rust 1.78+, while real model calls need the relevant API credentials.
The CLI accepts prompts in an interactive terminal session, runs one-shot tasks with -p, or emits a machine-readable event stream with --mode json. rpi-agent configures the model, system prompt, and stream function through AgentBuilder, then runs an agent loop that invokes AgentTools. rpi-tools supplies read, write, edit, bash, and other tools through the ExecutionEnv seam. rpi-ai supports Anthropic, OpenAI-compatible, and deterministic faux providers. rpi-harness persists sessions as JSONL and handles recovery. Extensions can register tools, providers, commands, and event handlers through the stable C ABI in rpi-plugin-sdk. A TCP server can also run the agent for a remote TUI client.
- Rust developers embedding an agent in an application and handling its events and output can build on
rpi-agentandrpi-ai. - Developers who want an interactive terminal agent or prompt-driven one-shot tasks can run the
rpiCLI. - Teams that need resumable agent sessions can use JSONL persistence and crash recovery.
- Extension authors building distributable Rust plugins can register tools, providers, or event handlers through
rpi-plugin-sdk. - Users who want the agent on a remote host and only a terminal client locally can start
--serverand connect with--connect.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Config files
~/.rpi/agent/models.json- Runtime
- Rust 1.78+
How do you install or deploy this agent?
Install a prebuilt binary without a Rust toolchain; the installer verifies its SHA-256 checksum. Alternatively, install from crates.io with Rust 1.78+.
How do you use this agent?
Real model calls require an Anthropic or OpenAI API key; compatible gateways can also be configured in ~/.rpi/agent/models.json.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
FARS trust-control audit
- verifiable attribution
What are this agent's strengths and limitations?
- The Rust SDK and CLI share the same agent and tools, so you can embed the runtime or run the command directly.
- The
fauxprovider and in-memory execution environment enable deterministic examples and test paths without an API key or network. - JSONL session persistence records frame-level progress and supports recovery from the last committed frame after a crash.
- Rust
cdylibextensions use a#[repr(C)]ABI with version negotiation and panic containment.
- Real Anthropic or OpenAI-compatible model calls require API credentials and network access.
- The SDK and source builds require Rust 1.78+; plugins also need a Rust
cdylibbuild workflow. - The primary interface is a terminal TUI; the README does not describe a graphical desktop app.
- TCP remote mode requires deploying a server and managing its authentication token.
How does this agent compare with similar options?
The README compares rpi structurally with Claude Code, Codex CLI, opencode, and aider, positioning rpi as a Rust runtime with an embeddable library, plugin ABI, and multi-provider gateways. It notes that information about the other products is current as of 2026-09 and may change.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| rpi: Rust Coding-Agent Runtime This agent | 71 · Some gaps | CLIFree + model costs | ★ 343 | 1d ago | Rust | OpenAI API · Claude API |
| Aster | 70 · Some gaps | CLIFree + model costs | ★ 143 | 1mo ago | Rust | OpenAI API |
| zerostack | 69 · Some gaps | CLIFree + model costs | ★ 1.8k | today | Rust | OpenAI API · Claude API |
| FirstCoder | 61 · Some gaps | — | ★ 246 | today | Python | OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
The documents describe an ExecutionEnv seam for tools, Unix mode 0600 for the credential file, and that plugins and shell commands run with the current user's privileges. They also disclose that plugins are unsandboxed, remote mode has no built-in transport encryption, and recovery does not guarantee exactly-once external effects. This supports some least-privilege and data-flow transparency. Deductions: built-in tools and third-party plugins can run arbitrary commands or native code; project trust, extension provenance, and updates require user judgment, while the evidence does not show per-action confirmation or a general rollback path. Dependencies have version declarations and locked CI commands, but no dependency audit or detailed vulnerability response evidence is included. Pi attribution, NOTICE, and MIT copyright terms are clear.
The README, API comments, and CI workflow describe an offline faux provider, JSONL persistence, crash recovery, and plugin ABI lifecycle checks. Deductions: naming/version references are inconsistent in places (including pi-tools in the promotion document and nine versus eleven crates in release material), and the supplied CI excerpt is truncated. Dependencies mostly use broad version ranges, and lockfile contents are not supplied, so static evidence for availability is limited. Structured errors, timeouts, retry behavior, and explicit missing-capability guidance are documented, but coverage varies.
The README serves CLI users, Rust SDK adopters, and plugin authors with concrete scenarios, commands, and platform notes. ABI guidance defines optional capability checks, fallbacks, and narrowed subagent tool scope. Deduction: the product has many entry points across CLI, skills, plugins, remote mode, and native resource management; despite an index and scenario guidance, users must still determine when particular capabilities load. Environment guidance is substantial, but release support and platform CI cannot be fully confirmed from this static packet.
The repository provides a documentation index, architecture and user guides, extension guidance, installation instructions, roadmap, changelog, and explicit version/MSRV information. MIT licensing and NOTICE are present, and the README points to contribution and security reporting channels. Deductions: some extension guidance is duplicated and naming/version references conflict; examples and limitations are useful, but there is no unified FAQ for common questions. Maintenance responsibility points to a Cargo.toml author and a security reporting process, but publisher identity is unverified and support is limited to the latest release.
The library-first design, shared tool implementation, multiple output modes, embeddable API, plugin ABI, offline faux example, and installation commands provide reusable agent capabilities. Deductions: the broad feature surface adds configuration and maintenance cost; performance figures and comparisons are repository claims, with methodology referenced but not executed or independently validated in this review.
The README links major capabilities to guides and code, while the CI file lists locked builds, tests, and platform checks. Tool boundaries and security policy are described concretely. Deductions: several capabilities and test results appear only as README, documentation, or workflow claims; the packet omits test implementations, run records, and the full CI file. Some comparison and performance claims are explicitly maintained by the project. This review treats them as static claims rather than independently verified facts.
- Plugins are native libraries running with the current user's privileges and have no sandbox; load extensions only from trusted sources.
- bash, powershell, and file tools can affect the real workspace. Session recovery does not guarantee exactly-once external effects, so callers should handle idempotency and recovery.
- Remote TCP mode has no built-in transport encryption; use token authentication and a trusted network path as documented.
- This is a low-confidence static review; no build, tests, or benchmarks were run.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
v0.36.0 rpi v0.36.0
Release notes excerpt
What's Changed * docs: refresh WeChat group image cache key by @bigfish1913 in https://github.com/bigfish1913/pi-rust/pull/511 * feat(tui): add editor panel slots and footer controls by @bigfish1913 in https://github.com/bigfish1913/pi-rust/pull/517 * Support rpi skills install as a CLI alias by @bigfish1913 in https://github.com/bigfish1913/pi-rust/pull/518 * fix(cli): give archive downloads their own timeout budget by @HQZ1111 in https://github.com/bigfish1913/pi-rust/pull/516 …View on GitHub ↗ -
v0.35.0 rpi v0.35.0
Release notes excerpt
What's Changed * perf(tools): bound file mutation bookkeeping and preview reads by @bigfish1913 in https://github.com/bigfish1913/pi-rust/pull/488 * feat(rpc): expose bounded child-agent observations by @bigfish1913 in https://github.com/bigfish1913/pi-rust/pull/479 * feat(extensions): surface plugin diagnostics and Pi-style notices by @bigfish1913 in https://github.com/bigfish1913/pi-rust/pull/480 * feat(cli): detect published package kind on install by @bigfish1913 in https://github.com/bigfish1913/pi-rust/pull/483 …View on GitHub ↗ -
v0.34.0 rpi v0.34.0
Release notes excerpt
What's Changed * fix: harden saved-session selection, transcript search, and shell stdin by @bigfish1913 in https://github.com/bigfish1913/pi-rust/pull/472 * fix: bound context compaction and reset stale usage by @bigfish1913 in https://github.com/bigfish1913/pi-rust/pull/475 * fix(harness): retry interrupted SSE stream reads by @zji996 in https://github.com/bigfish1913/pi-rust/pull/462 * fix(cli): report unreadable exact session matches by @bigfish1913 in https://github.com/bigfish1913/pi-rust/pull/474 …View on GitHub ↗
FAQ
Can I try it without an API key?
faux provider; real Anthropic or OpenAI-compatible model calls require credentials.Which model providers are supported?
faux provider for offline use.Will a tool run again after an interrupted session?
What can plugins add?
cdylib plugins can register tools, providers, slash commands, event handlers, Markdown renderers, and discovered resources.Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.