dev-util/pi-coding-agent - 0.74.0 (bennypowers)

Search

Install

Install this version:

emerge -a =dev-util/pi-coding-agent-0.74.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-util/pi-coding-agent-0.74.0

Or alternatively:

emerge --autounmask-write -a =dev-util/pi-coding-agent-0.74.0

Package Information

Description:
AI coding agent CLI with interactive TUI, tool calling, and session management
Homepage:
https://pi.dev https://github.com/earendil-works/pi
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
0.74.0 8 ~amd64 0
View Raw Ebuild
# Copyright 2026 Benny Powers
# Distributed under the terms of the GNU General Public License v2

EAPI=8

MY_NPM_SCOPE="@earendil-works"
MY_WEBUI_NPM_NAME="pi-web-ui"
MY_WEBUI_P="${MY_WEBUI_NPM_NAME}-${PV}"

DESCRIPTION="AI coding agent CLI with interactive TUI, tool calling, and session management"
HOMEPAGE="https://pi.dev https://github.com/earendil-works/pi"
SRC_URI="
	mirror://npm/${MY_NPM_SCOPE}/${PN}/-/${P}.tgz -> ${P}.tgz
	https://github.com/bennypowers/gentoo-overlay/releases/download/${P}/${P}-deps.tar.xz
	webui? ( mirror://npm/${MY_NPM_SCOPE}/${MY_WEBUI_NPM_NAME}/-/${MY_WEBUI_P}.tgz -> ${MY_WEBUI_P}.tgz
		https://github.com/bennypowers/gentoo-overlay/releases/download/${P}/${P}-web-ui-deps.tar.xz )
"
S="${WORKDIR}"

# NOTE: to generate the dependency tarball:
#       npm --cache ./npm-cache install $(portageq envvar DISTDIR)/${P}.tgz
#       tar -caf ${P}-deps.tar.xz npm-cache

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

IUSE="webui"

RDEPEND=">=net-libs/nodejs-22"
BDEPEND=">=net-libs/nodejs-22[npm]"

# webui installs @earendil-works/pi-web-ui for web component chat interfaces

src_unpack() {
	cd "${T}" || die "Could not cd to temporary directory"
	unpack ${P}-deps.tar.xz
	if use webui; then
		unpack ${P}-web-ui-deps.tar.xz
	fi
}

src_install() {
	npm \
		--offline \
		--verbose \
		--progress false \
		--foreground-scripts \
		--global \
		--prefix "${ED}"/usr \
		--cache "${T}"/npm-cache \
		install "${DISTDIR}"/${P}.tgz || die "npm install failed"

	# Install optional web components when webui flag is enabled
	if use webui; then
		npm \
			--offline \
			--verbose \
			--progress false \
			--foreground-scripts \
			--global \
			--prefix "${ED}"/usr \
			--cache "${T}"/npm-cache \
			install "${DISTDIR}"/${MY_WEBUI_P}.tgz || die "npm install web-ui failed"
	fi

	cd "${ED}"/usr/$(get_libdir)/node_modules/${MY_NPM_SCOPE}/${PN} || die "cd failed"
	einstalldocs
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-util/pi-coding-agent | euse -E <flag> -p dev-util/pi-coding-agent | euse -D <flag> -p dev-util/pi-coding-agent

Global/Standard Flags

Dependencies

RDEPEND

>=net-libs/nodejs-22

BDEPEND

>=net-libs/nodejs-22[npm]

Manifest for 0.74.0

Type File Size Source URLs
DIST pi-coding-agent-0.74.0-deps.tar.xz 38491276 bytes https://github.com/bennypowers/gentoo-overlay/releases/download/pi-coding-agent-0.74.0/pi-coding-agent-0.74.0-deps.tar.xz
DIST pi-coding-agent-0.74.0-web-ui-deps.tar.xz 13424640 bytes https://github.com/bennypowers/gentoo-overlay/releases/download/pi-coding-agent-0.74.0/pi-coding-agent-0.74.0-web-ui-deps.tar.xz
DIST pi-coding-agent-0.74.0.tgz 4564493 bytes mirror://npm/@earendil-works/pi-coding-agent/-/pi-coding-agent-0.74.0.tgz
DIST pi-web-ui-0.74.0.tgz 355492 bytes mirror://npm/@earendil-works/pi-web-ui/-/pi-web-ui-0.74.0.tgz