Judging from the rate of improvement in AIs it will happen gradually over the next few years.
Comparing AIs of a few years ago to the ones today there is a good chance they will improve enormously.
Some humans will always be needed for handholding, but not as many as employed today to churn out run of the mill code.