pi-agent
Agent runtime with tool calling. Part of the
pi agent harness — a Rust port of
@earendil-works/pi-agent-core.
Builds on pi-ai and adds:
run_agent/run_agent_with_history— streaming agent loop with sequential tool execution.AgentTooltrait — implement once, plug in viaAgentConfig::with_tools.PermissionPolicytrait withAllow/AllowSession/Deny— tools that flagrequires_permission()(e.g.bash,write,edit) are gated.- Streaming
AgentEvent::TextDelta/ThinkingDelta/ToolExecutionStart/ToolExecutionEndevents through anmpsc::UnboundedSender. - Built-in tools under
pi_agent::tools::*:read,write,edit,bash,ls,grep,glob_tool,web_fetch,todo. Pre-bundled aspi_agent::tools::default_tools().
Quick start
use ;
use ;
# block_on;
License
MIT