r/github • u/Few-Ad-1358 • May 22 '26
Discussion Devs using AI coding agents: where does trust break in your workflow?
For people using AI coding agents in real codebases, I’m trying to understand the actual workflow — not the hype version.
When you give an agent a task, what usually happens?
- Do you write a detailed plan/spec first?
- Do you give it a short GitHub issue and let it figure things out?
- Do you review mainly after the PR/diff is done?
- Do you break work into tiny tasks because larger ones get risky?
I’m especially curious where your time goes:
- How much time do you spend planning before the agent writes code?
- How much time do you spend reviewing/fixing after it writes code?
- At what point do you stop trusting the agent?
- What mistakes happen most often?
- scope drift
- wrong assumptions
- touching unrelated files
- missing tests
- passing CI but still doing the wrong thing
- messy PRs
- hard-to-review diffs
What are you currently doing to make AI-written code safer?
- strict prompts
- checklists
- CI/tests
- manual PR review
- asking the agent for a plan first
- limiting file access/scope
- smaller issues
- another agent reviewing the first one
- something else?
One thing I’m trying to figure out:
**If you wanted 99% confidence before merging AI-written code, what would need to be true?**
For example, would you want:
- a better pre-coding plan?
- a way to lock the agent to approved scope?
- proof of what tests/checks it ran?
- a summary comparing the final diff against the original issue?
- a warning when the agent touches unrelated files?
- a trust score/check on the PR?
- something more like CI, but for agent behavior instead of just tests?
Also: would adding this kind of gate feel useful, or would it feel like annoying process overhead?
Trying to learn how people actually work with coding agents today, and what would make them trustworthy enough for serious team usage.
1
u/adept2051 May 22 '26
With that many questions you need to go search for coding harnesses, the answer is YES/NO/MAYBE/sometimes to everyone you’ll see if you look.
But the main 4
- No you write a repeatable prompt with a correlated instructions and agents set ( if you want to use spec your governance and instructions include spec)
- you can, or JIra/ticket system of choice ( your agents and instructions tell it how to consume issues)
- you include in governance gates for review, input and Draft PRs
- you should do you’ll find Agentic work is better at focused tasks it keeps context and limits halucinatiosn that occur regardless of how good you think your agents and instructions are.
1
u/Agent007_MI9 May 22 '26
For me it breaks at two points: when the agent starts touching code outside the stated scope, and when it makes an architectural assumption I never signed off on. The second one is harder to catch because it looks fine until someone in review asks why you restructured that module. The fix I keep coming back to is forcing scope to be explicit before the agent ever starts - structured issue intake rather than just pasting a vague task into the chat. That shift alone moves a lot of surprises earlier in the loop where they are cheaper to fix.
1
u/FlippantFlapjack May 22 '26
Too many questions
0
u/[deleted] May 22 '26
[deleted] — view deleted comment
1
u/[deleted] May 26 '26
[removed] — view removed comment