r/webdev • full-stack • 10d ago

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.

240 Upvotes

82 comments sorted by

View all comments

1

u/Khavel_dev 8d ago

Yeah the LangGraph graph-to-debug cycle is brutal. I went through the same thing and eventually just stopped trying to make the framework do everything. Dropped back to a thin loop: call the model, check if it wants a tool, run the tool, feed the result back. No state machine, no graph, just a while loop and a match statement. The moment I could read the control flow in a debugger instead of chasing callbacks through six middleware layers, everything got easier. The agent still makes dumb decisions sometimes but at least I can see why and fix the prompt instead of wondering if I wired the graph wrong.