Dicklesworthstone/pi_agent_rust

High-performance AI coding agent CLI written in Rust with zero unsafe code

What it solves

pi_agent_rust provides a high-performance, native AI coding assistant for the terminal. It addresses the common frustrations of existing AI coding tools, such as slow startup times, heavy resource consumption from Electron-based runtimes, and unreliable session management.

How it works

Built from scratch in Rust, this tool acts as a single-binary CLI agent. It uses a capability-gated security model to safely execute tools and manage extensions. It leverages two custom Rust libraries: asupersync for structured concurrency and predictable resource cleanup, and rich_rust for high-quality terminal output. It supports interactive sessions, single-shot commands, and integration with various local and remote AI models.

Who it’s for

It is designed for developers who want a fast, secure, and resource-efficient AI coding assistant that integrates directly into their terminal workflow, particularly those who prefer native binaries over heavy managed runtimes.

Highlights

  • Native Performance: Single-binary architecture minimizes startup overhead and memory usage.
  • Security-First Design: Implements capability-gated hostcalls and two-stage command execution enforcement to prevent dangerous shell operations.
  • Extensible Tooling: Includes 36 built-in tools and supports custom model configurations via a JSON schema.
  • Robust Concurrency: Uses a custom async runtime to ensure predictable task lifecycles and clean shutdowns.
  • Flexible Model Support: Works with major providers and local models like Ollama, llama.cpp, and mistral.rs.

Related

  • Project
  • Project
  • Project
  • Project
  • Project