pi-agents0.44.0
Durable, named agents for Pi: delegate tasks, compose agents into graphs, and watch them work.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
๐ค pi-agents
Give Pi durable, named agents. Delegate a job, keep working while the agent runs, and get its result back as a message. Watch any agent live, talk to it, or stop it. Agents survive crashes and restarts.
![]() |
![]() |
|
Delegate work to agents and graphs Run parallel reviews, follow progress, and bring the findings together. |
Agents message each other Coordinate a fix between agents, then browse their conversation. |
๐ Installation
pi install npm:pi-agents
โจ Usage
Have an agent review src/run for error handling while we keep going.
Spawn two agents in parallel: one maps the API surface, one checks the tests.
Merge their findings once both report back.
Start a graph: three agents review src/run, src/ui, and src/host, and a
fourth merges their findings into one list of issues.
Start an agent that may spawn agents: it finds every module under src, has
one agent review each, and returns one merged review.
Pi starts agents only when you ask for delegation. They work in the background and return their final messages to your conversation. In a graph, agents pass results to each other and Pi gets one message at the end.
๐๏ธ Architecture
Agents run inside Pi and use your Pi logins, models, MCP servers, and the extension tools you share with them:
โญโ Pi process โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ โญโโโโโโโโโโโโโโโโโโโฎ โญโโโโโโโโโโโโโโโโโโโโโฎ โญโโโโโโโโโโโโโโโโโฎ โ
โ โญโค โ Pi session: โ โ โ optional โ โ โค panel โ โ
โ โโ MCP, extension โ โ extensions, e.g. โ โ โ attach view โ โ
โ โโ tools โ โ pi-service-tier โ โ โก /agents โ โ
โ โโ โ โ โ โ โ /messages โ โ
โ โโฐโโโโฌโโโโโโโโโโฒโโโโโฏ โฐโโโโโโโโโโฌโโโโโโโโโโโฏ โฐโโโโโโโโโฒโโโโโโโโฏ โ
โ โ โ agent_* โ results โ hooks: capture at โ โ
โ โ โ โ โ spawn, hold calls, โ โ
โ โ โผ โ โผ adapt requests โ โ
โ โโญโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโฎ โ
โ โโ โฆ pi-agents: a thin bridge from Pi to pi-durable โ โ
โ โโ โ โ
โ โโ โ tool twin: a headless, non-durable Pi session that runs โโโโโฎ โ
โ โโ MCP and shared extensions, whose tools only run in Pi โ โ โ
โ โโฐโโโโฌโโโโโโโโโโฒโโโโโโโโโโโโโโโโโโโโโโโโโโโโฒโโโโโโโโโโโโโโโโโโโฏ โ โ
โ โ โ start โ state โ tool calls โ โ
โ โ โ message โ results โ โ โ
โ โ โผ stop โ โ โ โ
โ โโญโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโฎ โ โ
โ โโ pi-durable harness โ โ โ
โ โโ โ โ โ
โ โโ โ scout โโโ message โโโถ โ notes โ โ โ
โ โโ โ โ โ
โ โโ โญโ graph โโโโโโโโโโโโโโโโโโโโโโโโโโฎ agent tools: โ โ โ
โ โโ โ โ map โโฌโโถ โ core โโฌโโถ โ report โ read bash edit โ โ โ
โ โโ โ โโโถ โ ui โโโโ โ write grep find โ โ โ
โ โโ โ โโ โ โ โ spawned โ ls codemode, and โ โ โ
โ โโ โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ the twin's tools โ โ โ
โ โโ โ โ โ
โ โโ agents are conversations; turns, tool calls, and graphs โ โ โ
โ โโ are durable tasks that own what they start; model โ โ โ
โ โโ requests pass the hooks with each agent's snapshot โ โ โ
โ โโฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ โ โ
โฐโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโฏ
โ saves โ checkpoint every step โ connects
โผ โผ โผ
โญโโโโโโโโโโโโโโโโโโโโโโโฎ โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ โญโโโโโโโโโโโโโโฎ
โ โค Pi's session file โ โ โค pi-agents store, one per โ โ โ MCP โ
โ your conversation, โ โ session: agents and their โ โ servers, โ
โ saved results, and โ โ hook snapshots, graphs, โ โ web โ
โ message cards โ โ messages, tasks โ โ providers โ
โฐโโโโโโโโโโโโโโโโโโโโโโโฏ โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ โฐโโโโโโโโโโโโโโฏ
๐ Documentation
- Usage: glossary, states, skills, UI, commands, and tools.
- Graphs: coordinating agents, and agents that spawn agents.
- Messaging: using messages and their guarantees.
- Agent profiles: reusable settings and instructions.
- Configuration: models, requests, and footer counts.
- Architecture: recovery, storage, and lifecycle events.
- Extension hooks: capture settings, hold calls, and adapt requests.

