Summary
PAI assumes several CLI tools are present but never states them as installation requirements. A fresh setup on any machine will hit silent degradation without them — with no signal that anything is wrong.
Current State in CLAUDE.md
"In Bash: rg over grep, fd over find"
This reads as a style preference, not a requirement. rtk isn't mentioned at all as a prerequisite — only implied by the existence of ContextReduction.hook.sh. There is no "before you start" or "required tools" section anywhere in PAI.
Tools PAI Silently Requires
| Tool |
Used by |
Linux install |
macOS install |
rg (ripgrep) |
CLAUDE.md preference, search-intensive skills, hooks |
apt install ripgrep |
brew install ripgrep |
fd |
CLAUDE.md preference, skills |
apt install fd-find + symlink (see note) |
brew install fd |
rtk |
ContextReduction.hook.sh — provides 60–90% token reduction on Bash calls |
curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh |
same |
jq |
Multiple tools, statusline, healthcheck scripts |
apt install jq |
brew install jq |
bun |
All PAI TypeScript tooling |
curl -fsSL https://bun.sh/install | bash |
same |
Debian/Ubuntu note on fd: the package is named fd-find and the binary is fdfind. A symlink is required for PAI to find it: sudo ln -sf /usr/bin/fdfind /usr/local/bin/fd. This is a common silent failure point.
rtk note: not available in any package manager; must be curl-installed. Lands in ~/.local/bin/ — which must be on the hook PATH (see related issue #1368).
Failure Mode
All three tools (rg, fd, rtk) degrade silently when absent:
rg/fd — skills and hooks that invoke them emit command not found only in contexts where stderr is visible; many contexts suppress it
rtk — ContextReduction.hook.sh has an explicit guard that exits 0 when rtk is absent, meaning 60–90% token reduction is simply never applied, with no notification
Discovery
Found during a full PAI tool audit on a Hetzner VPS (Ubuntu 24.04) — an installation that had been running PAI for several weeks. All three tools were absent and had been silently degrading hooks since initial setup.
Proposed Fix
Add a ## Required Tools section to CLAUDE.md (or a new SETUP.md) listing these tools with install commands for both Linux (apt) and macOS (brew). Specifically:
Summary
PAI assumes several CLI tools are present but never states them as installation requirements. A fresh setup on any machine will hit silent degradation without them — with no signal that anything is wrong.
Current State in CLAUDE.md
This reads as a style preference, not a requirement.
rtkisn't mentioned at all as a prerequisite — only implied by the existence ofContextReduction.hook.sh. There is no "before you start" or "required tools" section anywhere in PAI.Tools PAI Silently Requires
rg(ripgrep)apt install ripgrepbrew install ripgrepfdapt install fd-find+ symlink (see note)brew install fdrtkContextReduction.hook.sh— provides 60–90% token reduction on Bash callscurl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | shjqapt install jqbrew install jqbuncurl -fsSL https://bun.sh/install | bashDebian/Ubuntu note on
fd: the package is namedfd-findand the binary isfdfind. A symlink is required for PAI to find it:sudo ln -sf /usr/bin/fdfind /usr/local/bin/fd. This is a common silent failure point.rtknote: not available in any package manager; must be curl-installed. Lands in~/.local/bin/— which must be on the hook PATH (see related issue #1368).Failure Mode
All three tools (
rg,fd,rtk) degrade silently when absent:rg/fd— skills and hooks that invoke them emitcommand not foundonly in contexts where stderr is visible; many contexts suppress itrtk—ContextReduction.hook.shhas an explicit guard that exits 0 whenrtkis absent, meaning 60–90% token reduction is simply never applied, with no notificationDiscovery
Found during a full PAI tool audit on a Hetzner VPS (Ubuntu 24.04) — an installation that had been running PAI for several weeks. All three tools were absent and had been silently degrading hooks since initial setup.
Proposed Fix
Add a
## Required Toolssection toCLAUDE.md(or a newSETUP.md) listing these tools with install commands for both Linux (apt) and macOS (brew). Specifically:rtkexplicitly as required for the ContextReduction hook, with its curl install commandfd-find/fdfindDebian/Ubuntu naming difference and the required symlinksettings.jsonenv.PATH requirement (issue docs: hooks run in stripped environment — settings.json env.PATH is a required but undocumented field #1368) since these tools must also be on the hook PATH to function