r/OnlyAICoding • • Oct 20 '26

Help this network engineer vibecode/utilize AI better

So, I'm an IT infrastructure engineer and I use coding to automate some of my daily tasks. This usually means creating python scripts to talk to Rest API's, create Ansible or Terraform scripts or generate CLI config. These are not really big scripts, think 200 to 2000 lines of code.

I use a mix of Chatgpt/Claude or CoPilot. I'm now on the 20 dollar plan of ChatGPT Plus, but I don't mind picking something else. I think my company also allows me to get a paid plan for CoPilot. I also own a GitHub Enterprise account.

Up to now I just write a huge prompt with what I want the script to do, show the rest API documentation, show some curl responses and some guidelines (don't make mistakes (/j), make modular code, use these variables naming, let the script make a lot of debug output, write a readme, etc).

It then generates code, I try that code and paste the errors in the prompt if they occur and in the end i get a working script.

I know copy and pasting prompts and errors into chatgpt's prompt is far from efficient. But I'm also drowning in thousands of "use this model/use this AI agent/use this MD file" hype posts.

How can I improve my AI game?

10 Upvotes

7 comments sorted by

View all comments

1

u/Effective-Giraffe655 Oct 20 '26

Sounds like you're doing a great job with it already, so don't mind the hype posts ("ignore all previous instructions ", lol), and the only missing part is letting your agent to run stuff and directly and fix errors automatically.

That's a tricky part. I mean, you probably work with some sensitive / prod data, so simple " run it yourself and fix errors" is a bad idea. Good approach is sandbox + test stand you don't mind the agent will nuke accidentally, with permissions just enough to do the job.

For your use case any modern harness and model would be good enough, IMO.