#!/bin/sh # Purser installer — the /purser multi-agent implementation workflow for Claude Code. # # curl -fsSL https://get-purser.pages.dev/install.sh | sh # # Installs a single workflow file into ~/.claude/workflows/. No Node, no clone, # no npm. The source repo stays private; only the built purser.js is served here. # POSIX sh. set -eu BASE="https://get-purser.pages.dev" DEST="${CLAUDE_WORKFLOWS_DIR:-$HOME/.claude/workflows}" # Claude Code keeps its config under ~/.claude. Warn, but don't block, if absent. if [ ! -d "$HOME/.claude" ]; then echo "purser: ~/.claude not found — is Claude Code installed?" echo " Get it first: https://claude.com/claude-code" echo " (continuing anyway and creating $DEST)" fi mkdir -p "$DEST" for f in purser.js PURSER.md; do url="$BASE/$f" echo "Downloading $f ..." tmp=$(mktemp) if ! curl -fsSL "$url" -o "$tmp"; then rm -f "$tmp" echo "purser: download failed — $url" echo " (could not reach the host; check your connection)." exit 1 fi mv "$tmp" "$DEST/$f" done echo "" echo "OK purser installed -> $DEST/purser.js" echo "" echo " In any Claude Code session, inside a git repo:" echo " /purser build it: scout, plan, implement, review, PR" echo " /purser --quote preview the plan + cost, build nothing" echo " /purser --explain + learn the system design of what you build" echo "" echo " Docs: $DEST/PURSER.md" echo " Update anytime by re-running this one-liner."