r/PiCodingAgent • • 27m ago

Question Running pi as part of a multi-agent host platform

Hey everyone!


I've been building an open-source, self-hosted platform for running multiple AI agents, and pi is one of the agents I've integrated natively through its SDK (`@earendil-works/pi-ai` and `@earendil-works/pi-coding-agent`).


The idea is to run agent sessions on your own machine or a remote server, while allowing you (or your team) to interact with the same session from different clients (terminal, browser, desktop, or phone). Sessions keep running even when you disconnect, and you can pick up where you left off from another device.


The platform also supports scheduled tasks, webhooks, persistent bots, isolated environments, and workflows involving multiple agents.


One of the things I particularly like about pi is its philosophy of keeping the core small, hackable, and extensible. Rather than replacing that experience, I want to build around it while staying as close to native pi as possible.


So far, I've made a few deliberate choices:


- pi uses its own settings and credentials, with the option to provide or override them through the host's configuration.
- Sessions are stored in pi's native format and location. You can open them using pi directly, and vice versa.
- Project extensions are loaded only from directories you trust.
- The host manages execution and connectivity around pi, rather than reinventing the agent itself.


I'd love to hear from people who use pi regularly, especially those who have built their own workflows around it.


- Do you run pi on remote machines and what do you use to keep sessions accessible and running? 
- Would interacting with the same session from multiple devices or collaborating with others be useful to you?
- Do you work with long-lived sessions? How do you handle compaction, loading large sessions, context growth, and cleanup?
- Which parts of pi do you find yourself extending or customizing most often?
- Have you built or do you rely on extensions or automations that you couldn't imagine working without?
- What would you consider essential to preserve when running pi through a host? What would be an immediate dealbreaker?


I'm also curious whether anyone else is building something similar on top of pi's SDK, or exploring use cases beyond coding.


I'd love to exchange ideas about what we can build around pi without losing what makes it pi in the first place.


The project is called 
**ahpd**
, and it's open source: https://github.com/ahpio/ahpd


Feedback, ideas, and contributions are welcome.
1 Upvotes

0 comments sorted by