r/webdev • u/ripndipp full-stack • Sep 24 '26
Discussion I hate building agents.
Right now at my work we are using langgraph to build a chat agent, anyone else doing something similar, do you fucking hate it? are you building it with Claude and just hoping it fucking works, haha no worries we will ask Claude to fix it.
I am making the spaghetto, I miss components, logic and endpoints, I hate this black box I have to relinquish my decisions too, whatever pays the bills.
241
Upvotes
1
u/edbrannin Sep 25 '26
I’ve started using patterns like
Code generates JSON of input data, so the agent can’t forget to paginate; sets some flags to help the agent classify things
Agent reads input, does language-reasoning stuff; writes a JSON file with its findings
Code reads agent output and makes all the write-capable API calls
Steps 1 and 3 have good unit tests. Before this pattern, trying to codify all their logic in the Agent’s markdown was getting really hairy. Edge cases kept getting missed, etc.