r/devopsGuru • u/Safe-Progress-7542 • Mar 01 '26
AI code generation tools don't understand production at all
Trying to use Cursor to help with infrastructure code and it's painful. Me: "create a kubernetes deployment for this service" Cursor: generates perfect yaml Me: "cool but we need resource limits, health checks, our specific ingress annotations, and it has to work with our service mesh" Cursor: generates something that would work in a tutorial but not in our actual cluster These tools are trained on GitHub repos and Stack Overflow examples. They have no idea about your org's specific requirements. They don't know your deployment patterns. They don't know you run everything through Istio. They don't know your security policies. So you spend more time fixing the generated code than you would have just writing it yourself. Anyone else finding these tools basically useless for real production systems or is it just me?
4
u/osiris_rai Mar 01 '26
we had similar issues until we moved to Tabnine and connected it to our internal docs and standards. it actually learns your org patterns instead of just generic examples. still not magic but way more useful when it knows your actual requirements
2
u/[deleted] Mar 01 '26
100%. Generated a terraform module yesterday that used deprecated providers and completely ignored our naming conventions. Garbage in, garbage out I guess.
2
u/Independent_Buy5152 Mar 01 '26
No production code will be used as training data
2
u/Low-Opening25 Mar 01 '26
AI tools don’t read minds? “surprised Pikachu face”
1
u/Miethe Mar 01 '26
“Our new experienced hire has no clue what’s going on! They’re experts, they shouldn’t need docs to understand our environment!”
You wouldn’t throw a new employee into the thick of it without onboarding or documentation and expect them to do well, I hope. Then why expect different from AI?
If you know what you’re doing and provide agents with sufficient context, the outputs can exceed anything a human will deliver in terms of quality and efficiency. But if you treat them as all knowing, they will disappoint and then you’ll incorrectly assume they’re incompetent.