python3 -m http.server 8765 --bind 127.0.0.1 >/tmp/srv.log 2>&1 &
SRV_PID=$!
sleep 1
curl -s -o /dev/null -w "index: %{http_code}\n" http://127.0.0.1:8765/index.html
kill $SRV_PID 2>/dev/null
wait 2>/dev/null
Smoke test after edits
I don't understand why claude has to do all this shit to validate a simple static html file