Comment on Show HN: Pu.sh – a full coding-agent harness in 400 lines of shellparentComments−cachius4moIsn’t unwrapping and commenting just one prompt away?−StableAlkyne4moAssuming the agent doesn't forget or misinterpret anything.It would be much better to just have a deterministic minification script.−malicka4mo… no, you shouldn’t use AI for simple reformatting of code without the newlines. We have syntax parsers and reformatters for this. Use them, then put that into the LLM for commenting, if you really want to.−nahimnOP4moCaught by surprise by the people who want to read the code -- and thank you for the great ideas.Slapped together an 'unminified version' that has been ran against the test suite.Hopefully has more educational valuehttps://github.com/NahimNasser/pu/blob/main/pu-unminified.sh
Comments
Isn’t unwrapping and commenting just one prompt away?
Assuming the agent doesn't forget or misinterpret anything.
It would be much better to just have a deterministic minification script.
… no, you shouldn’t use AI for simple reformatting of code without the newlines. We have syntax parsers and reformatters for this. Use them, then put that into the LLM for commenting, if you really want to.
Caught by surprise by the people who want to read the code -- and thank you for the great ideas.
Slapped together an 'unminified version' that has been ran against the test suite.
Hopefully has more educational value
https://github.com/NahimNasser/pu/blob/main/pu-unminified.sh