LibreAI / Dev Tools / pi_agent_rust
// devtools · Dicklesworthstone/pi_agent_rust

pi_agent_rust

A native Rust port of the Pi coding agent: single binary, zero unsafe code, and hardened extensions.

★ 1.9k stars⑂ 217 forksMITupdated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

pi_agent_rust is an open-source dev tools project by Dicklesworthstone (Dicklesworthstone/pi_agent_rust on GitHub). It has 1,857 GitHub stars and 217 forks, is released under the MIT license, and was last updated on GitHub on 8 October 2026.

GitHub stars
1,857
Forks
217
License
MIT
Last updated on GitHub
8 October 2026
Category
Dev Tools
Listing
Full install guide
// how it works

How it works

  1. Clarify your goal

    Decide which model provider you will connect and whether you need extensions beyond the built-in tools.

  2. Get the project

    Install the pi binary with the one-line installer, or build from source following the repository's release documentation.

  3. Install and configure

    Start an interactive session in your project, or use single-shot mode for scripting.

  4. Run your first task

    Continue previous sessions, attach files inline to prompts, and inspect available models and providers from the CLI.

// features

Why people love it

Native single-binary design

No Node or Bun bootstrap: a single pi binary aims to minimise startup time and memory overhead for long sessions.

36 built-in tools

A broad default toolset, with a core set always in the model's schema and the rest reachable through the xdev dispatcher or settings.

Capability-gated extension security

Extensions pass capability gates for host calls, with command-level mediation that blocks dangerous shell classes such as recursive deletes and reverse shells.

Extension trust lifecycle and kill switches

Extensions move through pending, acknowledged, trusted, and killed states with audit logs, and hostcall lanes can be forced into compatibility mode instantly.

Efficient long-session storage

Sessions use JSONL with branching, backed by a SQLite index and segmented sidecar logs for fast reopening of large histories.

Tamper-evident risk ledger

Security decisions are hash-linked and can be verified, replayed, or recalibrated from runtime traces.

Advertisement
// run it

Run it yourself

  1. Clone the project (for source builds)

    Release users install the binary directly; contributors are directed to the project's DSR-based build docs.

    git clone https://github.com/Dicklesworthstone/pi_agent_rust.git
    cd pi_agent_rust
  2. Install the latest release

    The installer script installs the single pi binary.

    curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/pi_agent_rust/main/install.sh" | bash
  3. Start working

    Open an interactive session, continue a previous one, or run a single-shot prompt.

    pi "Help me refactor this function to use async/await"
    pi --continue
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains it?

It is maintained by Dicklesworthstone, as a port of Mario Zechner's original Pi Agent, made with his blessing according to the README.

Is it free to use?

The code is open source; the README badge states MIT + Rider licensing, so review the license files in the repo for the exact terms before redistribution.

Does it need a paid API key?

Pi itself charges nothing, but it talks to model providers, so you use your own provider account or key; core latency benchmarks in the README exclude provider costs.

How does it compare to a well-known alternative?

The original Pi is a TypeScript agent; this Rust port keeps the workflow while replacing the engine with a native binary, structured concurrency, and a hardened extension runtime.

How do I get started?

Run the install script, then type pi in any project to start an interactive session.

// keep exploring

Similar tools

Dev Tools

kimi-code

Kimi Code CLI — Moonshot's terminal coding agent: single-binary TUI with video input, subagents and MCP.

★ 7.8k starsMIT
View guide →
Dev Tools

Benzi

Compiler-backed AI coding agent that maps your codebase — calls, data flow, control flow, class hierarchy — before reading code.

★ 135 starsNOASSERTION
View guide →
Dev Tools

Wake

Wake — every coding-agent session on your machine in one native app: find any conversation in seconds, read it in full, and resume it in your terminal

★ 1.5k starsMIT
View guide →
Dev Tools

jcode

A high-performance coding agent harness in Rust - fast TUI, swarms and every provider

★ 20.4k starsMIT
View guide →
Dev Tools

sidekick-agent-hub

Monitor your AI coding agent's sessions from VS Code or the terminal.

★ 85 starsMIT
View guide →
Dev Tools

oh-my-pi

A coding agent with the IDE wired in — LSP, debugger, subagents and code review in your terminal

★ 34.6k starsMIT
View guide →
// alternatives

Alternatives in Dev Tools

The most-starred other Dev Tools projects in the LibreAI catalogue — the realistic shortlist if pi_agent_rust is not the right fit.

Get pi_agent_rust

Free and open — grab the source, star the repo, and start creating.