Skip to content

Instantly share code, notes, and snippets.

@bigsnarfdude
Created February 5, 2026 23:56
Show Gist options
  • Select an option

  • Save bigsnarfdude/294e46c68ddc959490ac1cf9fa5b85b2 to your computer and use it in GitHub Desktop.

Select an option

Save bigsnarfdude/294e46c68ddc959490ac1cf9fa5b85b2 to your computer and use it in GitHub Desktop.
anthropic_ralph_loop.sh
#!/bin/bash
while true; do
COMMIT=$(git rev-parse --short=6 HEAD)
LOGFILE="agent_logs/agent_${COMMIT}.log"
claude --dangerously-skip-permissions \
-p "$(cat AGENT_PROMPT.md)" \
--model claude-opus-X-Y &> "$LOGFILE"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment