pi-agent

Wrap Pi agent core for Cloudflare Durable Objects edge deployment.

22|4|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/joelhooks/atproto-agent-network --skill pi-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pi-agent
Source: https://github.com/joelhooks/atproto-agent-network/tree/main/.agents/skills/pi-agent
Command: npx skills add https://github.com/joelhooks/atproto-agent-network --skill pi-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Pi provides a compact agent runtime, but deploying and integrating it at the edge with Cloudflare Durable Objects requires glue code and a stable interface. This skill wraps Pi for Cloudflare Durable Objects and enables running the agent loop, tools, extensions, session trees, and multi-provider LLM calls.

Core Features & Use Cases

  • Wrapped Pi agent loop for Cloudflare Durable Objects
  • Tool calling and extension hooks
  • Session trees for branching and stateful interactions
  • Multi-provider LLMS support and streaming
  • Edge-deployed, deterministic task execution

Quick Start

Install the required packages, deploy your first Pi-based agent on Cloudflare.

Frequently Asked Questions about pi-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run an autonomous agent loop on Cloudflare Durable Objects?

You can run an autonomous agent loop on Cloudflare Durable Objects by wrapping the Pi agent core, which enables tool calling, extension hooks, and stateful session trees at the edge. This provides a stable interface for edge deployment.

Can I use multi-provider LLM calls and streaming with edge-deployed agents?

Yes, multi-provider LLM calls and streaming are supported with edge-deployed agents. The wrapper integrates the Pi AI packages to enable streaming responses and multi-provider routing inside Durable Objects.

What is the best way to manage branching conversations and state for edge agents?

The best way to manage branching conversations and state for edge agents is using session trees. This approach provides stateful interactions and deterministic task execution within the Durable Object environment.

Do I need external packages to deploy a Pi agent on Cloudflare Workers?

Yes, deploying a Pi agent on Cloudflare requires installing the Pi agent core and Pi AI packages. These dependencies provide the necessary runtime, tool integration, and memory features for the Durable Object wrapper.

Does this approach support tool calling and extension hooks for autonomous tasks?

Yes, the Pi agent wrapper supports tool calling and extension hooks for autonomous tasks. It wraps the agent loop to integrate custom tools and extensions directly within Cloudflare Durable Objects.

When should I not use Cloudflare Durable Objects for agent execution?

You should not use Cloudflare Durable Objects for agent execution if your task requires long-running processes exceeding edge execution limits or lacks support for multi-provider LLM streaming and session tree state management.