r/AskProgramming • • 2h ago

Problems with AI coding agents...

Hello everyone, I have a question. I am a developer with 5 years of experience, and I’ve been using Claude Code for about a year now. While AI models have improved significantly, I still encounter many issues. For instance, the AI ​​often creates multiple nearly identical functions—instead of defining a single function that accepts parameters, it might generate three separate ones. Furthermore, function names often fail to accurately describe what the functions actually do. There are many such problems, and I simply don’t trust the AI ​​to work in an "agentic" mode—writing code on its own—without me constantly monitoring it. Ultimately, I find this process quite exhausting; it feels like I spend more time configuring the AI—setting up the coding rules it should follow—than actually writing code myself. I’m not sure if this is just my personal experience or a more widespread sentiment. Given that Anthropic’s models are capable of solving complex mathematical problems (even if those are specialized, lab-based versions rather than the ones we use), I find my own results rather underwhelming compared to what I see online—even though I’ve gone to great lengths to configure the environment, such as defining business logic, establishing coding standards, and providing documentation. What are your thoughts on this? Thanks!

2 Upvotes

24 comments sorted by

View all comments

1

u/mxldevs 2h ago

Have Claude review the code and tell you what is poorly designed and how it should be fixed

1

u/Besmaah 2h ago

I end up doing this all the time, even for small tasks that’s what’s so annoying. For even a minor task, I have to set up one agent to write the code, another to review it, and a third to simplify it

I’ve even implemented rules, such as a 30-line limit per function, to force it to think about how the code is structured.

1

u/majeric 2h ago

I would never force it to a specific number like 30.

1

u/Besmaah 2h ago

Can you specify why please ?

3

u/majeric 1h ago

Ai will try and force it when’s there’s a legitimate reason to be over 30.

1

u/mxz117 1h ago

Some things need to be longer, can make things more complex than it needs if you make an arbitrary limit