logoalt Hacker News

StilesCrisistoday at 2:23 AM3 repliesview on HN

My favorite is when Claude runs a slow process piped to tail only the last few lines, and then the result isn't what it expected, so it needs to rerun the whole thing.

Agents need a way to discard useless data out of context once it's served its purpose, instead of forcing them to preemptively tail everything.


Replies

Fabricio20today at 3:24 AM

This was so bad for me I actually added a tool hook that `time`s the tool calls and adds it as [Execution took: Xm, Ys] at the end of every tool call, it helps a little (claude in particular after two executions tends to switch strategy entirely) but in general the agents still insist on cut/tailing the output rather than just dumping it to a file for example!

Now that I think about it, maybe I can have a tool hook that detects those cut/tail exessive piping and just strips them and dumps the full output to a temp file..

totetsutoday at 6:20 AM

Could it just set up to do like Command | tee -a activity.log | tail -5

So the context only gets a few lines but everything is still logged?

godelskitoday at 7:06 AM

My favorite is Claude finding .git/index.lock, asking to remove it, finding out it no longer exists, and then hitting a lock again that it itself created. Poor little robot, stop shooting yourself in the foot.