Gloucestershire 163 (Reece 7-20) and 29 for 2 require 150 more runs to beat Derbyshire 184 (Reece 59, Miles 5-50) and 157 (Hughes 55 *, Higgins 3 -17, Miles 3-46)
Derbyshire full-back Luis Reece had the best performance of his career with the ball when 17 fields fell on the second day of the County Championship game. Division Two against Gloucestershire in Derby.
Reece bagged 7 for 20 to knock the visitors down for 163, but Derbyshire collapsed at 157 with Ryan Higgins taking 3 for 19 and Craig Miles 3 for 46 in his final game as a Gloucestershire player.
Alex Hughes dug for 50 overs to make an undefeated 55 to leave Gloucestershire with a complicated goal of 179 and New Zealand fastbounder Lockie Ferguson hit twice to close 29 for 2.
Reece had recorded his best figures in the championship the day before and he took advantage of a little more hitting to give Derbyshire a slender lead-in first inning of 21.
After George Ferguson defeated George Drissell, Reece secured his first pitch of five wickets when Jack Taylor cut a ball that went away.
Higgins was caught on the first slip of a lift delivery by Hardus Viljoen and Reece polished the tail with Craig Miles skirting a large unit before Matt Taylor reached the middle of the field.
But Derbyshire soon had problems losing captain Billy Godleman to David Payne before lunch and Wayne Madsen and Reece to Higgins in the first five afternoon passes.
Madsen, who signed a three-year contract extension, was lbw as he moved through the crease and Reece slid to the third slip on the next Higgins exit.
Tom Lace and Hughes regrouped for 17 overs until Lace was played playing Benny Howell's ball and two other terrains shortly before tea changed momentum towards Gloucestershire.
Matt Critchley was brought down to make room against George Drissell and Ha. Rvey Hosein beat Miles for the second time with Derbyshire just 108 ahead.
Hughes at least showed the application that the situation demanded and, although Wickets fell at the other end, he got to deserve 50 before Matt Taylor finished the tickets to leave Gloucestershire with 10 overs to face stumps.
The pattern of the game continued when Chris Dent got caught by the first ball of Ferguson who then knocked down James Bracey to leave the visitors in trouble with 19 for 2.
Miles Hammond and Drissell survived, but with the poor Batting level in the game, Derbyshire is a small favorite on the third day.