Hook Installation
agent-receipts-hook is released independently of the daemon — it has its own Homebrew formula and Go module path.
Prerequisites
Section titled “Prerequisites”agent-receipts-daemonrunning (see Daemon Setup)
Install
Section titled “Install”Homebrew (macOS, Linux)
Section titled “Homebrew (macOS, Linux)”brew install agent-receipts/tap/agent-receipts-hookPrebuilt binaries
Section titled “Prebuilt binaries”Download a tarball for your platform (darwin/linux, amd64/arm64) from the releases page and move agent-receipts-hook onto your $PATH.
From source
Section titled “From source”go install github.com/agent-receipts/ar/hook/cmd/agent-receipts-hook@latestRequires Go 1.26+.
Verify installation
Section titled “Verify installation”agent-receipts-hook --helpIf the binary is not found after go install, the Go bin directory is not on your $PATH. Add it:
# bash / zshexport PATH="$(go env GOPATH)/bin:$PATH"# fishfish_add_path (go env GOPATH)/binConnecting to the daemon
Section titled “Connecting to the daemon”agent-receipts-hook uses the same socket-path resolution as the emitter SDK: it reads AGENTRECEIPTS_SOCKET if set, then falls back to the platform default ($TMPDIR/agentreceipts/events.sock on macOS, $XDG_RUNTIME_DIR/agentreceipts/events.sock on Linux). No extra configuration is needed when the daemon is running at the default path.
Start the daemon before wiring up the hook — events emitted before the daemon is running are dropped silently.