I see a lot of comments how devs are blocking ugly PRs from AI agents. For example: "Total reproduction of existing code, totally creating new patterns that don’t exist in our code base, pulling data it never uses, not pulling data it purports to use." So let's review your complains! 1) Total reproduction of existing code - yes it's unavoidable - in big projects agents don't read all your code base, and even in the same PR grok creates dupes. But you can make a workflow for agents where it works on a big epic on it's preview branch. And after epic is finished - with test coverage, new functionality is verified. You do a final step: review from another model(preferably) or agent. Agent task is: review code and suggest refactoring, estimate if it's worth the efforts, update documentation accordingly, check test coverage of new feature. If you block PR just because of "code readability" and dupe of function in 3 line - you are just a pity person, who want's to proof your are till needed on you job. You are still thinking and most of dev are- that you are writing your code for other people to read. It's not a case anymore. Your code would be written and reviewed mostly by AI agents. So this one: totally creating new patterns that don’t exist in our code base - you shouldn't care at all. The main purpose of your or anyone's code - is to work, not be buggy and be secure. So instead of teaching agent how to wrote code like you used to - train it to check code for bugs, test coverage and security leaks. Improve your task manager pipeline. Instead of reviewing working code for better !human readability - do the work you should as a programmer: learn yourself to give a precise task (investigate first if needed), learn how create an agent package - reread document that you would send to agent and then you would easily avoid this case scenario: pulling data it never uses, not pulling data it purports to use.
View all comments
1
u/black_midnight_cat 18d ago
I see a lot of comments how devs are blocking ugly PRs from AI agents. For example: "Total reproduction of existing code, totally creating new patterns that don’t exist in our code base, pulling data it never uses, not pulling data it purports to use." So let's review your complains! 1) Total reproduction of existing code - yes it's unavoidable - in big projects agents don't read all your code base, and even in the same PR grok creates dupes. But you can make a workflow for agents where it works on a big epic on it's preview branch. And after epic is finished - with test coverage, new functionality is verified. You do a final step: review from another model(preferably) or agent. Agent task is: review code and suggest refactoring, estimate if it's worth the efforts, update documentation accordingly, check test coverage of new feature. If you block PR just because of "code readability" and dupe of function in 3 line - you are just a pity person, who want's to proof your are till needed on you job. You are still thinking and most of dev are- that you are writing your code for other people to read. It's not a case anymore. Your code would be written and reviewed mostly by AI agents. So this one: totally creating new patterns that don’t exist in our code base - you shouldn't care at all. The main purpose of your or anyone's code - is to work, not be buggy and be secure. So instead of teaching agent how to wrote code like you used to - train it to check code for bugs, test coverage and security leaks. Improve your task manager pipeline. Instead of reviewing working code for better !human readability - do the work you should as a programmer: learn yourself to give a precise task (investigate first if needed), learn how create an agent package - reread document that you would send to agent and then you would easily avoid this case scenario: pulling data it never uses, not pulling data it purports to use.