Due to a rise of vibecoding, I have invented a simple detector script, that can determine whether some code was written by AI or not:

bash<br/>#!/bin/bash<br/>set -euo pipefail<br/>IFS=$&#39;\n\t&#39;</p><p>filename=&quot;${$1:?please provide a filename}&quot;<br/>if [[ &quot;$filename&quot; ~= *.rs ]]<br/>then<br/> echo &quot;Not AI!&quot;<br/> exit 0<br/>fi</p><p>echo &quot;AI!&quot;<br/>exit 1<br/>

#rust #rustlang #ai #bash