agent fix edits