Justin Catalana

Justin Catalana co-founded Mill Valley Beerworks with his brother Tyler in 2009, then Fort Point Beer Company with his wife Dina Dobkin and brewer Mike Schnebeck in 2014, turning a homebrewing habit into San Francisco's largest independent craft brewery. In 2025, Fort Point merged with Sonoma County's HenHouse Brewing Co. to form Fort Point HenHouse, combining two of the Bay Area's most respected brewing companies under one roof while keeping both brands independent.

Showing previous prompt in Claude Code

3/9/2026 at 7:07 pm pst
I wanted a quick way to show the last prompt I sent, so I added it to the status line. UserPromptSubmit fires every time you send a prompt. This script catches it and writes the text to a temp file keyed by session ID, so multiple terminals don't step on each other. Files are tiny and live in /tmp, so they get wiped on reboot. Save to ~/.claude/hooks/save-last-prompt.sh:
#\!/bin/bash set -f mkdir -p /tmp/claude input=$(cat) session_id=$(echo "$input" | jq -r '.session_id // empty' 2>/dev/null) prompt=$(echo "$input" | jq -r '.prompt // empty' 2>/dev/null) if [ -n "$session_id" ] && [ -n "$prompt" ]; then prompt=$(echo "$prompt" | sed 's/<[^>]*>//g' | sed 's/^[[:space:]]*//' | sed '/^$/d' | head -1) [ -n "$prompt" ] && echo "$prompt" > "/tmp/claude/last-prompt-${session_id}.txt" fi echo '{}' exit 0
chmod +x ~/.claude/hooks/save-last-prompt.sh Add to ~/.claude/settings.json:
{ "hooks": { "UserPromptSubmit": [{ "hooks": [{ "type": "command", "command": "bash ~/.claude/hooks/save-last-prompt.sh", "timeout": 5 }] }] } }
Add to your statusline.sh:
session_id=$(echo "$input" | jq -r '.session_id // empty') last_prompt="" if [ -n "$session_id" ] && \ [ -f "/tmp/claude/last-prompt-${session_id}.txt" ]; then last_prompt=$(head -c 200 \ "/tmp/claude/last-prompt-${session_id}.txt" \ 2>/dev/null | tr '\n' ' ') max_prompt_len=70 if [ ${#last_prompt} -gt $max_prompt_len ]; then last_prompt="${last_prompt:0:$max_prompt_len}" last_prompt="${last_prompt% *}..." fi fi if [ -n "$last_prompt" ]; then printf "\033[2;37mPrevious Prompt > ${last_prompt}\033[0m\n" fi
- Justin #claude-code #status-line #messing-around
Give Kudos (0)

Claude, I could use a beer.

3/5/2026 at 3:19 pm pst
Built an integration for my craft brewery so customers can grab a beer while working with an agent. I used Claude Code to build the MCP server as a Rails app with an admin panel that tracks tool usage. It wraps Shopify's MCP with a few brewery specific tools: shipping eligibility, delivery estimates, and beer recommendations. It would be really nice to be able to complete the payment from within the terminal. https://connect.fortpointbeer.com
- Justin #beta #messing-around #open-to-suggestions
Give Kudos (5)

The internet is fun again

2/20/2026 at 12:22 am pst
Claude was able to build this assembly web server and blogging website in about 2 minutes. I've always wanted to learn assembly\! - Justin #asm #messing-around
Give Kudos (1)
Justin Catalana // served by x86-64 assembly // source // records: 3 posts on disk