r/PiCodingAgent • • Sep 27 '26

Resource PiG - A GUI in Swift for Pi

Post image

I've been working on this project since early this year. I use it daily. Figured it's about time I share it. It's a vibe-coded project, as you might have guessed, but it works very well for my needs and may suit yours well, too.

I got pretty tired of working in a TUI, but none of the graphical interfaces out there really did the trick for me. Some features I might highlight:

  • Inbox Zero approach to sessions
  • Quick Chats - ephemeral, not related to a project
  • Keep extensions disabled, but enable them on a per session basis (with pins)
  • Quick commands for favorite models (Cmd+1 through Cmd+5)
  • Work schedule (Default model can change depending on day and time)
  • File browser

I had a ghostty terminal built in, but I removed it for the public release. Added SwiftTerm. You're welcome!

Anyways, hopefully this helps someone else or inspires some ideas.

https://github.com/jmcblane/PiG

35 Upvotes

15 comments sorted by

8

u/WoodHeartBox Sep 28 '26

Another PiG! Did you see the other one that was PiG that's Pi in Go? r/PiGCodingAgent

I guess making yours PiS doesn't have the effect you want lol but just because it's a GUI is where you get your G?

I wonder how many other PiGs there are already.

Seems nice, but I don't have a mac so cannot use it sadly. Do you have plans for Linux support?

4

u/konabeans Sep 28 '26

OP should have used PiS lol

3

u/Polite_Jello_377 Sep 29 '26

Pi in Swift Special

-1

u/SquareHimself Sep 28 '26

Yes, I did see the other PiG post. That's part of what encouraged me to finally gather this up and make it public. I was a bit bummed to see another project with the name of mine. Bit of that feeling of "Hey, that's my project's name!"

May the best PiG win, I reckon!

And, concerning Linux, I don't have a need to run this on there, which is why I don't have support for it. I went for Swift to give a very strong native experience on Mac because that's what I work on day to day. I have many Linux machines, and if I could, I would run Linux exclusively; it just doesn't fit in a professional environment where I need Adobe, Microsoft, and all sorts of other proprietary things.

But you're welcome to fork the project and/or contribute.

4

u/jaegernut Sep 28 '26

May the best vibecoder win

2

u/Neat-Arm2643 Sep 29 '26

What are the advantages over this https://github.com/agegr/pi-web

2

u/SquareHimself Sep 29 '26

I haven't really used pi-web, so I can't really say. I prefer having a native app rather than doing everything in a web page. And I don't do this kind of agent work on mobile, so that's not an issue for me.

This is largely aimed at my day to day desktop work experience. I use agents for a wide range of tasks and I'm very opinionated about context usage and tooling (hence, using pi), so I built a graphical interface that has my wants and needs to manage my pi sessions.

TL;DR: Like every pi user, I want what I want the way I want it, and PiG is the way I want it.

1

u/Neat-Arm2643 Sep 29 '26

Can also be accessed via mobile

2

u/Educational-Yak8793 Sep 29 '26

Creator of the other PiG here! Firstly nice project, secondly good luck and maybe we can collab sometime. Maybe run PiG on PiG haha 🐷

1

u/SquareHimself Sep 29 '26

Hi! Great minds think alike.

I actually am happy to see someone doing what you're doing with Pi. I don't want to have to maintain parity with upstream, or I would consider a similar project. Node is resource heavy, to say the least.

As long as your RPC protocol and command line flags are 1:1 with pi, then you should be able to drop in replace the pi executable that's being called in the settings today. So PiG running in PiG might already be a thing that works just fine.

0

u/[deleted] Oct 04 '26

[removed] — view removed comment

1

u/SquareHimself Oct 04 '26 edited Oct 04 '26

I generally don't work in such a way that I have blockers. When I have a green dot, the agent finished its turn and needs review. I have experimented with sandboxing, but I don't tend to use it, and I don't utilize question extensions or anything like that.

I manage the context such that when I give the agent a task, it has a clear idea of what I expect and doesn't finish until it has completed the job we agreed upon.

Does that answer your question? Is there a specific example perhaps that you're thinking of?