Package Details: pi-coding-agent 0.80.10-1

Git Clone URL: https://aur.archlinux.org/pi-coding-agent.git (read-only, click to copy)
Package Base: pi-coding-agent
Description: A terminal-based coding agent with multi-model support, mid-session model switching, and a simple CLI for headless coding tasks
Upstream URL: https://pi.dev/
Licenses: MIT
Submitter: dcreager
Maintainer: dcreager
Last Packager: dcreager
Votes: 17
Popularity: 4.88
First Submitted: 2025-12-31 13:58 (UTC)
Last Updated: 2026-07-19 15:08 (UTC)

Latest Comments

« First ‹ Previous 1 2

clouedoc commented on 2026-04-08 13:23 (UTC)

Thanks! I like having a human testing&running stuff before it lands on my laptop:)

aussetg commented on 2026-02-26 16:55 (UTC) (edited on 2026-02-26 16:58 (UTC) by aussetg)

Yes update PKGBUILD automatically. I'm lazy, 2 numbers is a lot ;)

I am using nvchecker for that and then a github workflow that just runs every X hours, check versions and if there is a new one update the pkgbuild/srcinfo and then push to aur.

I have also added this patch to my version which I think is a good idea to make sure users know not to actually follow the instructions, even though it was more useful in my case as I didn't know binary existed so I made so unholy npm pkgbuild...

So the patch will have to be modified in your case but you get the idea.

Honestly not that big a deal as I was mostly trying to avoid people running npm install -g @mariozechner/pi-coding-agent

--- a/dist/config.js   1985-10-26 09:15:00.000000000 +0100
+++ b/dist/config.js   2026-02-26 15:04:11.356548559 +0100
@@ -25,12 +25,14 @@
     }
     if (resolvedPath.includes("/yarn/") || resolvedPath.includes("/.yarn/") || resolvedPath.includes("\\yarn\\")) {
         return "yarn";
     }
+    if (resolvedPath.includes("/usr/lib/node_modules/")) {
+        return "aur";
+    }
     if (isBunRuntime) {
         return "bun";
     }
     if (resolvedPath.includes("/npm/") || resolvedPath.includes("/node_modules/") || resolvedPath.includes("\\npm\\")) {
         return "npm";
     }
     return "unknown";
@@ -44,6 +46,8 @@
             return `Run: yarn global add ${packageName}`;
         case "bun":
             return `Run: bun install -g ${packageName}`;
+        case "aur":
+            return `Update with your AUR helper (e.g., paru -Syu or yay -Syu)`;
         case "npm":
             return `Run: npm install -g ${packageName}`;
         default:

Edit: my version is not on the AUR to be clear, no need yours exist

dcreager commented on 2026-02-26 15:33 (UTC)

Hmm, do you mean having something detect the releases automatically? I prefer having the human gate, tbh. I just subscribed to releases on the repo, which should at least give me a more timely signal than someone hitting the "out of date" AUR button. (Or me noticing the new-version advert when running pi myself.) But I don't want a process that will automatically push a PKGBUILD update without my intervention.

If you mean automating the mechanics of updating the PKGBUILD — well that's just bumping the version number and two hashes. I don't see the need to automate that part either, it's meditative!

aussetg commented on 2026-02-26 14:43 (UTC)

I really recommend using automatic updating of the PKGBUILD if you don't want to go insane :)

I have my own PKGBUILD (+patch +CI/CD) if you want an example

bitmonkey commented on 2026-01-30 11:26 (UTC) (edited on 2026-01-30 11:31 (UTC) by bitmonkey)

Latest of this morning is 0.50.5....forgot how fast this is being worked on.

PKGBUILD just needs sha256sum's updating and pkgver bumped as before, diff against 0.49.3 PKGBUILD below for an easy patch.


# Maintainer: Douglas Creager <dcreager at dcreager dot net>

 pkgname=pi-coding-agent
-pkgver=0.49.3
+pkgver=0.50.5
 pkgrel=1
 pkgdesc='A terminal-based coding agent with multi-model support, mid-session model switching, and a simple CLI for headless coding tasks'
 arch=('x86_64' 'aarch64')
@@ -10,9 +10,9 @@ license=('MIT')
 options=(!debug !strip)

 source_x86_64=("pi-linux-$pkgver.tar.gz::https://github.com/badlogic/pi-mono/releases/download/v$pkgver/pi-linux-x64.tar.gz")
-sha256sums_x86_64=("649603a22206079a57acef967f05e2cfef14173b3b5c126f5d16936ba23791f6")
+sha256sums_x86_64=("6589bc51eda25a3d811544c1bd35e9135e74247279929a62578ded26182eab7c")
 source_aarch64=("pi-linux-$pkgver.tar.gz::https://github.com/badlogic/pi-mono/releases/download/v$pkgver/pi-linux-arm64.tar.gz")
-sha256sums_aarch64=("e1f005a17cb0e23beabdb8aa3b1f4d6b6cf06bc5c0a2046a0930a6528d19d205")
+sha256sums_aarch64=("471d3081aba7e9d69844a479f235364e87666f28f297e185950762e832f182aa")
 noextract=("pi-linux-$pkgver.tar.gz")

 makedepends=("tar")

bitmonkey commented on 2026-01-29 20:35 (UTC) (edited on 2026-01-29 20:36 (UTC) by bitmonkey)

Getting a working PKGBUILD for the latest release (0.50.3), is just a case of updating the pkgver to 0.50.3 along with the sha256sums for the x86_64 and aarch64 release tarballs on github.

Diff you can apply as a patch below:


--- ../PKGBUILD 2026-01-29 20:18:52.100234133 +0000                                                                
+++ ./PKGBUILD  2026-01-29 20:23:47.162986689 +0000                                
@@ -1,7 +1,7 @@           
 # Maintainer: Douglas Creager <dcreager at dcreager dot net>

 pkgname=pi-coding-agent                 
-pkgver=0.49.3                                                                                                     
+pkgver=0.50.3
 pkgrel=1                                                                                                          
 pkgdesc='A terminal-based coding agent with multi-model support, mid-session model switching, and a simple CLI for headless coding tasks'
 arch=('x86_64' 'aarch64')                                                                                         
@@ -10,9 +10,9 @@
 options=(!debug !strip)                                                                                           

 source_x86_64=("pi-linux-$pkgver.tar.gz::https://github.com/badlogic/pi-mono/releases/download/v$pkgver/pi-linux-x64.tar.gz")
-sha256sums_x86_64=("56a46d7affa4bd35abb219206d8c99ac5617ede28b85b4a21c1c69b50fb47279")                                                                                
+sha256sums_x86_64=("7e5073d9e0d3163f1c4bc36a500345362e6b58ab93a09be1ff828e78d633ef7c")                                                                                
 source_aarch64=("pi-linux-$pkgver.tar.gz::https://github.com/badlogic/pi-mono/releases/download/v$pkgver/pi-linux-arm64.tar.gz")
-sha256sums_aarch64=("7e5073d9e0d3163f1c4bc36a500345362e6b58ab93a09be1ff828e78d633ef7c")                                                                               
+sha256sums_aarch64=("56a46d7affa4bd35abb219206d8c99ac5617ede28b85b4a21c1c69b50fb47279")                                                                               
 noextract=("pi-linux-$pkgver.tar.gz")

 makedepends=("tar")

gnsr commented on 2026-01-13 19:06 (UTC)

It does :D

Here's a PKGBUILD for 0.45.3:

# Maintainer: Douglas Creager <dcreager at dcreager dot net>

pkgname=pi-coding-agent
pkgver=0.45.3
pkgrel=1
pkgdesc='A terminal-based coding agent with multi-model support, mid-session model switching, and a simple CLI for headless coding tasks'
arch=('x86_64' 'aarch64')
url='https://shittycodingagent.ai/'
license=('MIT')
options=(!debug !strip)

source_x86_64=("pi-linux-x64-$pkgver.tar.gz::https://github.com/badlogic/pi-mono/releases/download/v$pkgver/pi-linux-x64.tar.gz")
source_aarch64=("pi-linux-arm64-$pkgver.tar.gz::https://github.com/badlogic/pi-mono/releases/download/v$pkgver/pi-linux-arm64.tar.gz")
sha256sums_x86_64=('f03718e66e9dffc2a0dacf733fbe71def66750ab9f396aa7183c439a7742eb89')
sha256sums_aarch64=('c8cbf1e663deeb24aa871173232ed83cfaa548482b733d7daabade78c2126740')
noextract=("pi-linux-x64-$pkgver.tar.gz" "pi-linux-arm64-$pkgver.tar.gz")

makedepends=("tar")

package() {
    cd "$srcdir"
    install -d "$pkgdir/opt/pi-coding-agent"
    if [[ "$CARCH" == "x86_64" ]]; then
        tar xCf "$pkgdir/opt/pi-coding-agent" "pi-linux-x64-$pkgver.tar.gz"
    else
        tar xCf "$pkgdir/opt/pi-coding-agent" "pi-linux-arm64-$pkgver.tar.gz"
    fi
    install -d "$pkgdir/usr/bin"
    ln -s ../../opt/pi-coding-agent/pi "$pkgdir/usr/bin/pi"

    cd "$pkgdir/opt/pi-coding-agent"
    install -Dm644 README.md CHANGELOG.md -t "$pkgdir/usr/share/doc/$pkgname"
}

dcreager commented on 2026-01-09 13:37 (UTC)

Wow this project releases often 🫠