your 500 LOC requirement has made this thing completely and unnecessarily inscrutable and unreadable. Pass.
No kidding https://github.com/NahimNasser/pu/blob/main/pu.sh
Show HN: Pu.sh – a full coding-agent harness in 400 lines of shell
31–40 of 44 posts
Re: Show HN: Pu.sh – a full coding-agent harness in 400 lines of shell
#32Re: Show HN: Pu.sh – a full coding-agent harness in 400 lines of shell
#33i like the idea but i wanted slightly different constraints:
- one file
- zero dependencies (other than node)
- - ascii only
- suckless configuration
- works with ollama models
- more readble sourcecode
- pretty markdown output
- toggle-able read-only mode
https://willhanlen.com/~~/outbox/26/5/ai.js/?code
took me only a few hours. amazing times we live in!
Re: Show HN: Pu.sh – a full coding-agent harness in 400 lines of shell
#34Earlier quoted context omitted.
Isn’t unwrapping and commenting just one prompt away?
… 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.
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
Re: Show HN: Pu.sh – a full coding-agent harness in 400 lines of shell
#35Could you post the initial 6KB version? I'd love to have a version that I can actually read and understand. I don't care if it's 2K LOC.
Re: Show HN: Pu.sh – a full coding-agent harness in 400 lines of shell
#36I'd love to learn how to build something like this, but unfortunately the code is unreadable. If author could write a heavily commented version that would be amazing.
Re: Show HN: Pu.sh – a full coding-agent harness in 400 lines of shell
#37why the LOC limit? just because?
Re: Show HN: Pu.sh – a full coding-agent harness in 400 lines of shell
#38Re: Show HN: Pu.sh – a full coding-agent harness in 400 lines of shell
#39I'd love to learn how to build something like this, but unfortunately the code is unreadable. If author could write a heavily commented version that would be amazing.
Working demo: https://asciinema.org/a/983581
Code: https://github.com/freakynit/agentic-loop
Tutorial: https://building-an-agent.pagey.site/