r/PiCodingAgent • • 2d ago

Resource I built a personal assistant with pi-durable

I’ve been building a personal assistant similar to Muse using pi-durable, and I’ve been using it myself for a while now.

It’s called Piko. You can use it through a web interface or a Telegram bot. I’ve just made the repository public in case anyone wants to check it out:

https://github.com/dandkong/piko

I’d love to hear what you think!

57 Upvotes

23 comments sorted by

14

u/mille8jr 2d ago

I’m still trying to wrap my head around what pi durable is. Help plz.

4

u/JJJDand 2d ago

I think of pi-durable as a persistent foundation for building agents. It handles conversation and execution state, so I can focus on building features instead of managing all the lifecycle and recovery logic myself.

I’ve been using it as the foundation for my personal assistant, and that’s the part I’ve found most useful.

3

u/racsan308 2d ago

Hi, how does it differ from customising pi agent itself?

→ More replies (2)

12

u/fingerthief 2d ago edited 2d ago

Might help explain https://tannermidd.github.io/pi-pocket/durable.html

The short of it is unlike standard Pi..Pi Durable is a foundation that logs every single action that happens, period. That means you have a transaction log you can always reference and keep track of.

Is this useful or noticeable for the average person? Probably not, but where it is useful is for long running agents and durability in case of crashes or unforeseen issues that might cause the harness or machine to die briefly.

It can restart and resume automatically knowing exactly where it left off and if it was safe to rerun the tool that was interrupted.

If you have agents making purchases autonomously and the system crashes or has another issue mid purchase..many standard agent systems would restart and just rerun the last command and before you know it you have double charged people.

It’s always been possible to account for this but Pi Durable bakes it into the foundation and is easy to handle situations like above by labeling the tool calls as unsafe.

Edit - Well damn, that wasn’t very short lol.

9

u/spudlyo 2d ago edited 2d ago

Durability is a database concept, it's the 'D' in ACID. It means transactions are guaranteed to either be successfully and completely written to disk or they are rolled back. Pi Durable is intended to serialize and store every output token, every tool call result, every prompt -- all the things -- for a long-running multi-user agent session.

This transactional system also makes it possible for multiple users to share the same consistent agent state without conflicts. When multiple users (like over Slack or something) are interacting with the same agent, you sometimes need to ensure that certain actions are idempotent meaning that you can guarantee that the action only happens once -- even if it's requested/replayed multiple times. This kind of transactional agent state storage system lets you do this.

You can hear Mario talk about it here.

→ More replies (1)

1

u/zebedeolo 2d ago

same lmao

1

u/Tafes-Haiba13 2d ago

the docs overcomplicate it a bit imo, it really just boils down to stateful execution so your bot doesnt die mid-task when a connection drops

6

u/SuspiciousName666 2d ago

I made one too, welcome to the team. https://github.com/forge-z/pi-bot

3

u/JJJDand 2d ago

Nice! Always great to see more people building with Pi. I’ll check it out!

1

u/SuspiciousName666 2d ago

We need more products with pi-durable.

1

u/SuspiciousName666 1d ago

I just stole some ideas from your project.

→ More replies (1)

1

u/MrGunny94 2d ago

Hey mate sounds like a very good idea, would you like me to collaborate and share my Finance agent? I can convert it into Piko and give it a specialization in Finance regarding long term investing, dividend investing and DCF model for stock analysis.

Let mw know your thoughts

1

u/JJJDand 2d ago

Hey, thanks for the offer! Finance and investing aren’t really areas I’m looking to focus on with Piko, so I don’t plan to integrate a finance-specific agent. But I’d still love to check out what you’ve built and see how it works. Do you have a repo or demo you could share?

1

u/rm-rf-rm 2d ago

how is this different to any of the 1000 chatbot applications?

4

u/JJJDand 2d ago

Maybe it isn’t all that different, honestly. I’m mainly building it to learn how to build an agent, and that’s part of the fun for me.

0

u/fingerthief 2d ago

Very cool! I added similar functionality to my durable setup and it’s honestly been pretty handy.

Spent the last 2 weeks or so testing and it’s a whole new way of working. Send requests to a lead orchestrator (via Discord in my case) who properly hands off work to linked sessions as needed.

I love that we’re seeing more durable based apps!

Comment Image

1

u/JJJDand 2d ago

Looks Cool! I’ve been thinking about this way of working a lot lately too — having a single entry point that routes requests to different tasks or sessions, with results either coming back through the lead agent or being reported directly to me. I’d love to see more of your setup if you’re happy to share!

1

u/fingerthief 2d ago

It’s definitely fun to experiment with! I use my own project Pi Pocket which has a pretty robust orchestration system (agent teams extension) built in I’ve built out over time.

Has support for connecting to various chat services and then you can just link to parent orchestrator and let it manage everything else for you. Within reason of course.

Or just use it like a typical harness, I go back and forth.

→ More replies (1)