rpi: Rust Coding-Agent Runtime

Build, run, and extend coding agents with an embeddable Rust runtime and a terminal CLI.

Stars
★ 343
Last updated
1d ago v0.36.0
FARS reviewed
Nov 08, 2026 +21 new
License
MIT
Primary language
Rust

At a glance

How it runs
CLILibrary / SDKFramework
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
Rust 1.78+ for installation from crates.io or building from sourceAnthropic or OpenAI-compatible API credentials for real model useShell / CLINetwork accessLocal filesystem
Typical use
Rust developers embedding an agent in an application and handling its events and output can build on rpi-agent and rpi-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.

  1. Rust developers embedding an agent in an application and handling its events and output can build on rpi-agent and rpi-ai.
  2. Developers who want an interactive terminal agent or prompt-driven one-shot tasks can run the rpi CLI.
  3. Teams that need resumable agent sessions can use JSONL persistence and crash recovery.
  4. Extension authors building distributable Rust plugins can register tools, providers, or event handlers through rpi-plugin-sdk.
  5. Users who want the agent on a remote host and only a terminal client locally can start --server and 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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

FARS trust-control audit

Verified present in source (3/3)
  • verifiable attribution

What are this agent's strengths and limitations?

Pros
  • The Rust SDK and CLI share the same agent and tools, so you can embed the runtime or run the command directly.
  • The faux provider 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 cdylib extensions use a #[repr(C)] ABI with version negotiation and panic containment.
Limitations
  • 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 cdylib build 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?

FollowAgents source review · FARS-2.1
Some gaps
71/ 100 5-point scale 3.6 / 5
This review covers the source as of Nov 08, 2026. The project has shipped 21 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 17/29
Reliability 6/14
Adaptability 16/18
Convention 15/18
Effectiveness 12/13
Verifiability 5/8
Why each dimension lost points
Trust17 / 29 · 2.9/5

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.

Reliability6 / 14 · 2.1/5

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.

Adaptability16 / 18 · 4.4/5

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.

Convention15 / 18 · 4.2/5

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.

Effectiveness12 / 13 · 4.6/5

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.

Verifiability5 / 8 · 3.1/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 2f9c1aa421f9 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/pi-rust.svg)](https://followagents.com/en/agents/pi-rust)
<a href="https://followagents.com/en/agents/pi-rust"><img src="https://followagents.com/badge/pi-rust.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. 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 ↗
  2. 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 ↗
  3. 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?
Yes. The README includes offline examples using the deterministic faux provider; real Anthropic or OpenAI-compatible model calls require credentials.
Which model providers are supported?
The README lists Anthropic, OpenAI-compatible gateways, and the faux provider for offline use.
Will a tool run again after an interrupted session?
Sessions store frame-level progress as JSONL. The README says crash recovery resumes from the last committed frame instead of replaying the turn.
What can plugins add?
Rust cdylib plugins can register tools, providers, slash commands, event handlers, Markdown renderers, and discovered resources.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts