r/PiGCodingAgent • • 29d ago

Pi extension or Piglet?

Hello,

I've been shopping around for Pi alternatives and PiG checks all of my boxes! I want to jump to it but am unsure regarding extensions.

PiG has Piglets, which should be extensions but in Go and better, while also supporting official Pi ones.

My main question is whether I should use official Node.js ones, likely loosing the benefits of using Go as base language, or convert all of them to Piglet. Also, how can someone check whether a Piglet provide functionalities like the official ones? By cross-checking the official repository?

After that I can probably fully migrate to PiG for good ๐Ÿ˜

8 Upvotes

8 comments sorted by

4

u/athomejkx 29d ago

I just asked PiG to rewrite my old Pi extensions (TS) in Go. It worked without too much issues.
Here my list:

- ask-user: picks question options
- bash-restricted: runs read-only commands
- list-dir: lists directories verbosely
- browser-nav: drives real Chrome
- web-search: searches web DuckDuckGo
- md-modes: manages agent modes
- code-map: maps code recursively
- footer-look: customizes TUI footer
- opencode-go-cache: optimizes request caching
- pi-status: publishes status bar
- todo: coordinates TODO tasks

2

u/GiovaSan 29d ago

I am more of a "get good package" guy, but it is an interesting approach which I was thinking of doing.

Perhaps I can package it as a Piglet to carry it around ๐Ÿ˜€

2

u/GiovaSan 29d ago

Fun update: found out the npm pipeline for the Go extensions has never worked and reported upstream:

[Issue - Release pipeline - Pigpen] Packages stale on npm: 39/41 published versions behind MichaelKinsy/pigpen main โ€” the npm publish workflow has never been run ยท Issue #386 ยท MichaelKinsy/PiG

When this is solved, all the extensions I want minus 2 will be available as PiG native extensions ๐Ÿ˜„

1

u/noctrex 29d ago

You can also use Pi-Bolt, this is just precompiled pi.
The good thing with this is it's the same as pi, so it uses the same profile as-is, whereas PiG, must always change its source code in order to follow pi.

2

u/GiovaSan 29d ago

I've tested Pi-Bolt and I believe it is very good overall. However, it drifts from a packages perspective from original Pi (has its own piBolt.packages fied) which means I have 2 Pi installs in one.

I want something to be as native as possible, so PiG is better in my case.

2

u/balcsida 29d ago

Yes, but Pi-Bolt (even with JIT) consumed more resources for me than PiG

1

u/noctrex 29d ago

on what low spec device are you trying to run if even this minimal pi is too much? at this point maybe just vibecode your own that is maybe even more minimal

2

u/athomejkx 29d ago

A PiG instance is around 90MB and my packages (another reply) is 30MB = 120MB
A Pi (w/ ~ the same packages) is 220MB.

The main difference is not memory, but startup time.