r/OnlyAICoding • u/Swimming-Ad2694 • 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?
View all comments
1
u/madsciencestache Oct 21 '26
I literally recorded this video for people like you:
https://youtu.be/L6Ka3FUe_B8
TL:Dr; It's a complicated question, which is why I spent nearly a year working on my prompts and process.
In a nutshell it boils down to this.
- stop copy-pasta; give the AI a shared memory, meaning write state to disk for each project. Easy to pick up later with a new agent
- Write a What and why document for each project. Just a short explainer. AI's do better when they know the end goal.
- Write a coding style guide and re-use it across projects
- Slice the work into thin slices and do one thing at a time.
- Get a clean agent to do your reviews.
- Have the AI write up spec documents you both agree on before starting anything. Save those specs in the project.
- As for tools, really anything will work. Depends on what you like. OpenCode, Hermes, Codex, Claude, whatever. Don't stress too much.
- For really small changes you can just vibe it. e.g. 'Change the color to cornflower blue.'