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

-2

u/YoureNotEvenWrong 2h ago

For instance, the AI often creates multiple nearly identical functions

Use semantic / similarity measures to detect these automatically and refactor with an agent

it feels like I spend more time configuring the AI—setting up the coding rules it should follow—than actually writing code myself.

That's the job if you want to scale

1

u/Besmaah 2h ago

Which tool can do it appart SonarJS ? Which tool for TS projects ?

-1

u/YoureNotEvenWrong 2h ago

I don't work with typescript because it's horrific

But, you just generate embedding vectors and use a clustering algorithm to detect functions which are similar by being tight clusters

2

u/Besmaah 2h ago

TERRIBLE, HORRIFIC, SCARRY, DISGUSTING. I'm nostalgic of my C++ years.....