Package Details: pi 0.75.5-1

Git Clone URL: https://aur.archlinux.org/pi.git (read-only, click to copy)
Package Base: pi
Description: AI coding agent for the terminal — minimal, extensible and optimized for tool use
Upstream URL: https://github.com/earendil-works/pi
Licenses: MIT
Submitter: aminvakil
Maintainer: aminvakil
Last Packager: aminvakil
Votes: 2
Popularity: 1.42
First Submitted: 2026-04-15 10:04 (UTC)
Last Updated: 2026-05-23 10:31 (UTC)

Dependencies (5)

Required by (0)

Sources (1)

Pinned Comments

aminvakil commented on 2026-05-10 15:25 (UTC)

This repository is maintained at https://github.com/aminvakil/aur.

In case anyone had any suggestions about anything, feel free to raise a PR there.

Latest Comments

aminvakil commented on 2026-05-20 18:08 (UTC)

Hey @svenstaro!

Thankfully web-ui has been removed from upstream in recent release.

https://github.com/earendil-works/pi/commit/b141e1fa2460868686ffd19c5d4ced743eee6c24

So I removed the hack in PKGBUILD for making it work.

In case you wanted to take another look at it, it's readable now.

aminvakil commented on 2026-05-10 15:25 (UTC)

This repository is maintained at https://github.com/aminvakil/aur.

In case anyone had any suggestions about anything, feel free to raise a PR there.

aminvakil commented on 2026-05-10 15:25 (UTC)

Done that, a couple of notes though.

1) build-binaries.sh is making a compiled package using bun, so it has a couple of differences with this package. I had seen it prior to writing PKGBUILD as well.

2) I have excluded web-ui (told AI to exclude it) from final package before you asked to rewrite it, as I do not think it's necessary for pi coding-agent which this package is to have it, therefore lots of unusual stuff which you saw was because of them, I have added it, as I thought a "pi" package in official arch package should include all of what pi repository offers, but please tell me if it was unnecessary, and I will remove web-ui.

3) I've read and rewrite all the PKGBUILD myself, and commented wherever possible, some of them might be unnecessary though, please tell me if it's excessive and I should remove some of them.

4) I've took a look at official nodejs package guidelines such as eslint and typescript, the difference is that this package contains multiple packages itself, therefore it is more complicated.

5) Last but not least, I had seen official nodejs package guidelines and seen other nodejs PKGBUILDs, and it was not like I told AI to write a PKGBUILD and not review it myself and just pushed it. Taking a look at session which I used to write pi PKGBUILD it took a lot of tokens and got back and forth (exactly ↑905k ↓89k R9.1M).

svenstaro commented on 2026-05-10 10:11 (UTC)

Alright, that's probably going to be a problem for us. Please rewrite the PKGBUILD yourself and follow our nodejs packaging guidelines or find some upstream docs on how to build it and follow those.

If I need to maintain this, I need to be able to do it without an LLM so I need to see how upstream does it and follow it.

There's this: https://github.com/earendil-works/pi/blob/main/scripts/build-binaries.sh

Give me a ping once I can take a peek.

aminvakil commented on 2026-05-10 09:41 (UTC)

Hey svenstaro, putting this in extra would be awesome, thank you!

PKGBUILD has been written by AI, it just works, but that's why it's unusual, I didn't have experience packaging nodejs packages. I'm going to see other nodejs packages in official and how are they getting packaged and put comments in PKGBUILD.

LICENSE has been added according to https://rfc.archlinux.page/0040-license-package-sources/, please let me know if it was not sufficient and I should do something else.

https://aur.archlinux.org/cgit/aur.git/commit/?h=pi&id=3ea4d21895ddc3afa3ba4ffe9cb36995f8cbf405

svenstaro commented on 2026-05-10 00:10 (UTC)

Hey, I'd like to potentially put this into [extra]. What do you think about that? The package looks fairly clean but it's also slightly unusual and so I'd appreciate some code comments first. Also you'd need to agree to license the PKGBUILD as 0BSD.