Live data from Hacker News

Show HN: Pu.sh – a full coding-agent harness in 400 lines of shell

pu.dev

31–40 of 44 posts

Re: Show HN: Pu.sh – a full coding-agent harness in 400 lines of shell

#33
this inspired me to build something similar.

i 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

#34
post #24
post #12

Earlier 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.

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

Re: Show HN: Pu.sh – a full coding-agent harness in 400 lines of shell

#35
post #18

Could 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.

heh... i'm afraid i didn't commit it -- as it was in the original pi-autoresearch yolo'ing phase.

Re: Show HN: Pu.sh – a full coding-agent harness in 400 lines of shell

#39
post #8

I'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.

I built full agentic-loop from scratch with full MCP support and session save and resume capabilities just this week. The intent was to learn by building full system from scratch, and share the learnings with others.

Working demo: https://asciinema.org/a/983581

Code: https://github.com/freakynit/agentic-loop

Tutorial: https://building-an-agent.pagey.site/

Post reply on HN