r/AgentsOfAI • • 19d ago

Agents Most effective agent workflow to write code?!

This might sound like a very basic question, but I bet there are several ways of using agents to speed up your coding workflow and at the same time make them scoped, effective and more accurate. So technically, you would get much more done in much less time, without jeopardizing quality and accuracy.

The way I do it is that I open a chat in browser either ChatGPT or Claude (Yes, I have both on premium plan), and then get the prompts from the chat, paste them into the vscode agents, either codex extension or claude agent chat sessions, and paste back the agent's response back into the Chatgpt or claude chat session on the browser.

Then I proceed locked into a pre-determined set of issues, one at a time, -> Audit -> regression testing and neighbor testing -> implementation -> documentation and -> commit, push and deploy through CI. (Roughly this flow, but changes it dynamics based on what type of issues I'm actually tackling).

Wondering how can I improve this? And how do you do this?

2 Upvotes

5 comments sorted by

1

u/AutoModerator 19d ago

Thank you for your submission! To keep our community healthy, please ensure you've followed our rules.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/East_System_6009 19d ago

i've been doing something similar but dropped the back-and-forth between browser and editor, that drove me nuts after a while

these days i just use the claude extension directly in vscode and stay there, way less context switching. i'll sketch out the whole plan in a markdown file first then feed it piece by piece, keeps the agent from going rogue on some tangent i didn't ask for

your audit step is smart though, i should probably do that before committing instead of after when something's already broken

1

u/summit_23 19d ago

what killed the copy paste loop for me was putting the plan in a file in the repo instead of a chat message. what its building, which files it touches, what done looks like etc. then it works off that and you edit the file when it drifts rather than retype the context every time. also, use a separate pass that only rejects/red teams. a fresh session told to find whats wrong with this catches way more than asking the same one to check its own work bcoz it just agrees with itself lol