Skip to content

Instantly share code, notes, and snippets.

View SamHatoum's full-sized avatar
👩‍💻
Building on Auto

Sam Hatoum SamHatoum

👩‍💻
Building on Auto
View GitHub Profile
@jedi4ever
jedi4ever / cs.sh
Last active May 19, 2026 14:08
Simple script to run claude headless without the -p (to avoid extra costs)
#!/usr/bin/env bash
# Usage: ./cs "your prompt"
# Runs Claude headlessly, suppresses the TUI, prints Claude's final reply on stdout.
set -uo pipefail
PROMPT="$*"
REPLY_FILE=$(mktemp)
SESSION_ID=$(uuidgen | tr 'A-Z' 'a-z')
ENC_CWD=$(pwd | sed 's|/|-|g')

🥫 The Ketchup Technique

Controlled Bursts | TDD | TCR | 100% Coverage | Emergent Design | Extreme Ownership

Core Loop

Red → Green → TCR → Refactor → TCR → Done
TCR: test && commit || revert
- Pass → commit → continue