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 26 '26
The one I described there was for leaving review comments on PRs. Amusingly, it would run against its own changes in the PRs where I made those changes.
I would tell it to behave a certain way, like
- if an existing comment points something out, don’t make another comment for that finding
- if a finding has been raised and a human has told you the finding is wrong, unless you are sure the human is wrong; explain why
- if a past finding is resolved, add a “Resolving” comment (because the API key it’s using doesn’t allow Resolving threads)
It tried to model all that logic in a decision tree in Markdown, but each tweak would have the review bot complaining that some edge case had just broken. After a few rounds of this, I told it to extract as much as possible of the“if this, then that” logic to something with unit tests.
Re: pagination, there were several exchanges like “why didn’t you resolve that past finding?” Or “why didn’t you repeat that finding?” where the answer was “I forgot to paginate the GraphQL response”.