dev-util/claude-agent-acp-tui - 0.8.0 (bentoo)

Search

Install

Install this version:

emerge -a =dev-util/claude-agent-acp-tui-0.8.0

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

autounmask =dev-util/claude-agent-acp-tui-0.8.0

Or alternatively:

emerge --autounmask-write -a =dev-util/claude-agent-acp-tui-0.8.0

Package Information

Description:
Run the Claude Code TUI in Zed's agent panel via an ACP-over-PTY bridge
Homepage:
https://github.com/lucascouts/claude-agent-tui
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
0.8.0 8 -* ~amd64 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Run the Claude Code TUI in Zed's agent panel via an ACP-over-PTY bridge"
HOMEPAGE="https://github.com/lucascouts/claude-agent-tui"
# Upstream GitHub repo/release asset is still named 'claude-agent-tui'; the
# package was renamed to claude-agent-acp-tui, so fetch the upstream tarball
# and rename it to ${P} (and set S to the upstream-named extracted dir).
SRC_URI="https://github.com/lucascouts/claude-agent-tui/releases/download/v${PV}/claude-agent-tui-${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/claude-agent-tui-${PV}"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="-* ~amd64"
RESTRICT="mirror strip bindist"

RDEPEND="
	net-libs/nodejs
	dev-util/claude-code
"

QA_PREBUILT="usr/lib/node_modules/${PN}/node_modules/node-pty/build/Release/pty.node"

src_compile() {
	:
}

src_install() {
	insinto /usr/lib/node_modules/${PN}
	doins -r dist node_modules package.json
	dodoc README.md NOTICE

	# Executable wrapper: doins strips the +x bit, so the wrapper itself
	# carries it via fperms. dist/index.js is invoked through 'node' and
	# pty.node is loaded via dlopen, so neither needs +x.
	dodir /usr/bin
	cat > "${ED}/usr/bin/claude-agent-acp-tui" <<-EOF || die
		#!/bin/sh
		exec node /usr/lib/node_modules/${PN}/dist/index.js "\$@"
	EOF
	fperms +x /usr/bin/claude-agent-acp-tui
}

pkg_postinst() {
	elog "The bridge is installed as the 'claude-agent-acp-tui' executable."
	elog ""
	elog "To enable it in Zed, add the following to ~/.config/zed/settings.json:"
	elog ""
	elog "    \"agent_servers\": {"
	elog "        \"Claude Agent TUI\": { \"command\": \"claude-agent-acp\", \"args\": [] }"
	elog "    }"
}

Dependencies

RDEPEND

	net-libs/nodejs
	dev-util/claude-code

Manifest for 0.8.0

Type File Size Source URLs
DIST claude-agent-acp-tui-0.8.0.tar.gz 102405984 bytes https://github.com/lucascouts/claude-agent-tui/releases/download/v0.8.0/claude-agent-tui-0.8.0.tar.gz