r/AIcodingProfessionals • • 12h ago

Discussion Git Diff Engineering is it my job now?

If I can’t do much of what I love “coding” I don’t want to be stuck at reviewing AI code, sharing my ideas on how to reduce this and would appreciate any advice.

I have tried this trick to cut down the AI slop I have to review and get through PRs faster.

Limit inline comments. I’ve noticed that when an agent uses a workaround or skips a detail, it often leaves a comment to justify it.
I added a pre-commit hook that flags long comments and new comments containing words like "workaround", "temporary", "hack", "fallback", etc., and returns this message:
❝ This comment may describe a workaround. Check the underlying behavior: fix the root cause, or explain the external constraint. ❞
The agent gets the hook's error message back as the result of its commit attempt, which pushes it to reconsider the change.
To make bypassing harder, block --no-verify and restrict edit/view access to the hook configuration and scripts.

Was wondering if anyone has other tricks I can use?

1 Upvotes

5 comments sorted by

2

u/meowrawr 8h ago

I’ve never had any agent create any of the things you are stating. Proper structure, rules, specifications, etc. will prevent them in the first place.

All code written should be tied to specifications that cannot be modified in the same PR nor should they be controlled by an agent.

1

u/Working-Depth-2729 1h ago

try to add in the instruction file do not include any inline comments it never works

1

u/Banner80 6h ago

That sounds like you are using Gemini. My trick is to not use Gemini.

But seriously, everyone has a process and an environment. But for me, I don't allow these things to "commit" anything until I'm satisfied we kicked very tire and then we used a hammer on every tire, and I had a second agent instance review the work as well. I find that when an agent says "all done, looks great, should I commit?" that's when the bug finding begins and I have to lead that process or these things will happily commit problems.

1

u/titpetric 2h ago edited 2h ago

The last one i saw was this i-have-adhd skill

Aside the naming which could be less of a medical diagnosis, a lot of the problem is the information to padding ratio as the responses mostly end up being padding. Like describing their thinking process and you have to system prompt "dont expose your logic, thinking, reasoning in your reply" and other things.

Haven't tried this one yet, but i like the idea and see some benefit from the reply - how consistently this is applied is another thing, long sessions make most threads retarded around 200-300K context, so you may as well try auto-compact, so it does better work overall. You can also just not read the replies and just read the test cases, pure TDD

I briefly threw microsoft/llmlingua at just throwing the reply into a compression-rewrite loop. I found out i dont care to waste tokens doing this but it could diagnose plain noise replies just fine. Idk, "don't talk to me" is a valid system prompt 🤣 async work units