Agent in 9 Lines Python
AI
agent harness
SHOW HN2026
21points
9comments
#1,964of 4,366 in 2026
Top 45%of 2026 by points
How HN took it
CuriousMostly questions and neutral comments
0 positive, 5 neutral or asking, 0 mixed, 0 critical, out of 5 comments about the project. Thread score 0.00.
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Compact yet readable design.
From 1 comment
Super cool for how compact yet still readable it is. Shouldn’t there be a tool description passed to the LLM though?
JSR_FDED on HN
Objections
Tool description missing from the LLM setup.
From 1 comment
Super cool for how compact yet still readable it is. Shouldn’t there be a tool description passed to the LLM though?
JSR_FDED on HN
Requests
Ungolfed or more readable version.
From 1 comment
Nice. Do you have an ungolfed version? I was going to ask my LLM to make one.
gabrielsroka on HN
Simplify code further and make it clearer.
From 1 comment
ty. a little easier to read. i'd move the headers out of the loop (u can prolly just hard-code it), and move context_usage to inside the if (and maybe hard-code it, too)
gabrielsroka on HN
Questions
Does the tool need a description passed to the model?
From 1 comment
Super cool for how compact yet still readable it is. Shouldn’t there be a tool description passed to the LLM though?
JSR_FDED on HN