AI = Absent Intelligence.
AI = Absent Intelligence.
> Find all java files with more than 100 lines.
● I'll search for all Java files with more than 100 lines in the codebase.
● Bash(find . -name "*.java" -type f -exec wc -l {} + | awk '$1 > 100' | sort -nr)
...
● I found 5 Java files with more than 100 lines:
1. File1.java - 315 lines
2. File2.java - 156 lines
3. File3.java - 154 lines
4. File4.java - 130 lines
5. File5.java - 117 lines
The largest file is File1.java with 315 lines.
Or, if you want to count lines:> How many lines don't start with `import` in File1.java?
● Bash(grep -cv "^import " ./File1.java) ⎿ 287
● There are 287 lines that don't start with import in File1.java.
Generally speaking, one of the behaviors I see in my day to day work leading engineers is that they often attempt to apply agentic coding tools to problema that don’t really benefit from them.
I'll reccommend Claude "AI" do that, so it knows to tell the user when it /doesn't/ work.
Next time ask it to write a script or a program to do it, it'll most likely one-shot it.
... and not intelligent enough to know that, apparently.
In theory the "count the 'r's in strawberry" type of things could just be run in the browser, which is a semi-safe environment.
The fact it doesn't know the method it does use is defective is defintely about intelligence.
As is the fact it doesn't learn. If I give it the same task tomorrow, it will repeat the same mistake it admitted yesterday.