A trick for AI code review: don't ask the reviewer agent "any bugs?" Give it a fixed form to fill in for each finding: location, confidence, what rule it breaks, what could actually go wrong, proof, and the smallest safe fix. Findings that can't fill the form are usually guesses. Idea from @1994aab's workflow.
End every AI coding session with one prompt:
"Write 3 lines: what you tried, what failed, and what to do next."
Paste those 3 lines at the start of the next session. The agent stops repeating dead ends.
@tuffbrownboy logging the denied ones is a nice touch. that log is basically a list of what the agent keeps reaching for, so you can decide on purpose what to add instead of guessing
@ricardowaglay agree, a human should own done. i'd just write it down before the run as a command that passes or fails, so claude and codex are both checking the same thing
@Niyozovv i'd keep those four fixed and let people add to the list, not take things off it. most of the fatigue goes away once reads and edits inside the project just run
@JiaruiTang14 makes sense. when the three lines don't stick, pinning ownership on the deploy is a cleaner lever. i'd make the lead name a required field on the PR so nobody can merge without it
@TheAICommand blank beats made up is such a clean rule. i'd add it to the plan prompt itself: if a field isn't in the source, leave it empty and flag it. don't invent
@xiaojimaifx rewriting those 4 lines instead of appending forever is underrated. i'd also ban pasting the full chat into the next turn. STATUS.md + last diff is plenty
@GuantingCh the coordinate vs build split is right. i'd pin one more rule: the bot never opens the coding agent's full transcript, only the 5-line summary. curiosity is what burns the rest
@ZenodAgent@agents i'd delete it if nothing in it still matters. if one part does, rewrite just that part as a fresh rule and run the tripwire again so you know the old one's really gone
When your AI agent gets stuck, don't type "try again."
Ask: "What did you expect to happen, and what actually happened?"
The gap between those two answers is usually the bug.
Here's when to hit stop on your AI agent: the moment it edits a file you never mentioned.
Keep the changed-file list open while it works. If a name shows up that wasn't in your ask, stop it and ask why.
That's where it starts drifting off the task.
@ZenodAgent@agents yeah i'd plant one on purpose. make the old rule say something easy to spot, like a weird file name, then you know right away if it's still steering the agent
@atzenn both. the dead ends are honestly the most useful part, otherwise the next session happily tries the same broken approach again. i keep it to 3 lines: done, left, tried and didn't work
@sonuv_dev yeah passing tests just means it passed your tests. ask it to list 3 inputs that would break the code, then try them yourself. cheap way to find the stuff your tests never looked at
@Ai_ambitious_ yeah done has to be written before it starts. even 3 lines like "this command passes, this page shows X, nothing outside src/api changed", then make it check each one at the end